Beispiel #1
0
 public function __construct(PDO $db, $nbEnt_u, $nbEnt_s)
 {
     $nbEnt_u = (int) $nbEnt_u;
     $nbEnt_s = (int) $nbEnt_s;
     parent::__construct($db);
     $this->nbEnt_u = (int) $nbEnt_u;
     $this->nbEnt_s = (int) $nbEnt_s;
 }
 function __construct(\Mongo $mongo, $database)
 {
     parent::__construct($mongo, $database);
     $this->_collection = $this->getCollection();
     session_set_save_handler(array(&$this, 'open'), array(&$this, 'close'), array(&$this, 'read'), array(&$this, 'write'), array(&$this, 'destroy'), array(&$this, 'gc'));
     # set session garbage collection period
     ini_set('session.gc_maxlifetime', self::SESSION_LIFESPAN);
     # session cookie config
     session_set_cookie_params(self::SESSION_LIFESPAN, self::SESSION_COOKIE_PATH, self::SESSION_COOKIE_DOMAIN);
     # replace 'phpsessid' with 'mongosessid' as the session name
     session_name(self::SESSION_NAME);
     session_cache_limiter('nocache');
     # start session
     session_start();
 }
 /**
  * OrganizationManager constructor.
  * @param array $keys
  */
 public function __construct(array $keys)
 {
     parent::__construct($keys);
 }
Beispiel #4
0
 public function __construct(PDO $db, $nbEnt)
 {
     $nbEnt = (int) $nbEnt;
     parent::__construct($db);
     $this->nbEnt = $nbEnt;
 }