Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 14303 Rev 14304
Línea 315... Línea 315...
315
        $currentUser = $currentUserPlugin->getUser();
315
        $currentUser = $currentUserPlugin->getUser();
Línea 316... Línea 316...
316
 
316
 
317
        $request = $this->getRequest();
317
        $request = $this->getRequest();
318
        $id = $this->params()->fromRoute('id');
318
        $id = $this->params()->fromRoute('id');
319
        $compId = $this->params()->fromRoute('idComp');
319
        $compId = $this->params()->fromRoute('idComp');
320
        print_r($request);
320
        // print_r($request);
321
        if (!$id || !$compId) {
321
        if (!$id || !$compId) {
322
            $data = [
322
            $data = [
323
                'success' => false,
323
                'success' => false,
324
                'data' => 'ERROR_INVALID_PARAMETER'
324
                'data' => 'ERROR_INVALID_PARAMETER'
Línea 325... Línea 325...
325
            ];
325
            ];
326
 
326
 
Línea 327... Línea 327...
327
            return new JsonModel($data);
327
            return new JsonModel($data);
328
        }
328
        }
329
 
329
 
330
        // $competencyMapper = CompetencyMapper::getInstance($this->adapter);
330
        $competencyMapper = CompetencyMapper::getInstance($this->adapter);
331
        // $competency = $competencyMapper->fetchOneByUuid($compId);
331
        $competency = $competencyMapper->fetchOneByUuid($compId);
332
        // if (!$competency) {
332
        if (!$competency) {
333
        //     $data = [
333
            $data = [
Línea 334... Línea 334...
334
        //         'success' => false,
334
                'success' => false,
335
        //         'data' => 'ERROR_RECORD_NOT_FOUND'
335
                'data' => 'ERROR_RECORD_NOT_FOUND'
Línea 336... Línea 336...
336
        //     ];
336
            ];
337
 
337
 
338
        //     return new JsonModel($data);
338
            return new JsonModel($data);
339
        // }
339
        }