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