Source of file NewsPage.php
Size: 0,424 Bytes - Last Modified: 2022-02-21T10:00:27+00:00
/var/www/docs.ssmods.com/process/src/code/NewsPage.php
1234567891011121314151617181920 | <?php class NewsPage extends Page { static $db = array( ); static $has_one = array( ); private static $allowed_children = array("News"); private static $default_child = "News"; } class NewsPage_Controller extends Page_Controller { public function GetNews() { $news = News::get()->filter("ParentID", $this->ID)->sort("Date", "DESC"); //TODO Paging return $news; } } |