Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 7369 | Rev 7373 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 7369 Rev 7372
Línea 568... Línea 568...
568
    {
568
    {
569
        $currentUserPlugin = $this->plugin('currentUserPlugin');
569
        $currentUserPlugin = $this->plugin('currentUserPlugin');
570
        $currentUser = $currentUserPlugin->getUser();
570
        $currentUser = $currentUserPlugin->getUser();
571
        $currentCompany = $currentUserPlugin->getCompany();
571
        $currentCompany = $currentUserPlugin->getCompany();
Línea 572... Línea -...
572
       
-
 
573
        $id =  $this->params()->fromRoute('id');
-
 
-
 
572
       
-
 
573
       
Línea 574... Línea -...
574
        $type   = $this->params()->fromRoute('type');
-
 
575
 
-
 
576
        $response = [
-
 
577
            'success' => false,
-
 
578
            'data' => $type
-
 
579
        ];
-
 
580
        
-
 
581
        
574
 
582
        return new JsonModel($response);
575
 
Línea 583... Línea 576...
583
        $request = $this->getRequest();
576
        $request = $this->getRequest();
584
        if($request->isGet()) {
-
 
-
 
577
        if($request->isGet()) {
585
            
578
            
586
            $page = (int) $this->params()->fromQuery('page');
-
 
-
 
579
            $page = (int) $this->params()->fromQuery('page');
-
 
580
            $type   = $this->params()->fromRoute('type');
587
                
581
            if(isset($type)){
588
            if($type=='group'){
582
                $id =  $this->params()->fromRoute('id');
589
                
583
                $type   = $this->params()->fromRoute('type');
590
            }else{
584
            }else{
591
                $queryMapper = QueryMapper::getInstance($this->adapter);
585
                $queryMapper = QueryMapper::getInstance($this->adapter);