Example #1
0
 public function __construct($studentId, $identityId, $gradeId, $schoolId)
 {
     $this->studentId = $studentId;
     $this->identity = Identity::findById($identityId);
     $this->school = School::findById($schoolId);
     $this->grade = Grade::findById($gradeId);
 }
Example #2
0
 public function getValues()
 {
     return array('id' => $this->id, 'teacher' => Teacher::findById($this->teacher_id)->getValues(), 'schoolId' => $this->school_id, 'grade' => Grade::findById($this->grade_id)->getValues(), 'name' => $this->name);
 }