Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 2953 Rev 2956
Línea 308... Línea 308...
308
 
308
 
309
 
309
 
Línea 310... Línea 310...
310
    public function markReadAction()
310
    public function markReadAction()
Línea 311... Línea 311...
311
    {
311
    {
Línea 312... Línea 312...
312
 
312
 
313
        // $request = $this->getRequest();
313
        $request = $this->getRequest();
Línea 314... Línea 314...
314
 
314
 
Línea 315... Línea 315...
315
        // if ($request->isPost()) {
315
        if ($request->isPost()) {
Línea 316... Línea 316...
316
 
316
 
Línea 317... Línea 317...
317
        //     $currentUserPlugin = $this->plugin('currentUserPlugin');
317
            $currentUserPlugin = $this->plugin('currentUserPlugin');
318
        //     $currentUser = $currentUserPlugin->getUser();
318
            $currentUser = $currentUserPlugin->getUser();
319
 
319
 
320
        //     $userMapper = UserMapper::getInstance($this->adapter);
320
            $userMapper = UserMapper::getInstance($this->adapter);
321
 
321
 
322
        //     $notificationMapper = NotificationMapper::getInstance($this->adapter);
322
            $notificationMapper = NotificationMapper::getInstance($this->adapter);
323
 
323
 
324
        //     $result = $notificationMapper->markAllNotificationsAsReadByUserId($currentUser->id);
324
            $result = $notificationMapper->markAllNotificationsAsReadByUserId($currentUser->id);
325
 
325
 
326
        //     if ($result) {
326
            if ($result) {
327
        //         $this->logger->info('Se marco como leidas las notificaciones de usuario: ' . $currentUser->id, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
327
                $this->logger->info('Se marco como leidas las notificaciones de usuario: ' . $currentUser->id, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
328
        //         $response = [
328
                $response = [
Línea 329... Línea 329...
329
        //             'success' => true,
329
                    'success' => true,
330
        //             'data' => 'LABEL_RECORD_UPDATED'
330
                    'data' => 'LABEL_RECORD_UPDATED'
331
        //         ];
331
                ];
332
        //     } else {
332
            } else {
333
        //         $response = [
333
                $response = [
Línea 334... Línea 334...
334
        //             'success' => false,
334
                    'success' => false,
Línea 335... Línea 335...
335
        //             'data' => $notificationMapper->getError()
335
                    'data' => $notificationMapper->getError()
336
        //         ];
336
                ];
Línea 337... Línea 337...
337
        //     }
337
            }