/** * Edit or create a schedule with its entered information. * If $scheduleId is null create a new schedule, otherwise the schedule specified by $scheduleId will be edit. * * @param int $scheduleId * @return Schedule newSchedule */ private function editSchedule($scheduleId) { $schedule = ScheduleController::editSchedule($scheduleId); $schedule->schdl_title = Input::get('title'); $schedule->schdl_time_preparation_start = null; return $schedule; }
/** * Edit or create a schedule with its entered information. * If $scheduleId is null create a new schedule, otherwise the schedule specified by $scheduleId will be edit. * * @param int $scheduleId * @return Schedule newSchedule */ private function editSchedule($scheduleId) { $schedule = ScheduleController::editSchedule($scheduleId); $schedule->schdl_due_date = null; return $schedule; }