public function getSet($r) { $t = new Dase_Template($r); $t->init($this); $set = new Dase_DBO_ExerciseSet($this->db); $set->load($r->get('id')); if ($set->creator_eid != $this->user->eid) { $r->renderError('401'); } $set->getUsers(); $set->getExercises(); $t->assign('set', $set); $this->user->getSets(); $instructors = new Dase_DBO_User($this->db); $instructors->is_instructor = true; $t->assign('instructors', $instructors->findAll(1)); $r->renderResponse($t->fetch('admin_set.tpl')); }
public function getUsers($r) { $t = new Dase_Template($r); $users = new Dase_DBO_User($this->db); $users->orderBy('name'); $t->assign('users', $users->findAll(1)); $r->renderResponse($t->fetch('framework/admin_users.tpl')); }