public function get($file) { return parent::storeRemote($this->getHttpLink($file)); }
public function get($url) { $this->checkUrl($url); return parent::storeRemote($url); }
public function __destruct() { if ($this->isRemoved()) { try { $engine = $this->engineTypeId; $config = $this->engineConfig; if ($this->baseStorageEngineId) { // Меняли, но не сохранили $engine = $this->baseStorageEngineId; $config = $this->baseStorageEngineConfig; } $storage = StorageEngine::create(StorageEngineType::create($engine), $config); $storage->remove($this->getFileName()); } catch (Exception $e) { } } }