Exemplo n.º 1
0
 public function __construct($path)
 {
     if (is_array($path)) {
         $document = $path;
         $path = '/' . $document['path'] . (isset($document['collection']) && $document['collection'] ? '/' : '');
     } else {
         $document = null;
     }
     parent::__construct($path);
     $this->localPath = BeeHub::localPath($path);
     if (file_exists($this->localPath)) {
         $this->stat = stat($this->localPath);
     }
     if (is_array($document)) {
         $this->init_props($document);
     }
 }
Exemplo n.º 2
0
 public function __construct($path)
 {
     parent::__construct($path);
     $this->name = basename($path);
     $this->init_props();
 }
 public function __construct($path)
 {
     parent::__construct(DAV::slashify($path));
 }