Exemplo n.º 1
0
 /// <summary>
 /// update a info object already stored in the database
 /// </summary>
 /// <param name="info"></param>
 public void UpdateSideShow(SideShowInfo info)
 {
     //check we have some content to update
     if (info.Content != string.Empty)
     {
         DataProvider.Instance().UpdateSideShow(info.ModuleId, info.ItemId, info.Content, info.CreatedByUser);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// update a info object already stored in the database
 /// </summary>
 /// <param name="info"></param>
 public void UpdateSideShow(SideShowInfo info)
 {
     //check we have some content to update
     if (info.Content != string.Empty)
     {
         DataProvider.Instance().UpdateSideShow(info.ModuleId, info.ItemId, info.Content, info.CreatedByUser);
     }
 }
Exemplo n.º 3
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, "SideShows");

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

                AddSideShow(SideShowInfo);
            }
        }
Exemplo n.º 4
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, "SideShows");

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

                AddSideShow(SideShowInfo);
            }
        }