当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_Auth_Adapter_DbTable::__construct方法代码示例

本文整理汇总了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');
 }
开发者ID:judasnow,项目名称:qspread20101020,代码行数:11,代码来源:Adapter.php

示例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;
     }
 }
开发者ID:josmel,项目名称:DevelEntretenimientoEntel,代码行数:7,代码来源:Salted.php

示例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);
 }
开发者ID:georgepaul,项目名称:socialstrap,代码行数:12,代码来源:AuthAdapter.php

示例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);
 }
开发者ID:ROLF-IT-Department,项目名称:rolf-personnel,代码行数:31,代码来源:DbTable.php

示例5:

 /**
  * コンストラクタ。
  */
 function __construct($dbOBJ, $tableName = null, $identityColumn = null, $credentialColumn = null, $credentialTreatment = null)
 {
     parent::__construct($dbOBJ, $tableName, $identityColumn, $credentialColumn, $credentialTreatment);
 }
开发者ID:noriotakei,项目名称:suraimu,代码行数:7,代码来源:ComAuthAdapterDbTable.php

示例6: __construct

 public function __construct()
 {
     $reg = new Zend_Registry();
     parent::__construct($reg->dbAdapter);
     $this->setTableName('user')->setIdentityColumn('username')->setCredentialColumn('password')->setCredentialTreatment('MD5(?)');
 }
开发者ID:naegeles,项目名称:Logit,代码行数:6,代码来源:Authdb.php

示例7: __construct

 public function __construct()
 {
     parent::__construct(Zend_Db_Table::getDefaultAdapter(), 'users', 'username', 'password', 'MD5(?)');
 }
开发者ID:hollusion,项目名称:Netons,代码行数:4,代码来源:AuthAdapter.php

示例8: __construct

 public function __construct()
 {
     $db = Zend_Registry::get('db');
     parent::__construct($db);
 }
开发者ID:Doluci,项目名称:tomatocart,代码行数:5,代码来源:Auth.php

示例9: __construct

 public function __construct()
 {
     parent::__construct(Zend_Db_Table::getDefaultAdapter());
 }
开发者ID:olhsha,项目名称:OpenSKOS2tempMeertens,代码行数:4,代码来源:Login.php

示例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');
 }
开发者ID:lchen01,项目名称:STEdwards,代码行数:7,代码来源:UserTable.php

示例11: __construct

 public function __construct()
 {
     $reg = new Zend_Registry();
     parent::__construct($reg->dbAdapter);
     $this->setTableName('user')->setIdentityColumn('username')->setCredentialColumn('facebook_access_token');
 }
开发者ID:naegeles,项目名称:Logit,代码行数:6,代码来源:AuthFb.php

示例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);
 }
开发者ID:rizkioa,项目名称:etak6,代码行数:6,代码来源:Adapter.php

示例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))');
 }
开发者ID:lukaszjankowski,项目名称:alchemy,代码行数:14,代码来源:DbTable.php

示例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);
 }
开发者ID:nazart,项目名称:kmcomputer,代码行数:4,代码来源:AdapterCustom.php


注:本文中的Zend_Auth_Adapter_DbTable::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。