예제 #1
0
        /// <summary>
        /// imports a module from an xml file
        /// </summary>
        /// <param name="ModuleID"></param>
        /// <param name="Content"></param>
        /// <param name="Version"></param>
        /// <param name="UserID"></param>
        public void ImportModule(int ModuleID, string Content, string Version, int UserID)
        {
            XmlNode infos = DotNetNuke.Common.Globals.GetContent(Content, "DateTimeCalcs");

            foreach (XmlNode info in infos.SelectNodes("DateTimeCalc"))
            {
                DateTimeCalcInfo DateTimeCalcInfo = new DateTimeCalcInfo();
                DateTimeCalcInfo.ModuleId      = ModuleID;
                DateTimeCalcInfo.Content       = info.SelectSingleNode("content").InnerText;
                DateTimeCalcInfo.CreatedByUser = UserID;

                AddDateTimeCalc(DateTimeCalcInfo);
            }
        }