Example #1
0
 public function __construct(Iface $core = NULL)
 {
     if (!$core) {
         $core = new \Wukka\Store();
     }
     parent::__construct($core);
 }
Example #2
0
 public function __construct()
 {
     if (!isset(self::$data)) {
         self::$data = new EmbeddedTTL(new KVP());
     }
     parent::__construct(self::$data);
 }
Example #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);
 }
Example #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();
 }
Example #7
0
 public function __construct(Iface $core, Iface $stat)
 {
     parent::__construct($core);
     $this->stat = $stat;
 }
Example #8
0
File: Tier.php Project: wukka/store
 public function __construct(Iface $core, Iface $tier1, $tier1_expires = 60)
 {
     parent::__construct($core);
     $this->tier1 = $tier1;
     $this->tier1_expires = $tier1_expires;
 }
 public function __construct($core, $prefix)
 {
     parent::__construct($core);
     $this->prefix = $prefix;
 }