Example #1
0
 public function startceAction()
 {
     if (Default_SimpleQuery::isCeCompletelyDefined($this->callingCeId)) {
         $ceTable = new CalibrationExercise();
         $data = array(CalibrationExercise::COL_IS_STOPPED => 0);
         $ceTable->update($data, $ceTable->getAdapter()->quoteInto(CalibrationExercise::COL_ID . '=?', $this->callingCeId));
         $this->redirectTo('index', array(CalibrationExercise::COL_ID => $this->callingCeId));
         $this->defaultNamespace->message = NULL;
     } else {
         $this->defaultNamespace->message = '<red>Error: Calibration exercise not completely defined.</red>';
         $this->redirectTo('index', array(CalibrationExercise::COL_ID => $this->callingCeId));
     }
 }