Source of file TeamPage.php
Size: 1,413 Bytes - Last Modified: 2021-12-23T10:51:35+00:00
/var/www/docs.ssmods.com/process/src/code/Pages/TeamPage.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 | <?php class TeamPage extends Page { /** * Static vars * ----------------------------------*/ /** * Object vars * ----------------------------------*/ /** * Static methods * ----------------------------------*/ /** * Data model * ----------------------------------*/ private static $db = array( ); private static $has_one = array( ); private static $has_many = array( ); /** * Common methods * ----------------------------------*/ /** * Accessor methods * ----------------------------------*/ /** * Controller actions * ----------------------------------*/ /** * Template accessors * ----------------------------------*/ public function TeamMembers() { $team = Member::get()->filterByCallback( function ($item) { return $item->inGroup('team-member'); } ); return $team->count() ? $team : false; } /** * Object methods * ----------------------------------*/ } class TeamPage_Controller extends Page_Controller { private static $allowed_actions = array( ); public function init() { parent::init(); } } |