Beispiel #1
0
 /**
  * Reads an file from the given url and stores it on disk.
  */
 public function saveFromUrl($url)
 {
     $response = Media_Uploader::saveFromUrl($url, 'file');
     if (!$response) {
         $this->_error = Media_Uploader::getError();
     } else {
         $this->_id = $response;
     }
     return $this;
 }