Click or drag to resize

NewsItem Class

This class contains functions to handle with items of news.
Inheritance Hierarchy

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

The NewsItem type exposes the following members.

Constructors
  NameDescription
Public methodNewsItem
Constructor for NewsItem class.
Public methodNewsItem(IDataReader)
Constructor for NewsItem class.
Public methodNewsItem(Int32)
Constructor for NewsItem class.
Top
Properties
  NameDescription
Public propertyClicks
Gets or sets the amount of clicks.
Public propertyConnection (Inherited from DbObject.)
Public propertyCustomFields
Stores and retrieves a list of CustomFields objects.
Public propertyID (Inherited from DbObject.)
Public propertyIsNew (Inherited from DbObject.)
Public propertyNewsActive
Gets or sets the news active.
Public propertyNewsActiveFrom
Stores and retrieves the date the news are active from.
Public propertyNewsActiveTo
Stores and retrieves the date the news are active to.
Public propertyNewsApprovalState
Stores and retrieves approval state of news.
Public propertyNewsApprovalType
Stores and retrieves approval type of news.
Public propertyNewsArchive
Gets or sets the news archive.
Public propertyNewsAuthor
Gets or sets the news author.
Public propertyNewsCategoryID
Gets or sets the news category identifier.
Public propertyNewsCreatedDate
Stores and retrieves the date of news creation.
Public propertyNewsDate
Stores and retrieves the date of the news.
Public propertyNewsHashKey
Returns hash key of the news.
Public propertyNewsHeading
Stores and retrieves news heading.
Public propertyNewsImage
Stores and retrieves news image.
Public propertyNewsImageText
Stores and retrieves text for news image.
Public propertyNewsInitials
Stores and retrieves news initials.
Public propertyNewsLink
Stores and retrieves news link.
Public propertyNewsLinkPopup
Determines whether the news link to popup.
Public propertyNewsManchet
Stores and retrieves news teaser.
Public propertyNewsMetaURL
Stores and retrieves news Meta URL.
Public propertyNewsShortDate
Returns short date of the news date.
Public propertyNewsSmallImage
Stores and retrieves small news image.
Public propertyNewsTemplateID
Stores and retrieves ID of the news template.
Public propertyNewsText
Gets or sets the news text.
Public propertyNewsUpdatedDate
Stores and retrieves the date of news update.
Public propertyNewsUpdatedShortDate
Returns short date of the news update date.
Public propertyNewsUserCreate
Determines by what user news was created.
Public propertyNewsUserEdit
Determines by what user news was edited.
Public propertyRelatedCategories
Stores and retrieves new item related categories.
Public propertyTransaction (Inherited from DbObject.)
Top
Methods
  NameDescription
Public methodCopy
Copies the specified copy to category identifier.
Public methodDelete (Inherited from DbObject.)
Public methodDelete(Int32)
Deletes the specified news.
(Overrides DbObjectDelete(Int32).)
Public methodFill
Reads news item from data base.
(Overrides DbObjectFill(IDataReader).)
Public methodFillClicks
Fills count of clicks with data getting from statistic.
Public methodFillCustomFields
Fills a list of custom fields.
Public methodFillCustomFields(String)
Fills a list of custom fields according input IDs.
Public methodFillRelatedCategories
Fills a list of related categories.
Protected methodFillRow (Overrides DbObjectFillRow(DataRow).)
Public methodStatic memberGetAllNewsValidAndActiveAndNotArchive
Gets collection of valid, active and not archive news.
Public methodStatic memberGetMinMaxNewsDate
Retrieves minimum and maximum date.
Public methodStatic memberGetMinMaxNewsDate(String)
Retrieves minimum and maximum date from the specified news items range.
Public methodStatic memberGetNewsDates
Retrieves creation dates from the specified news items range.
Public methodStatic memberGetNewsList
Gets the collection of news by string of ids.
Public methodStatic memberGetNewsList(Int32)
Gets the collection of news by ids list.
Public methodStatic memberGetNewsList(String)
Gets the collection of news by string of ids.
Public methodStatic memberGetNewsListFromCategory(String, NewsStatus, SortFields, SortDirection, String, Int32, Int32, Boolean)
Gets the list of news by specified parameters.
Public methodStatic memberGetNewsListFromCategory(String, DateTime, DateTime, Boolean, NewsStatus, ArrayList, SortFields, SortDirection, String, Int32, Int32)
Gets the list of news by specified parameters.
Public methodStatic memberGetNewsListFromCategoryForIntegration
Gets the news list from category for integration.
Public methodStatic memberGetRowCount(String, String, NewsStatus, Boolean)
Gets amount of news by specified parameters.
Public methodStatic memberGetRowCount(String, DateTime, DateTime, Boolean, String, NewsStatus, ArrayList)
Gets amount of news by specified parameters.
Public methodLoad (Inherited from DbObject.)
Public methodStatic memberMostPopularNews
Gets the most popular news list.
Public methodMove
Moves the specified news to category identifier.
Public methodSave
Saves news to the data base.
(Overrides DbObjectSave.)
Public methodSave(Boolean)
Saves news to the data base.
Public methodStatic memberSetArchiveOnNews
Update one or more news.
Top
Fields
  NameDescription
Protected field_id (Inherited from DbObject.)
Protected field_keyField (Inherited from DbObject.)
Protected field_tableName (Inherited from DbObject.)
Top
See Also