public function getScheduleDetail($con = null) { include_once 'lib/model/om/BaseScheduleDetailPeer.php'; if ($this->aScheduleDetail === null && $this->schedule_detail_id !== null) { $this->aScheduleDetail = ScheduleDetailPeer::retrieveByPK($this->schedule_detail_id, $con); } return $this->aScheduleDetail; }
public function executeEditSchedule() { $schedule_id = $this->getRequestParameter('schedule_id'); $schedule = SchedulePeer::retrieveByPK($schedule_id); $this->forward404Unless($schedule); $this->schedule = $schedule; $this->schedule_id = $schedule_id; $cs_detail = ScheduleDetailPeer::retrieveByPK($this->getRequestParameter('id')); $this->cs_detail = $cs_detail; $actions = array(array('name' => 'save', 'type' => 'submit', 'options' => array('class' => 'save_button', 'onclick' => "action_type.value=this.value")), array('name' => 'cancel', 'url' => 'extracurricular/edit?id=' . $schedule->getId(), 'color' => 'black')); $this->subtitle = $schedule->getGradeComponent()->toString(); $this->type = 'edit'; $this->actions = $actions; }