Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5610 Rev 5611
Línea 184... Línea 184...
184
                            'last_message' => $timeElapsedString,
184
                            'last_message' => $timeElapsedString,
185
                            'count_unread' => $unread,
185
                            'count_unread' => $unread,
186
                            'messages_link' => $this->url()->fromRoute('inmail/message', ['id' => $user->uuid]),
186
                            'messages_link' => $this->url()->fromRoute('inmail/message', ['id' => $user->uuid]),
187
                            'send_link' => $this->url()->fromRoute('inmail/message/send', ['id' => $user->uuid]),
187
                            'send_link' => $this->url()->fromRoute('inmail/message/send', ['id' => $user->uuid]),
188
                            'selected' => 1,
188
                            'selected' => 1,
189
                            'feed_delete_url' => $this->url()->fromRoute('inmail/delete',  ['id' => $user->uuid]),
189
                            'delete_link' => $this->url()->fromRoute('inmail/delete',  ['id' => $user->uuid]),
190
                        ]);
190
                        ]);
191
                    } else {
191
                    } else {
192
                        $user = $userMapper->fetchOneByUuid($id);
192
                        $user = $userMapper->fetchOneByUuid($id);
193
                        if ($user) {
193
                        if ($user) {
Línea 215... Línea 215...
215
                                'last_message' => $timeElapsedString,
215
                                'last_message' => $timeElapsedString,
216
                                'count_unread' => $unread,
216
                                'count_unread' => $unread,
217
                                'messages_link' => $this->url()->fromRoute('inmail/message', ['id' => $user->uuid]),
217
                                'messages_link' => $this->url()->fromRoute('inmail/message', ['id' => $user->uuid]),
218
                                'send_link' => $this->url()->fromRoute('inmail/message/send', ['id' => $user->uuid]),
218
                                'send_link' => $this->url()->fromRoute('inmail/message/send', ['id' => $user->uuid]),
219
                                'selected' => 1,
219
                                'selected' => 1,
220
                                'feed_delete_url' => $this->url()->fromRoute('inmail/delete',  ['id' => $user->uuid]),
220
                                'delete_link' => $this->url()->fromRoute('inmail/delete',  ['id' => $user->uuid]),
221
                            ]);
221
                            ]);
222
                        }
222
                        }
223
                    }
223
                    }
224
                }
224
                }
Línea 259... Línea 259...
259
                        'last_message' => $timeElapsedString,
259
                        'last_message' => $timeElapsedString,
260
                        'count_unread' => $unread,
260
                        'count_unread' => $unread,
261
                        'messages_link' => $this->url()->fromRoute('inmail/message', ['id' => $user->uuid]),
261
                        'messages_link' => $this->url()->fromRoute('inmail/message', ['id' => $user->uuid]),
262
                        'send_link' => $this->url()->fromRoute('inmail/message/send', ['id' => $user->uuid]),
262
                        'send_link' => $this->url()->fromRoute('inmail/message/send', ['id' => $user->uuid]),
263
                        'selected' => 0,
263
                        'selected' => 0,
264
                        'feed_delete_url' => $this->url()->fromRoute('inmail/delete',  ['id' => $user->uuid]),
264
                        'delete_link' => $this->url()->fromRoute('inmail/delete',  ['id' => $user->uuid]),
265
                    ]);
265
                    ]);
266
                }
266
                }
Línea 267... Línea 267...
267
 
267
 
Línea 871... Línea 871...
871
 
871
 
Línea 872... Línea 872...
872
            if ($conversation) {
872
            if ($conversation) {
Línea 873... Línea 873...
873
 
873
 
874
                if ($conversation->sender_id && $conversation->sender_id == $currentUser->id) {
874
                if ($conversation->sender_id && $conversation->sender_id == $currentUser->id) {
875
 
875
 
876
                    return new JsonModel($this->deleteFeed($conversation));
876
                    return new JsonModel($this->deleteConversation($conversation));
877
                } else if ($conversation->receiver_id && $conversation->receiver_id == $currentUser->id) {
877
                } else if ($conversation->receiver_id && $conversation->receiver_id == $currentUser->id) {
Línea 878... Línea 878...
878
                    return new JsonModel($this->deleteFeed($conversation));
878
                    return new JsonModel($this->deleteConversation($conversation));
879
                }
879
                }
Línea 915... Línea 915...
915
 
915
 
916
        return new JsonModel($response);
916
        return new JsonModel($response);
Línea 917... Línea 917...
917
    }
917
    }
918
 
918
 
919
 
919
 
920
    private function deleteFeed($conversation)
920
    private function deleteConversation($conversation)
921
    {
921
    {
922
        $ConversationMapper = ConversationMapper::getInstance($this->adapter);
922
        $ConversationMapper = ConversationMapper::getInstance($this->adapter);