本文整理汇总了PHP中Zend_Auth_Adapter_DbTable::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Auth_Adapter_DbTable::__construct方法的具体用法?PHP Zend_Auth_Adapter_DbTable::__construct怎么用?PHP Zend_Auth_Adapter_DbTable::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Auth_Adapter_DbTable
的用法示例。
在下文中一共展示了Zend_Auth_Adapter_DbTable::__construct方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* 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');
}
示例2: __construct
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;
}
}
示例3: __construct
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);
}
示例4: __construct
/**
* Конструктор.
*
* @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);
}
示例5:
/**
* コンストラクタ。
*/
function __construct($dbOBJ, $tableName = null, $identityColumn = null, $credentialColumn = null, $credentialTreatment = null)
{
parent::__construct($dbOBJ, $tableName, $identityColumn, $credentialColumn, $credentialTreatment);
}
示例6: __construct
public function __construct()
{
$reg = new Zend_Registry();
parent::__construct($reg->dbAdapter);
$this->setTableName('user')->setIdentityColumn('username')->setCredentialColumn('password')->setCredentialTreatment('MD5(?)');
}
示例7: __construct
public function __construct()
{
parent::__construct(Zend_Db_Table::getDefaultAdapter(), 'users', 'username', 'password', 'MD5(?)');
}
示例8: __construct
public function __construct()
{
$db = Zend_Registry::get('db');
parent::__construct($db);
}
示例9: __construct
public function __construct()
{
parent::__construct(Zend_Db_Table::getDefaultAdapter());
}
示例10: __construct
/**
* @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');
}
示例11: __construct
public function __construct()
{
$reg = new Zend_Registry();
parent::__construct($reg->dbAdapter);
$this->setTableName('user')->setIdentityColumn('username')->setCredentialColumn('facebook_access_token');
}
示例12: __construct
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);
}
示例13: __construct
/**
* __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))');
}
示例14: __construct
public function __construct(Zend_Db_Adapter_Abstract $zendDb = null, $tableName = null, $identityColumn = null, $credentialColumn = null, $credentialTreatment = null)
{
parent::__construct($zendDb, $tableName, $identityColumn, $credentialColumn, $credentialTreatment);
}