Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 2071 Rev 3099
Línea 183... Línea 183...
183
        
183
        
184
        return $this->executeUpdate($update); 
184
        return $this->executeUpdate($update); 
Línea -... Línea 185...
-
 
185
    }
-
 
186
 
-
 
187
    
-
 
188
    /**
-
 
189
     * 
-
 
190
     * @param int $group_id
-
 
191
     * @param int $user_id
-
 
192
     * @return boolean
-
 
193
     */
-
 
194
    public function markIsOpen($group_id, $user_id)
-
 
195
    {
-
 
196
        $update = $this->sql->update(self::_TABLE);
-
 
197
        $update->set(['open' => ChatGroupUser::OPEN_YES]);
-
 
198
        $update->where->equalTo('group_id', $group_id)->and->equalTo('user_id', $user_id);
-
 
199
        
-
 
200
        return $this->executeUpdate($update);
-
 
201
    }
-
 
202
    
-
 
203
    
-
 
204
    
-
 
205
    /**
-
 
206
     *
-
 
207
     * @param int $group_id
-
 
208
     * @param int $user_id
-
 
209
     * @return boolean
-
 
210
     */
-
 
211
    public function markIsClose($group_id, $user_id)
-
 
212
    {
-
 
213
        $update = $this->sql->update(self::_TABLE);
-
 
214
        $update->set(['open' => ChatGroupUser::OPEN_NO]);
-
 
215
        $update->where->equalTo('group_id', $group_id)->and->equalTo('user_id', $user_id);
-
 
216
        
Línea 185... Línea 217...
185
    }
217
        return $this->executeUpdate($update);
186
 
218
    }