Exemple #1
0
 public function getExercises()
 {
     $ex = new Dase_DBO_Exercise($this->db);
     $ex->creator_eid = $this->eid;
     $ex->orderBy('title');
     $this->exercises = $ex->findAll(1);
     return $this->exercises;
 }
Exemple #2
0
 public function getExercises()
 {
     $ex = new Dase_DBO_Exercise($this->db);
     $ex->exercise_set_id = $this->id;
     $ex->orderBy('sort_order_in_set');
     foreach ($ex->findAll(1) as $e) {
         $this->exercises[] = $e;
     }
     return $this->exercises;
 }