Example #1
0
 public function get($file)
 {
     return parent::storeRemote($this->getHttpLink($file));
 }
Example #2
0
 public function get($url)
 {
     $this->checkUrl($url);
     return parent::storeRemote($url);
 }
Example #3
0
 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) {
         }
     }
 }