/** * Find all site's news items, based on some filters. * Omitting parameters will prevent relevant filters from being applied. The filters are ANDed together. * * @param $className The name of the class to fetch. * @param $parentID The ID of the holder to extract the news items from. * @param $tagID The ID of the tag to filter the news items by. * @param $dateFrom The beginning of a date filter range. * @param $dateTo The end of the date filter range. If empty, only one day will be searched for. * @param $year Numeric value of the year to show. * @param $monthNumber Numeric value of the month to show. * * @return DataList | PaginatedList */ public static function AllUpdates($className = 'NewsPage', $parentID = null, $tagID = null, $dateFrom = null, $dateTo = null, $year = null, $monthNumber = null) { return parent::AllUpdates($className, $parentID, $tagID, $dateFrom, $dateTo, $year, $monthNumber)->Sort('Date', 'DESC'); }