public function __construct($file, $content_type, $download_name = null)
 {
     # If the download_name is null, the download name becomes the file
     # name without any directory names before it
     $this->download_name = $download_name == null ? basename($file) : $download_name;
     parent::__construct($file, $content_type);
 }
Exemple #2
0
 public function __construct($file, $mime, $code)
 {
     parent::__construct($file, $mime, $code);
 }
Exemple #3
0
 public function __construct($file, HTTPCode $code)
 {
     parent::__construct($file);
     $this->code = $code;
 }