Esempio n. 1
0
 /**
  * Edits a stack/cycle.
  *
  * @param String $cycle_id Id of the cycle to be edited.
  */
 private function editStack($cycle_id)
 {
     $this->cycle_id = $cycle_id;
     $this->teachers = $this->course->getMembers('dozent');
     $this->gruppen = Statusgruppen::findBySeminar_id($this->course->id);
     $this->resList = ResourcesUserRoomsList::getInstance($GLOBALS['user']->id, true, false, true);
     $this->editParams = array('fromDialog' => Request::get('fromDialog'));
     $this->render_template('course/timesrooms/editStack');
 }
Esempio n. 2
0
 /**
  * gets all statusgruppe_ids of related groups of this date
  * @return array of statusgruppe_ids
  */
 public function getRelatedGroups()
 {
     if (count($this->related_groups)) {
         return $this->related_groups;
     } else {
         $groups = Statusgruppen::findBySeminar_id($this->getSeminarID());
         return array_map(function ($g) {
             return $g->getId();
         }, $groups);
     }
 }