コード例 #1
0
ファイル: file.php プロジェクト: newmight2015/psmpsm
 public function __construct(Ai1ec_Registry_Object $registry, $cache_dir)
 {
     parent::__construct($registry);
     $this->cache_dir = $cache_dir;
 }
 /**
  * Deletes the data stored in cache.
  */
 public function delete_data_from_persistence()
 {
     $this->cache_strategy->delete_data($this->key_for_persistance);
 }
コード例 #3
0
 /**
  * delete_matching_entries_from_persistence method
  *
  * Delete matching entries from persistance.
  *
  * @param string $pattern Expected pattern, to be contained within key
  *
  * @return int Count of entries deleted
  */
 public function delete_matching_entries_from_persistence($pattern)
 {
     return $this->cache_strategy->delete_matching($pattern);
 }
コード例 #4
0
ファイル: file.php プロジェクト: sedici/wpmu-istec
 public function __construct(Ai1ec_Registry_Object $registry, array $cache_dir)
 {
     parent::__construct($registry);
     $this->_cache_dir = $cache_dir['path'];
     $this->_cache_url = $cache_dir['url'];
 }
コード例 #5
0
ファイル: db.php プロジェクト: sedici/wpmu-istec
 public function __construct(Ai1ec_Registry_Object $registry, Ai1ec_Option $option)
 {
     parent::__construct($registry);
     $this->model_option = $option;
 }