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); } }
public function method_HEAD() { $retval = parent::method_HEAD(); $retval['Cache-Control'] = 'no-cache'; return $retval; }