NewsHolder
class NewsHolder extends DatedUpdateHolder (View source)
Properties
public | $pageIcon |
Methods
Find all distinct tags (TaxonomyTerms) associated with the DatedUpdatePages under this holder.
Wrapper to find all updates belonging to this holder, based on some filters.
Find all site's news items, based on some filters.
Produce an ArrayList of available months out of the updates contained in the DataList.
Details
UpdateTags()
Find all distinct tags (TaxonomyTerms) associated with the DatedUpdatePages under this holder.
Updates($tagID = null, $dateFrom = null, $dateTo = null, $year = null, $monthNumber = null)
Wrapper to find all updates belonging to this holder, based on some filters.
static
AllUpdates(string $className = 'NewsPage', int|null $parentID = null, int|null $tagID = null, string|null $dateFrom = null, string|null $dateTo = null, int|null $year = null, int|null $monthNumber = null)
Find all site's news items, based on some filters.
Omitting parameters will prevent relevant filters from being applied. The filters are ANDed together.
static
ExtractMonths(DataList $updates, string|null $link = null, string|int|null $currentYear = null, string|int|null $currentMonthNumber = null)
Produce an ArrayList of available months out of the updates contained in the DataList.
Here is an example of the returned structure: ArrayList: ArrayData: YearName => 2013 Months => ArrayList: MonthName => Jan MonthNumber => 1 MonthLink => (page URL)year=2012&month=1 Active => true ArrayData: YearName => 2012 Months => ArrayList: ...
getDefaultRSSLink()
No description
getDefaultAtomLink()
No description
getSubscriptionTitle()
No description