Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 2219 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 2219 Rev 2241
Línea 125... Línea 125...
125
        $record = $this->executeFetchOneObject($select, $prototype);
125
        $record = $this->executeFetchOneObject($select, $prototype);
126
        return $record ? true : false;
126
        return $record ? true : false;
Línea 127... Línea 127...
127
        
127
        
Línea -... Línea 128...
-
 
128
    }
-
 
129
    
-
 
130
    /**
-
 
131
     *
-
 
132
     * @param int $group_id
-
 
133
     * @param int $user_id
-
 
134
     * @return ChatMessage()
-
 
135
     */
-
 
136
    public function fetchLastMessage($chat_id, $to_id)
-
 
137
    {
-
 
138
        
-
 
139
        $prototype = new ChatMessage();
-
 
140
        
-
 
141
        $select = $this->sql->select(self::_TABLE);
-
 
142
        $select->where->equalTo('chat_id', $chat_id);
-
 
143
        $select->where->equalTo('to_id', $to_id);
-
 
144
        $select->where->equalTo('recd', ChatMessage::SEEN_YES);
-
 
145
        $select->order('added_on DESC');
-
 
146
        $select->limit(1);
-
 
147
        
-
 
148
        return $this->executeFetchOneObject($select, $prototype);
Línea 128... Línea 149...
128
    }
149
    }
129
    
150
    
130
    
151
    
131
    /**
152
    /**