Example #1
0
 /**
  * @return TCVM_User_Model_User
  */
 public static function GetInstance()
 {
     if (!self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Example #2
0
 private function _changePassword($id, $password)
 {
     $this->_model->update(array("password" => md5($password)), array("id" => $id));
 }