Esempio n. 1
0
 public function __construct(Iface $core = NULL)
 {
     if (!$core) {
         $core = new \Wukka\Store();
     }
     parent::__construct($core);
 }
Esempio n. 2
0
 public function __construct()
 {
     if (!isset(self::$data)) {
         self::$data = new EmbeddedTTL(new KVP());
     }
     parent::__construct(self::$data);
 }
Esempio n. 3
0
 public function __construct($core, $options)
 {
     parent::__construct($core);
     if (!$options instanceof Iface) {
         $options = new \Wukka\Store($options);
     }
     $this->options = $options;
 }
 public function __construct($core, \Gaia\Serialize\Iface $s = NULL)
 {
     if (!$s) {
         $s = new \Gaia\Serialize\PHP();
     }
     $this->s = $s;
     parent::__construct($core);
 }
Esempio n. 5
0
 public function __construct($core, \Closure $serializer = NULL)
 {
     if (!$serializer) {
         $serializer = function ($method, $input) {
             return $method($input);
         };
     }
     $this->_s = $serializer;
     parent::__construct($core);
 }
 public function flush()
 {
     if (isset($this->validators[__FUNCTION__])) {
         $validate = $this->validators[__FUNCTION__];
         if (!$validate()) {
             return FALSE;
         }
     }
     return parent::flush();
 }
Esempio n. 7
0
 public function __construct(Iface $core, Iface $stat)
 {
     parent::__construct($core);
     $this->stat = $stat;
 }
Esempio n. 8
0
File: Tier.php Progetto: wukka/store
 public function __construct(Iface $core, Iface $tier1, $tier1_expires = 60)
 {
     parent::__construct($core);
     $this->tier1 = $tier1;
     $this->tier1_expires = $tier1_expires;
 }
Esempio n. 9
0
 public function __construct($core, $prefix)
 {
     parent::__construct($core);
     $this->prefix = $prefix;
 }