/[drupal]/contributions/modules/bitcache/adapters/file.inc
ViewVC logotype

Diff of /contributions/modules/bitcache/adapters/file.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.4, Tue May 19 15:27:22 2009 UTC revision 1.5, Wed Jul 1 04:09:48 2009 UTC
# Line 13  class Bitcache_FileRepository extends Bi Line 13  class Bitcache_FileRepository extends Bi
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,

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.2