Click or drag to resize
ForumContext Class
Forum context.
Inheritance Hierarchy
SystemObject
  CMS.BaseAbstractSimpleDataContainerForumContext
    CMS.BaseAbstractDataContainerForumContext
      CMS.BaseAbstractHierarchicalObjectForumContext
        CMS.BaseContextContainerForumContext
          CMS.BaseAbstractContextForumContext
            CMS.ForumsForumContext

Namespace: CMS.Forums
Assembly: CMS.Forums (in CMS.Forums.dll) Version: 12.0.0
Syntax
C#
public class ForumContext : AbstractContext<ForumContext>

The ForumContext type exposes the following members.

Constructors
  NameDescription
Public methodForumContext
Top
Properties
  NameDescription
Public propertyColumnNames
Available column names.
(Inherited from AbstractDataContainerParentObjectType.)
Public propertyStatic memberCommunityGroupID
Gets or sets community group id.
Public propertyStatic memberCurrentForum
Returns current forum.
Public propertyStatic memberCurrentForumDiscussionMacroHelper
Gets Discussion macro helper for current forum.
Public propertyStatic memberCurrentGroup
Returns current thread.
Public propertyStatic memberCurrentMode
Gets current forum mode.
Public propertyStatic memberCurrentPost
Returns current post for edit or attachment.
Public propertyStatic memberCurrentReplyThread
Returns curren reply thread info.
Public propertyStatic memberCurrentState
Gets the current forum mode.
Public propertyStatic memberCurrentSubscribeThread
Returns curren reply thread info.
Public propertyStatic memberCurrentThread
Returns current thread.
Public propertyStatic memberForumID
Gets or sets the forum id base on current url or settings.
Public propertyStatic memberGroupID
Gets or sets the group id based on current settings.
Public propertyIsDefault
Returns true if the context is the default request context
(Inherited from ContextContainerTParent.)
Public propertyItem
Gets the value of particular property
(Inherited from AbstractHierarchicalObjectTObject.)
Public propertyKey
Unique container key
(Inherited from ContextContainerTParent.)
Public propertyProperties
Properties available through the context.
(Inherited from AbstractHierarchicalObjectTObject.)
Protected propertyPropertyList
Used property list
(Inherited from AbstractHierarchicalObjectTObject.)
Protected propertyRegisteredColumns
Registered Columns
(Inherited from AbstractSimpleDataContainerTObject.)
Protected propertyRegisteredColumnsObject
Registered Columns object
(Inherited from AbstractSimpleDataContainerTObject.)
Protected propertyRegisteredProperties
Registered properties
(Inherited from AbstractHierarchicalObjectTObject.)
Protected propertyRegisteredPropertiesObject
Registered properties object
(Inherited from AbstractHierarchicalObjectTObject.)
Public propertyStatic memberReplyThreadID
Gets or sets the forum id base on current url or settings.
Public propertyStatic memberSiteID
Gets or sets the site ID.
Public propertyStatic memberSubscribeThreadID
Gets or sets the forum id base on current url or settings.
Public propertyStatic memberThreadID
Gets or sets the thread id based on current url or settings.
Protected propertyUseLocalColumns
If true, the object uses local columns
(Inherited from AbstractSimpleDataContainerTObject.)
Protected propertyUseLocalProperties
If true, the object uses local properties
(Inherited from AbstractHierarchicalObjectTObject.)
Public propertyStatic memberUserIsModeratorInSomeForum
Returns true if current user is moderator in at least one forum.
Top
Methods
  NameDescription
Public methodStatic memberCheckSite
Checks if current post, forum or group is belong to current site. You have to insert at least one ID other parameters could be zero.
Public methodClearCurrent
Clears the current context value
(Inherited from ContextContainerTParent.)
Public methodCloneForNewThread
Clones the object for new thread
(Inherited from AbstractContextTContext.)
Public methodCombineWith
Combines current instance with other properties (modifies current instace!). List properties are merged from all the participating typeinfos, other properties are taken as first non-null value (non-null is determined by nullValues collection).
(Inherited from AbstractHierarchicalObjectTObject.)
Public methodContainsColumn
Returns true if specified column is available in current structure.
(Inherited from AbstractDataContainerParentObjectType.)
Public methodEnsureCurrent (Inherited from ContextContainerTParent.)
Public methodGetProperty
Gets the context property.
(Inherited from AbstractHierarchicalObjectTObject.)
Protected methodGetPropertyType
Gets the type of the given property
(Inherited from AbstractHierarchicalObjectTObject.)
Public methodGetValue
Gets the object value.
(Inherited from AbstractSimpleDataContainerTObject.)
Public methodHasSetter
Returns true if given property has a setter
(Inherited from AbstractHierarchicalObjectTObject.)
Public methodStatic memberIsCommunityGroupAdmin(Int32)
Returns true if current user is group admin for selected forum.
Public methodStatic memberIsCommunityGroupAdmin(Int32, UserInfo)
Returns true if specified user is group admin for selected forum.
Protected methodRegisterColumn(String, FuncTObject, Object)
Registers the given Column to the object
(Inherited from AbstractSimpleDataContainerTObject.)
Protected methodRegisterColumn(String, FuncTObject, Object, FuncTObject, Object, Object)
Registers the given Column to the object
(Inherited from AbstractSimpleDataContainerTObject.)
Protected methodRegisterColumns
Registers the Columns of this object
(Inherited from AbstractSimpleDataContainerTObject.)
Protected methodRegisterProperties
Registers the properties of this object
(Overrides AbstractHierarchicalObjectTObjectRegisterProperties.)
Protected methodRegisterProperty(String, FuncTObject, Object)
Registers the given property to the object
(Inherited from AbstractHierarchicalObjectTObject.)
Protected methodRegisterProperty(String, Object, FuncTObject, Object, Object)
Registers the given parameterized property to the object.
(Inherited from AbstractHierarchicalObjectTObject.)
Public methodSetAsCurrent
Sets the current instance as the current thread item
(Inherited from ContextContainerTParent.)
Public methodSetProperty
Gets the context property.
(Inherited from AbstractHierarchicalObjectTObject.)
Public methodSetValue
Sets the object value.
(Inherited from AbstractSimpleDataContainerTObject.)
Public methodTryGetProperty(String, Object)
Gets the context property.
(Inherited from AbstractHierarchicalObjectTObject.)
Public methodTryGetProperty(String, Object, Boolean)
Returns value of property.
(Inherited from AbstractHierarchicalObjectTObject.)
Public methodTryGetValue
Returns value of column.
(Inherited from AbstractSimpleDataContainerTObject.)
Public methodStatic memberUserIsModerator(Int32, Int32)
Returns true if current user is moderator of current forum.
Public methodStatic memberUserIsModerator(Int32, Int32, UserInfo)
Returns true if specified user is moderator of current forum.
Top
See Also