public static function instance() { if (!isset(self::$instance)) { self::$instance = new Gallery3_DAV_Cache(); } return self::$instance; }
function __construct($path) { $this->cache = Gallery3_DAV_Cache::instance(); $this->item = $this->cache->to_item($path); if (access::can("view_full", $this->item)) { $this->stat = stat($this->item->file_path()); $this->path = $this->item->file_path(); } else { $this->stat = stat($this->item->resize_path()); $this->path = $this->item->resize_path(); } }
function __construct($path) { $this->cache = Gallery3_DAV_Cache::instance(); $this->path = $path; $this->item = $this->cache->to_item($path); }
public function __construct(Sabre_DAV_ICollection $root_node) { $this->cache = Gallery3_DAV_Cache::instance(); $this->root_node = $root_node; }