public function __construct($title = null) { parent::__construct($title); $this->user = new PSUPerson($_SESSION['wp_id']); $this->params = new FinaidParams(); $this->params['admin'] = IDMObject::authZ('permission', 'mis') || IDMObject::authZ('permission', 'finaid_myfinaid_admin'); $this->tpl->assign('params', $this->params); $this->_init_person($this->params['id']); $this->params['aid_year'] = $this->_init_aid_years($this->params['aid_year']); // // setup testing data // $this->testing = new FinaidTesting(); // admins can do test mode if ($this->params['admin']) { $this->params['testable'] = true; } if ($this->params['testable']) { $this->testing->mock($this->target); } $this->tpl->assign('testing', $this->testing); // Warn user about pending relationships, no more than once every 5 minutes if ($this->params['warned-pending'] < time() - 300 && ($pending = $this->user->myrelationships->get('pending'))) { $this->params['warned-pending'] = time(); $count = count($pending); $_SESSION['warnings']['finaid-pending'] = sprintf('You have %d pending relationship%s. Please note that you can\'t see another person\'s financial aid information until your relationship with that person is confirmed. Visit <a href="http://go.plymouth.edu/familychannel">Family Access</a> for more details.', $count, $count == 1 ? '' : 's'); } }
/** * constructor */ public function __construct() { parent::__construct(); $this->portal = new MyPortal($GLOBALS['identifier']); $this->tpl->assign('portal', $this->portal); $this->tpl->body_style_classes[] = 'myplymouth'; if ($this->portal->is_chat_disabled()) { $this->tpl->body_style_classes[] = 'chat-disabled'; } //end if }
/** * constructor */ public function __construct() { parent::__construct(); $this->portal = new MyPortal($GLOBALS['identifier']); $new_themes = PSUTheme::new_themes($this->portal->person->wp_id); $this->tpl->assign('new_themes', $new_themes); $this->tpl->body_style_classes[] = 'myplymouth'; if ($this->portal->is_fluid()) { $this->tpl->body_style_classes[] = 'fluid'; } //end if MyController::_detect_disabled_chat($this->portal, $this->tpl); }
/** * constructor */ public function __construct() { parent::__construct(); $this->myuser = new PSUPerson($_SESSION['username']); }
/** * constructor */ public function __construct() { parent::__construct(); $this->portal = new MyPortal($GLOBALS['identifier']); MyController::_detect_disabled_chat($this->portal, $this->tpl); }