public function executeSelectByDepartment() { $dept_id = $this->getRequestParameter('dept_id'); $this->forward404Unless($dept_id); $objs = AcademicCalendarPeer::doSelectByDepartment($dept_id); $content = array(); $disabled = array(); foreach ($objs as $o) { $content[$o->getId()] = $o->toString(); } $this->content = $content; $this->disabled = $disabled; }