Beispiel #1
0
 public ForumInfo ForumSave(int PortalId, int ModuleId, int ForumId, int ParentId, bool AllowTopics, string Name, string Description, int SortOrder, bool Active, 
     bool Hidden, int TopicCount, int ReplyCount, int LastPostId, string Slug, int PermissionId, int SettingId, string EmailAddress, float SiteMapPriority) {
     Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();
     ForumInfo fi = new ForumInfo();
     if (ForumId > 0) {
         fi = fc.GetForum(ForumId);
     }
     if (fi == null) {
         fi = new ForumInfo();
         fi.TopicCount = 0;
         fi.ReplyCount = 0;
         fi.LastPostId = 0;
     }
     fi.ForumId = ForumId;
     fi.PortalId = PortalId;
     fi.ModuleId = ModuleId;
     fi.ParentId = ParentId;
     fi.AllowTopics = AllowTopics;
     fi.Name = Name;
     fi.Description = Description;
     fi.SortOrder = SortOrder;
     fi.Active = Active;
     fi.Hidden = Hidden;
     fi.Slug = Slug;
     fi.PermissionId = PermissionId;
     fi.SettingId = SettingId;
     fi.EmailAddress = EmailAddress;
     fi.SiteMapPriority = SiteMapPriority;
     fi.CreatedByUserId = -1;
     fi.LastModifiedByUserId = -1;
     fc.SaveForum(fi);
     return fi;
 }
Beispiel #2
0
        public ForumInfo ForumGet(int ForumId)
        {
            Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();
            ForumInfo fi = fc.GetForum(ForumId);

            return(fi);
        }
Beispiel #3
0
        public RankInfo RankGet(int portalId, int moduleId, int rankId)
        {
            Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();
            RankInfo ri = fc.GetRank(rankId);

            return(ri);
        }
Beispiel #4
0
        public List <FilterInfo> FilterList(int PortalId, int ModuleId)
        {
            Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();
            List <FilterInfo> fl = fc.GetAllFilters(PortalId, ModuleId, -1);

            return(fl);
        }
Beispiel #5
0
        public List <ForumInfo> ForumsList(int ModuleId)
        {
            Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();
            List <ForumInfo> fl = fc.GetModuleForums(ModuleId);

            return(fl);
        }
Beispiel #6
0
        public List <RankInfo> RanksList(int portalId, int moduleId)
        {
            Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();
            List <RankInfo> rl = fc.GetModuleRank(moduleId);

            return(rl);
        }
Beispiel #7
0
 public bool RankDelete(int portalId, int moduleId, int rankId) {
     Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();
     try {
         fc.DeleteRank(rankId, portalId);
         return true;
     } catch {
         return false;
     }
 }
Beispiel #8
0
 public bool FilterDelete(int PortalId, int ModuleId, int FilterId) {
     Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();
     try {
         fc.DeleteFilter(FilterId, PortalId);
         return true;
     } catch {
         return false;
     }
 }
Beispiel #9
0
 public bool FilterDelete(int PortalId, int ModuleId, int FilterId)
 {
     Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();
     try {
         fc.DeleteFilter(FilterId, PortalId);
         return(true);
     } catch {
         return(false);
     }
 }
Beispiel #10
0
 public bool ForumDelete(int portalId, int moduleId, int forumId)
 {
     Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();
     try {
         fc.DeleteForum(forumId, moduleId, portalId);
         return(true);
     } catch {
         return(false);
     }
 }
Beispiel #11
0
 public FilterInfo FilterGet(int PortalId, int ModuleId, int FilterId) {
     Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();
     
     FilterInfo fi = fc.GetFilter(FilterId);
     if (fi == null) {
         fi = new FilterInfo();
         fi.PortalId = PortalId;
         fi.ModuleId = ModuleId;
         fi.FilterId = -1;
     }
     return fi;
 }
Beispiel #12
0
        public FilterInfo FilterGet(int PortalId, int ModuleId, int FilterId)
        {
            Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();

            FilterInfo fi = fc.GetFilter(FilterId);

            if (fi == null)
            {
                fi          = new FilterInfo();
                fi.PortalId = PortalId;
                fi.ModuleId = ModuleId;
                fi.FilterId = -1;
            }
            return(fi);
        }
Beispiel #13
0
        public RankInfo RankSave(int portalId, int moduleId, int rankId, string rankName, int minPosts, int maxPosts, string display) {
            Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();
            RankInfo obj = new RankInfo();
            if (rankId > 0) {
                obj = fc.GetRank(rankId);
            }
            obj.PortalId = portalId;
            obj.ModuleId = moduleId;
            obj.RankId = rankId;
            obj.RankName = rankName;
            obj.MinPosts = minPosts;
            obj.MaxPosts = maxPosts;
            obj.Display = display;
            
            obj = fc.SaveRank(obj);
            return obj;

        }
Beispiel #14
0
 public FilterInfo FilterSave(int PortalId, int ModuleId, int FilterId, int ForumId, string Find, string Replace, string FilterType, bool ApplyOnSave, bool ApplyOnRender) {
     Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();
     FilterInfo fi = new FilterInfo();
     if (FilterId > 0) {
         fi = fc.GetFilter(FilterId);
     }
     fi.PortalId = PortalId;
     fi.ModuleId = ModuleId;
     fi.FilterId = FilterId;
     fi.ForumId = ForumId;
     fi.Find = Find;
     fi.Replace = Replace;
     fi.FilterType = FilterType;
     fi.ApplyOnRender = ApplyOnRender;
     fi.ApplyOnSave = ApplyOnSave;
     fi = fc.SaveFilter(fi);
     return fi;
     
 }
Beispiel #15
0
        public RankInfo RankSave(int portalId, int moduleId, int rankId, string rankName, int minPosts, int maxPosts, string display)
        {
            Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();
            RankInfo obj = new RankInfo();

            if (rankId > 0)
            {
                obj = fc.GetRank(rankId);
            }
            obj.PortalId = portalId;
            obj.ModuleId = moduleId;
            obj.RankId   = rankId;
            obj.RankName = rankName;
            obj.MinPosts = minPosts;
            obj.MaxPosts = maxPosts;
            obj.Display  = display;

            obj = fc.SaveRank(obj);
            return(obj);
        }
Beispiel #16
0
        public FilterInfo FilterSave(int PortalId, int ModuleId, int FilterId, int ForumId, string Find, string Replace, string FilterType, bool ApplyOnSave, bool ApplyOnRender)
        {
            Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();
            FilterInfo fi = new FilterInfo();

            if (FilterId > 0)
            {
                fi = fc.GetFilter(FilterId);
            }
            fi.PortalId      = PortalId;
            fi.ModuleId      = ModuleId;
            fi.FilterId      = FilterId;
            fi.ForumId       = ForumId;
            fi.Find          = Find;
            fi.Replace       = Replace;
            fi.FilterType    = FilterType;
            fi.ApplyOnRender = ApplyOnRender;
            fi.ApplyOnSave   = ApplyOnSave;
            fi = fc.SaveFilter(fi);
            return(fi);
        }
Beispiel #17
0
        public ForumInfo ForumSave(int PortalId, int ModuleId, int ForumId, int ParentId, bool AllowTopics, string Name, string Description, int SortOrder, bool Active,
                                   bool Hidden, int TopicCount, int ReplyCount, int LastPostId, string Slug, int PermissionId, int SettingId, string EmailAddress, float SiteMapPriority)
        {
            Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();
            ForumInfo fi = new ForumInfo();

            if (ForumId > 0)
            {
                fi = fc.GetForum(ForumId);
            }
            if (fi == null)
            {
                fi            = new ForumInfo();
                fi.TopicCount = 0;
                fi.ReplyCount = 0;
                fi.LastPostId = 0;
            }
            fi.ForumId              = ForumId;
            fi.PortalId             = PortalId;
            fi.ModuleId             = ModuleId;
            fi.ParentId             = ParentId;
            fi.AllowTopics          = AllowTopics;
            fi.Name                 = Name;
            fi.Description          = Description;
            fi.SortOrder            = SortOrder;
            fi.Active               = Active;
            fi.Hidden               = Hidden;
            fi.Slug                 = Slug;
            fi.PermissionId         = PermissionId;
            fi.SettingId            = SettingId;
            fi.EmailAddress         = EmailAddress;
            fi.SiteMapPriority      = SiteMapPriority;
            fi.CreatedByUserId      = -1;
            fi.LastModifiedByUserId = -1;
            fc.SaveForum(fi);
            return(fi);
        }
Beispiel #18
0
 public List<FilterInfo> FilterList(int PortalId, int ModuleId) {
     Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();
     List<FilterInfo> fl = fc.GetAllFilters(PortalId, ModuleId, -1);
     return fl;
 }
Beispiel #19
0
 public RankInfo RankGet(int portalId, int moduleId, int rankId) {
     Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();
     RankInfo ri = fc.GetRank(rankId);
     return ri;
 }
Beispiel #20
0
 public List<RankInfo> RanksList(int portalId, int moduleId) {
     Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();
     List<RankInfo> rl = fc.GetModuleRank(moduleId);
     return rl;
 }
Beispiel #21
0
 public List<ForumInfo> ForumsList(int ModuleId) {
     Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();
     List<ForumInfo> fl = fc.GetModuleForums(ModuleId);
     return fl;
     
 }
Beispiel #22
0
        public ForumInfo ForumGet(int ForumId) {
            Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();
            ForumInfo fi = fc.GetForum(ForumId); 
            return fi;

        }
Beispiel #23
0
 public bool ForumDelete(int portalId, int moduleId, int forumId) {
     Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController();
     try {
         fc.DeleteForum(forumId, moduleId, portalId);
         return true;
     } catch {
         return false;
     }
 }