Ejemplo n.º 1
0
 /**
  * loads data for the person
  */
 protected function load()
 {
     $args = array('pidm' => $this->pidm, 'levl_code' => $this->level_code, 'term_code' => $this->term_code_eff);
     if ($this->term_code_eff) {
         $sql = \PSU\Student::dataSQL(true, true);
     } else {
         $sql = \PSU\Student::dataSQL(true, false);
     }
     //end else
     // store term code to prevent overwiting in the execution of dataSQL
     $term_code = $this->term_code;
     if ($row = \PSU::db('banner')->GetRow($sql, $args)) {
         $this->parse($row);
     }
     //end if
     // fix the overwritten term_code
     $this->term_code = $term_code;
 }