Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 776 Rev 786
Línea 634... Línea 634...
634
 
634
 
Línea 635... Línea 635...
635
                //echo $select->getSqlString($this->adapter->platform);
635
                //echo $select->getSqlString($this->adapter->platform);
636
 
-
 
-
 
636
 
Línea 637... Línea 637...
637
 
637
 
638
                $storage = Storage::getInstance($this->config, $this->adapter);
638
                $storage = Storage::getInstance($this->config, $this->adapter);
Línea 639... Línea 639...
639
 
639
                $target_path = $storage->getPathUser();
Línea 663... Línea 663...
663
                    }
663
                    }
Línea 664... Línea 664...
664
 
664
 
665
                    array_push($items, [
665
                    array_push($items, [
666
                        'id'        => $record['uuid'],
666
                        'id'        => $record['uuid'],
667
                        'name'      => trim($record['first_name'] . ' ' . $record['last_name']),
667
                        'name'      => trim($record['first_name'] . ' ' . $record['last_name']),
668
                        'image'     =>  $storage->getGroupImageForCodeAndFilename($record['uuid'], $record['image']),
668
                        'image'     =>  $storage->getGenericFile($target_path, $record['uuid'], $record['image']),
669
                        'profile'   => $this->url()->fromRoute('profile/view', ['id' => $record['uuid']]),
669
                        'profile'   => $this->url()->fromRoute('profile/view', ['id' => $record['uuid']]),
Línea 670... Línea 670...
670
                        'actions'   => $actions,
670
                        'actions'   => $actions,
671
 
671
 
Línea 746... Línea 746...
746
                    'success' => true,
746
                    'success' => true,
747
                    'data' => []
747
                    'data' => []
748
                ]);
748
                ]);
749
            }
749
            }
750
        } else if ($request->isPost()) {
750
        } else if ($request->isPost()) {
751
            $uuid = $this->params()->fromPost('id');
751
            $user_uuid = $request->getPost('user_uuid');
-
 
752
            
752
            if (!$uuid) {
753
            if (!$user_uuid) {
753
                return new JsonModel([
754
                return new JsonModel([
754
                    'success'   => false,
755
                    'success'   => false,
755
                    'data'      => 'ERROR_INVALID_PARAMETER'
756
                    'data'      => 'ERROR_INVALID_PARAMETER'
756
                ]);
757
                ]);
757
            }
758
            }