Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5637 Rev 5638
Línea 870... Línea 870...
870
            $conversation = $conversationMapper->fetchAllByUserId($currentUser->id);
870
            $conversation = $conversationMapper->fetchAllByUserId($currentUser->id);
Línea 871... Línea 871...
871
 
871
 
Línea -... Línea 872...
-
 
872
 
-
 
873
            if ($conversation) {
872
 
874
 
Línea 873... Línea 875...
873
            if ($conversation) {
875
                echo $conversation[0]->sender_id . '==' . $currentUser->id;
874
 
876
 
875
                if ($conversation[0]->sender_id && $conversation[0]->sender_id == $currentUser->id) {
877
                if ($conversation[0]->sender_id && $conversation[0]->sender_id == $currentUser->id) {
Línea 918... Línea 920...
918
    }
920
    }
Línea 919... Línea 921...
919
 
921
 
920
 
922
 
921
    private function deleteConversation($conversation)
923
    private function deleteConversation($conversation)
922
    {
924
    {
923
        $ConversationMapper = ConversationMapper::getInstance($this->adapter);
925
        $conversationMapper = ConversationMapper::getInstance($this->adapter);
924
        //$conversation[0]->sender_status = Conversation::STATUS_DELETED;
926
        $conversation[0]->sender_status = Conversation::STATUS_DELETED;
925
        echo '<pre>';
927
        echo '<pre>';
Línea 926... Línea 928...
926
        print_r($conversation[0]->sender_status);
928
        print_r($conversation[0]->sender_status);
927
        echo '</pre>';
929
        echo '</pre>';
928
 
930
 
929
        if ($ConversationMapper->update($conversation)) {
931
        if ($conversationMapper->update($conversation)) {
930
            $response = [
932
            $response = [
931
                'success' => true,
933
                'success' => true,
Línea 932... Línea 934...
932
                'data' => 'LABEL_FEED_WAS_DELETED'
934
                'data' => 'LABEL_FEED_WAS_DELETED'
933
            ];
935
            ];
934
        } else {
936
        } else {
935
 
937
 
936
 
938
 
Línea 937... Línea 939...
937
            $response = [
939
            $response = [