Click or drag to resize

NewsCategory Class

This class contains functions to handle with news category.
Inheritance Hierarchy

Namespace:  Dynamicweb.News
Assembly:  Dynamicweb.News (in Dynamicweb.News.dll) Version: 1.0.10
Syntax
[SerializableAttribute]
public class NewsCategory : DbObject

The NewsCategory type exposes the following members.

Constructors
  NameDescription
Public methodNewsCategory
Constructor for NewsCategory class.
Public methodNewsCategory(IDataReader)
Constructor for NewsCategory class.
Public methodNewsCategory(Int32)
Constructor for NewsCategory class.
Top
Properties
  NameDescription
Public propertyConnection (Inherited from DbObject.)
Public propertyDefaultPermission
Public propertyDescription
Gets or sets the description of news category.
Public propertyGroups
Gets or sets the custom groups list.
Public propertyID (Inherited from DbObject.)
Public propertyIsNew (Inherited from DbObject.)
Public propertyIsTemplateEnforcedForThisCategory
Stores and retrieves is template enforced for this category.
Public propertyNewsCategoryAccess
Stores and retrieves access value for news category.
Public propertyNewsCategoryApprovalType
Stores and retrieves news category approval type.
Public propertyNewsCategoryName
Stores and retrieves name of news category.
Public propertyNewsCategoryTemplateID
Stores and retrieves ID of the news template.
Public propertyPermissionsDeny
Public propertySort
Sort.
Public propertyTransaction (Inherited from DbObject.)
Top
Methods
  NameDescription
Public methodStatic memberCheckChainIdsString
Checks if the input string is compared with the Template.
Public methodDelete (Inherited from DbObject.)
Public methodDelete(Int32)
Deletes the custom category with specified id.
(Overrides DbObjectDelete(Int32).)
Public methodStatic memberDeleteCustomFieldsValues
Deletes the custom field values by context and id.
Public methodFill
Reads news category from data base.
(Overrides DbObjectFill(IDataReader).)
Protected methodFillRow
Fills the row.
(Overrides DbObjectFillRow(DataRow).)
Public methodStatic memberGetAllCategoryList
Gets all news category list.
Public methodStatic memberGetAllowedCategoriesForUser
Gets all news category list.
Public methodGetArchiveNewsCount
Gets the amount of archive news.
Public methodStatic memberGetArchiveNewsCount(Int32)
Gets the amount of archive news.
Public methodStatic memberGetCategoryList(String)
Gets the news category list by ids.
Public methodStatic memberGetCategoryList(NewsCategorySortFields, SortDirection, String, Int32, Int32)
Gets the news category list.
Public methodGetNewsCount
Gets the amount of news.
Public methodStatic memberGetNewsCount(Int32)
Gets the amount of news.
Public methodStatic memberGetNewsIdsInCategory
Gets the list of news ids by specified category id.
Public methodStatic memberGetRowCount
Gets the amount of news categories by searching filter.
Public methodLoad (Inherited from DbObject.)
Public methodLoadGroups
Loads the custom groups.
Public methodStatic memberRemoveCache
Removes the cache.
Public methodSave
Saves current news category to the data base.
(Overrides DbObjectSave.)
Top
Fields
  NameDescription
Protected field_id (Inherited from DbObject.)
Protected field_keyField (Inherited from DbObject.)
Protected field_tableName (Inherited from DbObject.)
Top
Remarks
See Also