Exemple #1
0
 /**
  * register resource handler
  *
  * @param string name
  * @param callback get
  * @param callback getExpiredTime
  * @param callback hasCache
  * @param callback putCache
  * @param callback getCachs
  * @param callback gcCachs
  */
 public function registerResourceHandler($type, $get, $expired, $hasCache, $putCache, $getCache, $gcCache)
 {
     return $this->plugin['resource'][$type] = XTemplaterResource::factory($get, $expired, $hasCache, $putCache, $getCache, $gcCache);
 }