示例#1
0
 /**
  * @param string  $namespace
  * @param bool    $singleInstance
  */
 public function __construct($namespace = 'Default', $singleInstance = false)
 {
     if (Piwik_Common::isPhpCliMode()) {
         self::$_readable = true;
         return;
     }
     parent::__construct($namespace, $singleInstance);
 }
示例#2
0
 /**
  * __construct() - Returns an instance object bound to a particular, isolated section
  * of the session, identified by $namespace name (defaulting to 'Default').
  * The optional argument $singleInstance will prevent construction of additional
  * instance objects acting as accessors to this $namespace.
  *
  * @param string $namespace       - programmatic name of the requested namespace
  * @param bool $singleInstance    - prevent creation of additional accessor instance objects for this namespace
  * @return void
  */
 public function __construct($namespace = 'Default', $singleInstance = false)
 {
     $persistObject = NULL;
     if (func_num_args() > 2) {
         $persistObject = func_get_arg(2);
     }
     if (NULL !== $persistObject) {
         $this->_persistObject = true;
     }
     parent::__construct($namespace, $singleInstance);
 }
 /**
  * コンストラクタメソッド
  *
  * セッションデータの初期化
  *
  * @static
  * @access public
  * @param  $name  設定したいセッション名 デフォルトは「SessionID」
  * @return void
  * @see    session_name()
  * @see    session_start()
  */
 public function __construct($namespace = 'Default', $singleInstance = false)
 {
     parent::__construct($namespace, $singleInstance);
 }
示例#4
0
 public function __construct()
 {
     parent::__construct('fpc2');
 }
 public function __construct($namespace = 'Default', $singleInstance = false)
 {
     parent::__construct($namespace, $singleInstance);
     Kwf_Session::afterStart();
 }