Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1102 Rev 1114
Línea 106... Línea 106...
106
                
106
                
107
                $behaviorMapper = BehaviorsMapper::getInstance($this->adapter);
107
                $behaviorMapper = BehaviorsMapper::getInstance($this->adapter);
Línea 108... Línea 108...
108
                $result = $behaviorMapper->insert($behavior);
108
                $result = $behaviorMapper->insert($behavior);
109
                
109
                
Línea 110... Línea 110...
110
                if($result) {
110
                if($result) {
111
                    $this->logger->info('Se agrego la conducta observable ' . $behavior->name, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
111
                    $this->logger->info('Se agrego la conducta observable ' . $behavior->description, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
112
                    
112
                    
113
                    $data = [
113
                    $data = [
Línea 197... Línea 197...
197
                }
197
                }
Línea 198... Línea 198...
198
                
198
                
Línea 199... Línea 199...
199
                $result = $behaviorMapper->update($behavior);
199
                $result = $behaviorMapper->update($behavior);
200
                
200
                
Línea 201... Línea 201...
201
                if($result) {
201
                if($result) {
202
                    $this->logger->info('Se actualizo la conducta observable ' . $behavior->name, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
202
                    $this->logger->info('Se actualizo la conducta observable ' . $behavior->description, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
203
                    
203
                    
204
                    $data = [
204
                    $data = [
Línea 278... Línea 278...
278
        }
278
        }
Línea 279... Línea 279...
279
        
279
        
280
        if($request->isPost()) {
280
        if($request->isPost()) {
281
            $result = $behaviorMapper->delete($behavior);
281
            $result = $behaviorMapper->delete($behavior);
282
            if($result) {
282
            if($result) {
Línea 283... Línea 283...
283
                $this->logger->info('Se borro el tipo de competencia ' . $behavior->name, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
283
                $this->logger->info('Se borro el tipo de competencia ' . $behavior->description, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
284
                
284
                
285
                $data = [
285
                $data = [
286
                    'success' => true,
286
                    'success' => true,