Exemple #1
0
 public function executeSelectByClassGroup()
 {
     $class_id = $this->getRequestParameter('class_id');
     $this->forward404Unless($class_id);
     $class = ClassGroupPeer::retrieveByPK($class_id);
     $dept_id = $class->getDepartmentId();
     $objs = LocationPeer::doSelectByDepartment($dept_id);
     $content = array();
     $disabled = array();
     foreach ($objs as $o) {
         $content[$o->getId()] = $o->toStringWithCap();
         if ($o->isSchedFull()) {
             $disabled[] = $o->getId();
         }
     }
     $this->content = $content;
     $this->disabled = $disabled;
 }