Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 10376 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 10376 Rev 11085
Línea 76... Línea 76...
76
 
76
 
77
        
77
        
78
        $currentUserPlugin = $this->plugin('currentUserPlugin');
78
        $currentUserPlugin = $this->plugin('currentUserPlugin');
79
        $currentUser = $currentUserPlugin->getUser();
79
        $currentUser = $currentUserPlugin->getUser();
Línea 80... Línea 80...
80
        $currentCompany = $currentUserPlugin->getCompany();
80
        $currentCompany = $currentUserPlugin->getCompany();
81
        $group_uuid =  $this->params()->fromRoute('group_uuid');
81
        $group_uuid =  $this->params()->fromRoute('group_id');
Línea 171... Línea 171...
171
 
171
 
172
    public function viewAction(){
172
    public function viewAction(){
173
        $currentUserPlugin = $this->plugin('currentUserPlugin');
173
        $currentUserPlugin = $this->plugin('currentUserPlugin');
174
        $currentUser = $currentUserPlugin->getUser();
174
        $currentUser = $currentUserPlugin->getUser();
175
        $currentCompany = $currentUserPlugin->getCompany();
175
        $currentCompany = $currentUserPlugin->getCompany();
Línea 176... Línea 176...
176
        $group_uuid =  $this->params()->fromRoute('group_uuid');
176
        $group_uuid =  $this->params()->fromRoute('group_id');
177
        
177
        
Línea 242... Línea 242...
242
                }
242
                }
Línea 243... Línea 243...
243
            
243
            
Línea 244... Línea 244...
244
 
244
 
245
            if($isJson) {
245
            if($isJson) {
246
                
246
                
247
                $group_uuid = $this->params()->fromRoute('group_uuid');
247
                $group_uuid = $this->params()->fromRoute('group_id');
248
                if(!$group_uuid) {
248
                if(!$group_uuid) {
249
                    $data = [
249
                    $data = [
Línea 275... Línea 275...
275
                    $item = [
275
                    $item = [
276
                        'title' => $record->title,
276
                        'title' => $record->title,
277
                        'description'=>$record->description,
277
                        'description'=>$record->description,
278
                        'status'=> $record->status,
278
                        'status'=> $record->status,
279
                        'actions' => [
279
                        'actions' => [
280
                            'link_edit' => $allowEdit ? $this->url()->fromRoute('high-performance-teams/groups/view/foro/categories/edit', ['group_uuid' => $highPerformanceTeamsGroups->uuid, 'category_uuid' => $record->uuid]) : '',
280
                            'link_edit' => $allowEdit ? $this->url()->fromRoute('high-performance-teams/groups/view/foro/categories/edit', ['group_id' => $highPerformanceTeamsGroups->uuid, 'category_id' => $record->uuid]) : '',
281
                            'link_delete' => $allowDelete ? $this->url()->fromRoute('high-performance-teams/groups/view/foro/categories/delete', ['group_uuid' => $highPerformanceTeamsGroups->uuid,'category_uuid' => $record->uuid]) : '',
281
                            'link_delete' => $allowDelete ? $this->url()->fromRoute('high-performance-teams/groups/view/foro/categories/delete', ['group_id' => $highPerformanceTeamsGroups->uuid,'category_id' => $record->uuid]) : '',
282
                            'link_view' => $allowView ? $this->url()->fromRoute('high-performance-teams/groups/view/foro/categories/articles', ['group_uuid' => $highPerformanceTeamsGroups->uuid,'category_uuid' => $record->uuid]) : '',
282
                            'link_view' => $allowView ? $this->url()->fromRoute('high-performance-teams/groups/view/foro/categories/articles', ['group_id' => $highPerformanceTeamsGroups->uuid,'category_id' => $record->uuid]) : '',
283
                        ]
283
                        ]
Línea 284... Línea 284...
284
 
284
 
Línea 285... Línea 285...
285
                    ];
285
                    ];
Línea 305... Línea 305...
305
    }
305
    }
Línea 306... Línea 306...
306
 
306
 
307
    public function addAction()
307
    public function addAction()
Línea 308... Línea 308...
308
    {
308
    {
309
 
309
 
310
        $group_uuid = $this->params()->fromRoute('group_uuid');
310
        $group_uuid = $this->params()->fromRoute('group_id');
311
        if(!$group_uuid) {
311
        if(!$group_uuid) {
312
            $data = [
312
            $data = [
313
                'success'   => false,
313
                'success'   => false,
Línea 439... Línea 439...
439
 
439
 
440
        $currentUserPlugin = $this->plugin('currentUserPlugin');
440
        $currentUserPlugin = $this->plugin('currentUserPlugin');
441
        $currentUser = $currentUserPlugin->getUser();
441
        $currentUser = $currentUserPlugin->getUser();
442
        $currentCompany = $currentUserPlugin->getCompany();
442
        $currentCompany = $currentUserPlugin->getCompany();
443
        $request = $this->getRequest();
443
        $request = $this->getRequest();
Línea 444... Línea 444...
444
        $group_uuid = $this->params()->fromRoute('group_uuid');
444
        $group_uuid = $this->params()->fromRoute('group_id');
Línea 445... Línea 445...
445
        
445
        
446
        $category_uuid = $this->params()->fromRoute('category_uuid');
446
        $category_uuid = $this->params()->fromRoute('category_id');
447
 
447
 
Línea 591... Línea 591...
591
        $currentUserPlugin = $this->plugin('currentUserPlugin');
591
        $currentUserPlugin = $this->plugin('currentUserPlugin');
592
        $currentCompany = $currentUserPlugin->getCompany();
592
        $currentCompany = $currentUserPlugin->getCompany();
593
        $currentUser = $currentUserPlugin->getUser();
593
        $currentUser = $currentUserPlugin->getUser();
Línea 594... Línea 594...
594
 
594
 
595
        $request = $this->getRequest();
595
        $request = $this->getRequest();
596
        $group_uuid = $this->params()->fromRoute('group_uuid');
596
        $group_uuid = $this->params()->fromRoute('group_id');
Línea 597... Línea 597...
597
        $category_uuid = $this->params()->fromRoute('category_uuid');
597
        $category_uuid = $this->params()->fromRoute('category_id');
598
        
598
        
599
       
599