class NewsHolder extends DatedUpdateHolder (View source)

Properties

public $pageIcon

Methods

public
UpdateTags()

Find all distinct tags (TaxonomyTerms) associated with the DatedUpdatePages under this holder.

public
Updates($tagID = null, $dateFrom = null, $dateTo = null, $year = null, $monthNumber = null)

Wrapper to find all updates belonging to this holder, based on some filters.

public 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.

public 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.

public
getDefaultRSSLink()

No description

public
getDefaultAtomLink()

No description

public
getSubscriptionTitle()

No description

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.

Parameters

$tagID
$dateFrom
$dateTo
$year
$monthNumber

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.

Parameters

string $className

The name of the class to fetch.

int|null $parentID

The ID of the holder to extract the updates from.

int|null $tagID

The ID of the tag to filter the updates by.

string|null $dateFrom

The beginning of a date filter range.

string|null $dateTo

The end of the date filter range. If empty, only one day will be searched for.

int|null $year

Numeric value of the year to show.

int|null $monthNumber

Numeric value of the month to show.

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: ...

Parameters

DataList $updates
string|null $link

Link used as abase to construct the MonthLink.

string|int|null $currentYear

Currently selected year, for computing the link active state.

string|int|null $currentMonthNumber

Currently selected month, for computing the link active state.

No description

No description

getSubscriptionTitle()

No description