當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Auth_Storage_Session::__construct方法代碼示例

本文整理匯總了PHP中Zend_Auth_Storage_Session::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Auth_Storage_Session::__construct方法的具體用法?PHP Zend_Auth_Storage_Session::__construct怎麽用?PHP Zend_Auth_Storage_Session::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Zend_Auth_Storage_Session的用法示例。


在下文中一共展示了Zend_Auth_Storage_Session::__construct方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * Constructor
  *
  * Set the doctrine entity manager, the name of the entity class, and
  * optionally the name of the entity key property.
  *
  * @param EntityManager $em
  * @param string        $entityClass
  * @param null|string   $keyProperty
  */
 public function __construct(EntityManager $em, $entityClass, $keyProperty = null)
 {
     parent::__construct();
     $this->setEntityManager($em)->setEntityClass($entityClass);
     if (null !== $keyProperty) {
         $this->setKeyProperty($keyProperty);
     }
 }
開發者ID:epixa,項目名稱:Epixa,代碼行數:18,代碼來源:Doctrine.php

示例2: __construct

 /**
  * This allow with a config file, to change the cookie_domain of the session.
  * Set "session.domain" directive in application.ini to change this.
  *
  * @param string $namespace
  * @param string $member
  */
 public function __construct($namespace = self::NAMESPACE_DEFAULT, $member = self::MEMBER_DEFAULT)
 {
     $cookieDomain = Centurion_Config_Manager::get('session.domain', $_SERVER['SERVER_NAME']);
     if ($cookieDomain !== null) {
         Zend_Session::setOptions(array('cookie_domain' => $cookieDomain));
     }
     parent::__construct($namespace, $member);
 }
開發者ID:netconstructor,項目名稱:Centurion,代碼行數:15,代碼來源:Session.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_timeStamp = time();
     $this->_pKey = Prometheus_Session_Key::factory();
     $this->_remoteIp = $this->_encodeIp(!empty($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : (!empty($_ENV['REMOTE_ADDR']) ? $_ENV['REMOTE_ADDR'] : $_SERVER['HTTP_X_FORWARDED_FOR']));
     $this->_userAgent = $_SERVER['HTTP_USER_AGENT'];
     // This is useful not only for spoofing but also for statistics
 }
開發者ID:roycocup,項目名稱:Tests,代碼行數:9,代碼來源:Storage.php

示例4: __construct

 public function __construct($namespace = self::NAMESPACE_DEFAULT, $member = self::MEMBER_DEFAULT)
 {
     session_name($this->_generateSessionName());
     if (!self::$_id) {
         self::$_id = Glo_Util_Uuid::generate();
     }
     Zend_Session::setId(self::$_id);
     parent::__construct($namespace, $member);
 }
開發者ID:highhair20,項目名稱:glo,代碼行數:9,代碼來源:Session.php

示例5: __construct

 public function __construct(Zend_Controller_Request_Abstract $request)
 {
     if (self::$_instance instanceof Showcase_Auth_Storage_Db) {
         throw new Exception('Db was already instantiated');
     }
     $this->_request = $request;
     $this->_remoteIp = Showcase_Session::getRemoteIp($this->_request);
     $this->_timeStamp = time();
     $this->_pSalt = Showcase_Session_Salt::factory();
     parent::__construct();
 }
開發者ID:roycocup,項目名稱:Tests,代碼行數:11,代碼來源:Db.php

示例6: __construct

 public function __construct()
 {
     parent::__construct(Vi_Constant::SESSION_NAMESPACE . "_" . Vi_Registry::getAppName(), 'user');
 }
開發者ID:judasnow,項目名稱:qspread20101020,代碼行數:4,代碼來源:Storage.php

示例7: __construct

 /**
  * 
  * @param string $member
  */
 public function __construct($member = parent::MEMBER_DEFAULT)
 {
     parent::__construct(parent::NAMESPACE_DEFAULT, $member);
 }
開發者ID:starflash,項目名稱:ZtChart-ZF1-Example,代碼行數:8,代碼來源:Session.php

示例8: __construct

 public function __construct($namespace = self::NAMESPACE_DEFAULT, $member = self::MEMBER_DEFAULT)
 {
     parent::__construct($namespace, $member);
 }
開發者ID:KasaiDot,項目名稱:FansubCMS,代碼行數:4,代碼來源:DoctrineSession.php

示例9: __construct

 /**
  * コンストラクタ。
  */
 public function __construct($namespace = self::NAMESPACE_DEFAULT, $member = self::MEMBER_DEFAULT)
 {
     parent::__construct();
     // 認証の有効期限を設定する
     $this->_session->setExpirationSeconds(60 * 60 * 5);
 }
開發者ID:noriotakei,項目名稱:suraimu,代碼行數:9,代碼來源:ComAuthMyStorage.php


注:本文中的Zend_Auth_Storage_Session::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。