Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 11092 Rev 15386
Línea 1... Línea 1...
1
<?php
1
<?php
2
declare(strict_types=1);
2
declare(strict_types=1);
Línea 3... Línea 3...
3
 
3
 
Línea 4... Línea -...
4
namespace LeadersLinked\Controller;
-
 
5
 
-
 
6
use Laminas\Authentication\AuthenticationService;
4
namespace LeadersLinked\Controller;
7
use Laminas\Authentication\Result as AuthResult;
5
 
8
use Laminas\Db\Adapter\AdapterInterface;
6
use Laminas\Db\Adapter\AdapterInterface;
9
use Laminas\Cache\Storage\Adapter\AbstractAdapter;
-
 
10
use Laminas\Mvc\Controller\AbstractActionController;
7
use Laminas\Cache\Storage\Adapter\AbstractAdapter;
11
use Laminas\Mvc\I18n\Translator;
8
use Laminas\Mvc\Controller\AbstractActionController;
12
use Laminas\Log\LoggerInterface;
9
use Laminas\Log\LoggerInterface;
13
use Laminas\View\Model\ViewModel;
10
use Laminas\View\Model\ViewModel;
14
use Laminas\View\Model\JsonModel;
11
use Laminas\View\Model\JsonModel;
15
use LeadersLinked\Model\PlanningObjectivesAndGoalsTask;
12
use LeadersLinked\Model\PlanningObjectivesAndGoalsTask;
16
use LeadersLinked\Hydrator\ObjectPropertyHydrator;
-
 
17
use LeadersLinked\Form\PlanningObjectivesAndGoalsTaskForm;
13
use LeadersLinked\Hydrator\ObjectPropertyHydrator;
18
 
-
 
19
use LeadersLinked\Library\Functions;
14
use LeadersLinked\Form\PlanningObjectivesAndGoalsTaskForm;
20
 
-
 
21
use LeadersLinked\Mapper\PlanningObjectivesAndGoalsTaskMapper;
15
use LeadersLinked\Library\Functions;
22
 
-
 
23
use LeadersLinked\Model\PlanningObjectivesAndGoalsTaskMembers;
16
use LeadersLinked\Mapper\PlanningObjectivesAndGoalsTaskMapper;
24
use LeadersLinked\Form\PlanningObjectivesAndGoalsTaskMembersForm;
17
use LeadersLinked\Model\PlanningObjectivesAndGoalsTaskMembers;
25
use LeadersLinked\Mapper\PlanningObjectivesAndGoalsTaskMembersMapper;
18
use LeadersLinked\Mapper\PlanningObjectivesAndGoalsTaskMembersMapper;
26
use LeadersLinked\Mapper\PlanningObjectivesAndGoalsGoalsMapper;
19
use LeadersLinked\Mapper\PlanningObjectivesAndGoalsGoalsMapper;
27
use LeadersLinked\Mapper\PlanningObjectivesAndGoalsObjectivesMapper;
20
use LeadersLinked\Mapper\PlanningObjectivesAndGoalsObjectivesMapper;
Línea 76... Línea 69...
76
    
69
    
77
 
70
 
-
 
71
        
-
 
72
    public function indexAction()
-
 
73
    {
-
 
74
        $currentUserPlugin = $this->plugin('currentUserPlugin');
-
 
75
        $currentUser = $currentUserPlugin->getUser();
78
        
76
        $currentCompany = $currentUserPlugin->getCompany();
79
    public function indexAction()
77
        
80
    {
78
        
Línea 81... Línea 79...
81
        $objective_uuid = $this->params()->fromRoute('objective_id');
79
        $objective_uuid = $this->params()->fromRoute('objective_id');
Línea 100... Línea 98...
100
                        $isJson = strpos($raw, 'json');
98
                        $isJson = strpos($raw, 'json');
101
                    }
99
                    }
Línea 102... Línea 100...
102
                    
100
                    
103
                }
101
                }
104
            }
-
 
105
                 $currentUserPlugin = $this->plugin('currentUserPlugin');        
-
 
106
                $currentUser = $currentUserPlugin->getUser();
-
 
-
 
102
            }
107
                $currentCompany = $currentUserPlugin->getCompany();
103
 
Línea 108... Línea 104...
108
            if($isJson) {
104
            if($isJson) {
109
                
105
                
110
                $acl = $this->getEvent()->getViewModel()->getVariable('acl');
106
                $acl = $this->getEvent()->getViewModel()->getVariable('acl');