Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 2381 Rev 3086
Línea 864... Línea 864...
864
        $update->where->equalTo('id', $id);
864
        $update->where->equalTo('id', $id);
Línea 865... Línea 865...
865
        
865
        
866
        return $this->executeUpdate($update);
866
        return $this->executeUpdate($update);
Línea 867... Línea -...
867
    }
-
 
868
   
-
 
869
    /**
-
 
870
     *
-
 
871
     * @param int $id
-
 
872
     * @return boolean
-
 
873
     */
-
 
874
    public function updateChatOfflineStatus($id)
-
 
875
    {
-
 
876
        $update = $this->sql->update(self::_TABLE);
-
 
877
        $update->set([
-
 
878
            'online' => 0,
-
 
879
        ]);
867
    }
880
        $update->where->equalTo('id', $id);
-
 
881
        
-
 
Línea 882... Línea 868...
882
        return $this->executeUpdate($update);
868
   
883
    }
869
 
884
    
870
    
885
    /**
871
    /**
Línea 890... Línea 876...
890
    public function updateLastActivity($id)
876
    public function updateLastActivity($id)
891
    {
877
    {
892
        $update = $this->sql->update(self::_TABLE);
878
        $update = $this->sql->update(self::_TABLE);
893
        $update->set([
879
        $update->set([
894
            'last_activity_on' => new Expression('NOW()'),
880
            'last_activity_on' => new Expression('NOW()'),
-
 
881
            'online' => 1,
895
        ]);
882
        ]);
896
        $update->where->equalTo('id', $id);
883
        $update->where->equalTo('id', $id);
Línea 897... Línea 884...
897
        
884
        
898
        return $this->executeUpdate($update);
885
        return $this->executeUpdate($update);