| Línea 77... | 
            Línea 77... | 
          
          
            | 77 | 
             
  | 
            77 | 
             
  | 
          
          
            | 78 | 
                    
  | 
            78 | 
                    
  | 
          
          
            | 79 | 
                public function indexAction()
  | 
            79 | 
                public function indexAction()
  | 
          
          
            | 80 | 
                {
  | 
            80 | 
                {
  | 
          
          
            | 81 | 
                    $uuidObjective = $this->params()->fromRoute('uuid_objective');
  | 
            81 | 
                    $uuidObjective = $this->params()->fromRoute('uuid_objective');
  | 
          
          
            | Línea 82... | 
            Línea 82... | 
          
          
            | 82 | 
                    $uuidGoals= $this->params()->fromRoute('uuid_goals');
  | 
            82 | 
                    $uuidGoals= $this->params()->fromRoute('uuid_goal');
  | 
          
          
            | Línea 184... | 
            Línea 184... | 
          
          
            | 184 | 
                                    'description' => $record->description,
  | 
            184 | 
                                    'description' => $record->description,
  | 
          
          
            | 185 | 
                                    'progress'=> $record->indicator,
  | 
            185 | 
                                    'progress'=> $record->indicator,
  | 
          
          
            | 186 | 
                                    'cost'=> $record->cost,
  | 
            186 | 
                                    'cost'=> $record->cost,
  | 
          
          
            | 187 | 
                                    'status' => $record->status,
  | 
            187 | 
                                    'status' => $record->status,
  | 
          
          
            | 188 | 
                                    'actions' => [
  | 
            188 | 
                                    'actions' => [
  | 
          
          
            | 189 | 
                                        'link_edit' => $allowEdit ? $this->url()->fromRoute('planning-objectives-and-goals/objectives/goals/task/edit', ['uuid_objective' => $uuidObjective,'uuid_goals' => $uuidGoals,'id' => $record->uuid]) : '',
  | 
            189 | 
                                        'link_edit' => $allowEdit ? $this->url()->fromRoute('planning-objectives-and-goals/objectives/goals/task/edit', ['uuid_objective' => $uuidObjective,'uuid_goal' => $uuidGoals,'id' => $record->uuid]) : '',
  | 
          
          
            | 190 | 
                                        'link_delete' => $allowDelete ? $this->url()->fromRoute('planning-objectives-and-goals/objectives/goals/task/delete', ['uuid_objective' => $uuidObjective,'uuid_goals' => $uuidGoals,'id' => $record->uuid]) : ''
  | 
            190 | 
                                        'link_delete' => $allowDelete ? $this->url()->fromRoute('planning-objectives-and-goals/objectives/goals/task/delete', ['uuid_objective' => $uuidObjective,'uuid_goal' => $uuidGoals,'id' => $record->uuid]) : ''
  | 
          
          
            | 191 | 
                                        ]
  | 
            191 | 
                                        ]
  | 
          
          
            | Línea 192... | 
            Línea 192... | 
          
          
            | 192 | 
             
  | 
            192 | 
             
  | 
          
          
            | 193 | 
                                ];
  | 
            193 | 
                                ];
  | 
          
          
            | 194 | 
                                array_push($items, $item);
  | 
            194 | 
                                array_push($items, $item);
  | 
          
          
            | Línea 236... | 
            Línea 236... | 
          
          
            | 236 | 
                            $viewModel = new ViewModel();
  | 
            236 | 
                            $viewModel = new ViewModel();
  | 
          
          
            | 237 | 
                            $viewModel->setTemplate('leaders-linked/planning-objectives-and-goals-task/index.phtml');
  | 
            237 | 
                            $viewModel->setTemplate('leaders-linked/planning-objectives-and-goals-task/index.phtml');
  | 
          
          
            | 238 | 
                            $viewModel->setVariables([
  | 
            238 | 
                            $viewModel->setVariables([
  | 
          
          
            | 239 | 
                                'formAdd' => $formAdd,  
  | 
            239 | 
                                'formAdd' => $formAdd,  
  | 
          
          
            | 240 | 
                                'uuid_objective'=> $uuidObjective,
  | 
            240 | 
                                'uuid_objective'=> $uuidObjective,
  | 
          
          
            | 241 | 
                                'uuid_goals'=> $uuidGoals,
  | 
            241 | 
                                'uuid_goal'=> $uuidGoals,
  | 
          
          
            | Línea 242... | 
            Línea 242... | 
          
          
            | 242 | 
             
  | 
            242 | 
             
  | 
          
          
            | 243 | 
             
  | 
            243 | 
             
  | 
          
          
            | 244 | 
                            ]);
  | 
            244 | 
                            ]);
  | 
          
          
            | Línea 255... | 
            Línea 255... | 
          
          
            | 255 | 
                {
  | 
            255 | 
                {
  | 
          
          
            | 256 | 
                  $currentUserPlugin = $this->plugin('currentUserPlugin');
  | 
            256 | 
                  $currentUserPlugin = $this->plugin('currentUserPlugin');
  | 
          
          
            | 257 | 
                    $currentUser = $currentUserPlugin->getUser();
  | 
            257 | 
                    $currentUser = $currentUserPlugin->getUser();
  | 
          
          
            | 258 | 
                    $currentCompany = $currentUserPlugin->getCompany();
  | 
            258 | 
                    $currentCompany = $currentUserPlugin->getCompany();
  | 
          
          
            | 259 | 
                    $uuidObjective = $this->params()->fromRoute('uuid_objective');
  | 
            259 | 
                    $uuidObjective = $this->params()->fromRoute('uuid_objective');
  | 
          
          
            | 260 | 
                    $uuidGoals = $this->params()->fromRoute('uuid_goals');
  | 
            260 | 
                    $uuidGoals = $this->params()->fromRoute('uuid_goal');
  | 
          
          
            | 261 | 
                    $request = $this->getRequest();
  | 
            261 | 
                    $request = $this->getRequest();
  | 
          
          
            | 262 | 
                    $planningObjectivesAndGoalsObjectivesMapper = PlanningObjectivesAndGoalsObjectivesMapper::getInstance($this->adapter);
  | 
            262 | 
                    $planningObjectivesAndGoalsObjectivesMapper = PlanningObjectivesAndGoalsObjectivesMapper::getInstance($this->adapter);
  | 
          
          
            | 263 | 
                    $objective = $planningObjectivesAndGoalsObjectivesMapper->fetchOneByUuid($uuidObjective);
  | 
            263 | 
                    $objective = $planningObjectivesAndGoalsObjectivesMapper->fetchOneByUuid($uuidObjective);
  | 
          
          
            | Línea 264... | 
            Línea 264... | 
          
          
            | 264 | 
                                   
  | 
            264 | 
                                   
  | 
          
          
            | Línea 425... | 
            Línea 425... | 
          
          
            | 425 | 
                        
  | 
            425 | 
                        
  | 
          
          
            | 426 | 
                        return new JsonModel($data);
  | 
            426 | 
                        return new JsonModel($data);
  | 
          
          
            | Línea 427... | 
            Línea 427... | 
          
          
            | 427 | 
                    }
  | 
            427 | 
                    }
  | 
          
          
            | 428 | 
             
  | 
            428 | 
             
  | 
          
          
            | 429 | 
                    $uuidObjective = $this->params()->fromRoute('uuid_objective');
  | 
            429 | 
                    $uuidObjective = $this->params()->fromRoute('uuid_objective');
  | 
          
          
            | 430 | 
                    $uuidGoals = $this->params()->fromRoute('uuid_goals');
  | 
            430 | 
                    $uuidGoals = $this->params()->fromRoute('uuid_goal');
  | 
          
          
            | 431 | 
                    $currentUserPlugin = $this->plugin('currentUserPlugin');
  | 
            431 | 
                    $currentUserPlugin = $this->plugin('currentUserPlugin');
  | 
          
          
            | 432 | 
                    $currentCompany = $currentUserPlugin->getCompany();
  | 
            432 | 
                    $currentCompany = $currentUserPlugin->getCompany();
  | 
          
          
            | Línea 612... | 
            Línea 612... | 
          
          
            | 612 | 
                        ];
  | 
            612 | 
                        ];
  | 
          
          
            | Línea 613... | 
            Línea 613... | 
          
          
            | 613 | 
             
  | 
            613 | 
             
  | 
          
          
            | 614 | 
                        return new JsonModel($data);
  | 
            614 | 
                        return new JsonModel($data);
  | 
          
          
            | 615 | 
                    }
  | 
            615 | 
                    }
  | 
          
          
            | 616 | 
                    $uuidObjective = $this->params()->fromRoute('uuid_objective');
  | 
            616 | 
                    $uuidObjective = $this->params()->fromRoute('uuid_objective');
  | 
          
          
            | 617 | 
                    $uuidGoals = $this->params()->fromRoute('uuid_goals');
  | 
            617 | 
                    $uuidGoals = $this->params()->fromRoute('uuid_goal');
  | 
          
          
            | 618 | 
                    $currentUserPlugin = $this->plugin('currentUserPlugin');
  | 
            618 | 
                    $currentUserPlugin = $this->plugin('currentUserPlugin');
  | 
          
          
            | 619 | 
                    $currentCompany = $currentUserPlugin->getCompany();
  | 
            619 | 
                    $currentCompany = $currentUserPlugin->getCompany();
  | 
          
          
            | 620 | 
                    $planningObjectivesAndGoalsObjectivesMapper = PlanningObjectivesAndGoalsObjectivesMapper::getInstance($this->adapter);
  | 
            620 | 
                    $planningObjectivesAndGoalsObjectivesMapper = PlanningObjectivesAndGoalsObjectivesMapper::getInstance($this->adapter);
  |