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