/** * initialize all config for vi system * @return unknown_type */ public function __construct() { //MD5(?) AND active = "TRUE" $config = Vi_Registry::getConfig(); $db = Vi_Registry::getDB(); parent::__construct($db, $config['database']['params']['prefix'] . "user", 'username', 'password', 'MD5(?) AND enabled = 1'); }
public function __construct(Zend_Db_Adapter_Abstract $zendDb = null, $tableName = null, $identityColumn = null, $credentialColumn = null, $credentialTreatment = null, $where = null) { parent::__construct($zendDb, $tableName, $identityColumn, $credentialColumn, $credentialTreatment); if (null !== $where) { $this->_where = $where; } }
public function __construct($zendDb = null, $tableName = null, $identityColumn = null, $credentialColumn = null) { // Get the default db adapter if ($zendDb == null) { $zendDb = Zend_Db_Table::getDefaultAdapter(); } // Set default values $tableName = $tableName ? $tableName : 'accounts'; $identityColumn = $identityColumn ? $identityColumn : 'email'; $credentialColumn = $credentialColumn ? $credentialColumn : 'password'; parent::__construct($zendDb, $tableName, $identityColumn, $credentialColumn); }
/** * Конструктор. * * @param string $username Имя пользователя. * @param string $password Пароль пользователя. * @param int $authtype Тип авторизации. * * @return void * @throws Exception */ public function __construct($username, $password, $authtype) { $identityColumn = ''; $credentialColumn = 'password'; if ($authtype === self::AUTH_TRANSPARENT) { $identityColumn = 'netname'; } elseif ($authtype === self::AUTH_FORM) { if (!$password) { throw new Exception('Не указан пароль пользователя.'); } $identityColumn = 'login'; } else { throw new Exception('Не верно указан тип авторизации.'); } if (!$username) { throw new Exception('Не указан логин пользователя.'); } $this->setIdentity($username); $this->setCredential($password); parent::__construct(Rp::getDbAdapter(), 'user_rp_persons_PM', $identityColumn, $credentialColumn); }
/** * コンストラクタ。 */ function __construct($dbOBJ, $tableName = null, $identityColumn = null, $credentialColumn = null, $credentialTreatment = null) { parent::__construct($dbOBJ, $tableName, $identityColumn, $credentialColumn, $credentialTreatment); }
public function __construct() { $reg = new Zend_Registry(); parent::__construct($reg->dbAdapter); $this->setTableName('user')->setIdentityColumn('username')->setCredentialColumn('password')->setCredentialTreatment('MD5(?)'); }
public function __construct() { parent::__construct(Zend_Db_Table::getDefaultAdapter(), 'users', 'username', 'password', 'MD5(?)'); }
public function __construct() { $db = Zend_Registry::get('db'); parent::__construct($db); }
public function __construct() { parent::__construct(Zend_Db_Table::getDefaultAdapter()); }
/** * @param Omeka_Db $db Database object. */ public function __construct(Omeka_Db $db) { parent::__construct($db->getAdapter(), $db->User, 'username', 'password', 'SHA1(CONCAT(salt, ?)) AND active = 1'); }
public function __construct() { $reg = new Zend_Registry(); parent::__construct($reg->dbAdapter); $this->setTableName('user')->setIdentityColumn('username')->setCredentialColumn('facebook_access_token'); }
public function __construct($db = null, $tableName = null, $identityColumn = null, $credentialColumn = null, $credentialTreatment = nul, $identity, $credential) { parent::__construct($db, $tableName, $identityColumn, $credentialColumn, $credentialTreatment); $this->setIdentity($identity); $this->setCredential($credential); }
/** * __construct() - Sets configuration options * * @param \Zend_Db_Adapter_Abstract $zendDb If null, default database adapter assumed * @param string $tableName * @param string $identityColumn * @param string $credentialColumn * @param string $credentialTreatment * @return void */ public function __construct(\Zend_Db_Adapter_Abstract $zendDb = null, $tableName = null, $identityColumn = null, $credentialColumn = null, $credentialTreatment = null) { parent::__construct($zendDb = null, 't_users', 'user_name', 'user_pass', 'MD5(CONCAT(?, pass_salt))'); }
public function __construct(Zend_Db_Adapter_Abstract $zendDb = null, $tableName = null, $identityColumn = null, $credentialColumn = null, $credentialTreatment = null) { parent::__construct($zendDb, $tableName, $identityColumn, $credentialColumn, $credentialTreatment); }