public function __construct($db = NULL, $table = NULL, $fluid = NULL, $ttl = 0)
 {
     parent::__construct($db, $table, $fluid, $ttl);
     // events -----------------------------------------
     $this->beforeerase(function ($self) {
         $self->clearCacheData();
     });
 }
Beispiel #2
0
 public function __construct($con)
 {
     // change uniqueness constraint in HQ mode
     if (FannieConfig::config('STORE_MODE') == 'HQ') {
         $this->unique[] = 'store_id';
     }
     parent::__construct($con);
 }