CWP\CWP\PageTypes\EventHolder::AllUpdates
Find all site's news items, based on some filters.
Omitting parameters will prevent relevant filters from being applied. The filters are ANDed together.
Signature
public function AllUpdates([string
$className = 'Events',
[int
$parentID = NULL,
[int
$tagID = NULL,
[string
$dateFrom = NULL,
[string
$dateTo = NULL,
[int
$year = NULL,
[int
$monthNumber = NULL]]]]]]] )
Parameters
$className
— string- The name of the class to fetch.
$parentID
— int- The ID of the holder to extract the news items from.
$tagID
— int- The ID of the tag to filter the news items by.
$dateFrom
— string- The beginning of a date filter range.
$dateTo
— string- The end of the date filter range. If empty, only one day will be searched for.
$year
— int- Numeric value of the year to show.
$monthNumber
— int- Numeric value of the month to show.