コード例 #1
0
 public static function aid_years()
 {
     if (!self::$aid_years) {
         $aid_years = new PSU_Student_Finaid_AidYears($aid_year);
         $aid_years->load();
         self::$aid_years = $aid_years;
     }
     //end if
     return self::$aid_years;
 }
コード例 #2
0
 /**
  * initialize default, selected, and available aid years
  *
  * @param $selected_aid_year int The selected aid year
  */
 private function _init_aid_years($selected_aid_year)
 {
     if (!isset($selected_aid_year) || !$selected_aid_year) {
         if ($this->target->student->finaid) {
             $selected_aid_year = $this->target->student->finaid->max_aid_year;
         }
         if (!$selected_aid_year) {
             $selected_aid_year = PSUStudent::getAidYear(PSUStudent::getCurrentTerm('UG'));
         }
     }
     $this->aid_years = PSU_Student_Finaid::aid_years();
     $this->aid_year = $this->aid_years[$selected_aid_year];
     $this->target->student->finaid->aid_year = $this->aid_year->aidy_code;
     $this->tpl->assign('aid_years', $this->aid_years);
     $this->tpl->assign('aid_year', $this->aid_year);
     $this->tpl->assign('student_aid_year', $this->target->student->aidyears[$this->aid_year->aidy_code]);
     return $selected_aid_year;
 }