| 13 |
function __construct(array $options = array()) { |
function __construct(array $options = array()) { |
| 14 |
$this->name = !empty($options['name']) ? $options['name'] : NULL; |
$this->name = !empty($options['name']) ? $options['name'] : NULL; |
| 15 |
$this->path = !empty($options['location']) ? $options['location'] : $options['path']; |
$this->path = !empty($options['location']) ? $options['location'] : $options['path']; |
| 16 |
|
$this->path = bitcache_token_replace($this->path); |
| 17 |
$this->uri = preg_match('!^[\w]+://!', $this->path) ? $this->path : 'file://' . realpath($this->path); |
$this->uri = preg_match('!^[\w]+://!', $this->path) ? $this->path : 'file://' . realpath($this->path); |
| 18 |
$this->options = array( |
$this->options = array( |
| 19 |
'depth' => defined('BITCACHE_DEPTH') ? BITCACHE_DEPTH : 0, |
'depth' => defined('BITCACHE_DEPTH') ? BITCACHE_DEPTH : 0, |