Example #1
0
 public function executeUpdate(sfWebRequest $request)
 {
     $output = parent::executeUpdate($request);
     if ($this->form_valid) {
         return $this->renderText(json_encode($this->form->getObject()->getRowData()));
     } else {
         return $output;
     }
 }
Example #2
0
 public function executeUpdate(sfWebRequest $request)
 {
     $output = parent::executeUpdate($request);
     $this->expertPanel = new ExpertPanel($this->form->getObject()->decision_id, $request->getParameter('id'));
     $this->expertPanel->load();
     if ($this->form_valid) {
         $matrix = json_decode($request->getParameter('matrix'), true);
         $this->plannedMeasurementSave($matrix);
         return $this->renderText(json_encode($this->form->getObject()->getRowData()));
     } else {
         return $output;
     }
 }
Example #3
0
 public function preExecute()
 {
     parent::preExecute();
     $this->forward404Unless($this->getUser()->hasRoadmapAccess());
 }
Example #4
0
 public function executeIndex(sfWebRequest $request)
 {
     parent::executeIndex($request);
     $this->tags = AlternativeTable::getInstance()->getTagsForProject($this->getUser()->getGuardUser(), $this->decision->getId());
 }