Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5751 Rev 5935
Línea 683... Línea 683...
683
        
683
        
684
        return $this->executeUpdate($update);
684
        return $this->executeUpdate($update);
Línea -... Línea 685...
-
 
685
    }
-
 
686
    
-
 
687
    
-
 
688
    
-
 
689
    /**
-
 
690
     *
-
 
691
     * @param User $user
-
 
692
     * @param int $usertype_id
-
 
693
     * @return boolean
-
 
694
     */
-
 
695
    public function updateUserTypeId($user, $usertype_id)
-
 
696
    {
-
 
697
        $values = [
-
 
698
            'usertype_id'   => $usertype_id,
-
 
699
            'updated_on'    => new Expression('NOW()')
-
 
700
        ];
-
 
701
        
-
 
702
        $update = $this->sql->update(self::_TABLE);
-
 
703
        $update->set($values);
-
 
704
        $update->where->equalTo('id', $user->id);
-
 
705
        
-
 
706
        return $this->executeUpdate($update);
685
    }
707
    }
686
    
708
    
687
    
709
    
688
    /**
710
    /**
689
     *
711
     *