本文整理汇总了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);
}
}
示例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);
}
示例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
}
示例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);
}
示例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();
}
示例6: __construct
public function __construct()
{
parent::__construct(Vi_Constant::SESSION_NAMESPACE . "_" . Vi_Registry::getAppName(), 'user');
}
示例7: __construct
/**
*
* @param string $member
*/
public function __construct($member = parent::MEMBER_DEFAULT)
{
parent::__construct(parent::NAMESPACE_DEFAULT, $member);
}
示例8: __construct
public function __construct($namespace = self::NAMESPACE_DEFAULT, $member = self::MEMBER_DEFAULT)
{
parent::__construct($namespace, $member);
}
示例9: __construct
/**
* コンストラクタ。
*/
public function __construct($namespace = self::NAMESPACE_DEFAULT, $member = self::MEMBER_DEFAULT)
{
parent::__construct();
// 認証の有効期限を設定する
$this->_session->setExpirationSeconds(60 * 60 * 5);
}