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');
     }
 }
 public static function delegate($path = null, $class = __CLASS__)
 {
     parent::delegate($path, $class);
 }
 /**
  * constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->myuser = new PSUPerson($_SESSION['username']);
 }