/** * we want to skip terms that aren't in the current aid year */ public function apply_skip_terms($value, $bill, $level) { if (!$value) { $value = array(); } //end if if (strtoupper($level) == 'UG') { foreach ((array) $bill->all_term_balances as $term => $amount) { if (\PSU\Student::getAidYear() != \PSU\Student::getAidYear($term)) { $value[] = $term; } //end if } //end foreach } //end if return $value; }
public function __construct($pidm, $aid_year = null) { $this->pidm = $pidm; $this->aid_year = $aid_year ? $aid_year : \PSU\Student::getAidYear(); }
/** * @param $pidm * @param $aid_year string i.e. '1011' * @param $fund_messages stdClass an object for reading fund messages */ public function __construct($pidm, $aid_year = null, $fund_messages = null) { $this->pidm = $pidm; $this->aid_year = $aid_year ? $aid_year : \PSU\Student::getAidYear(); $this->fund_messages = $fund_messages ? $fund_messages : new PSU_Student_Finaid_Awards_Messages($pidm, $this->aid_year); }
/** * we want to skip terms that aren't in the current aid year */ public function payment_plan_ug_skip_term_filter($value, $bill, $level) { if (strtoupper($level) == 'UG') { foreach ((array) $bill->all_term_balances as $term => $tmp) { if (\PSU\Student::getAidYear() != \PSU\Student::getAidYear($term)) { $value[] = $term; } //end if } //end foreach } //end if return $value; }