Exemplo n.º 1
0
 /**
  * Sends a download dialog to the browser.
  *
  * @param string $stream Can be a file-path or a string.
  * @param string $name   Name of the stream/file should be shown.
  * @param boolean $exit Optional for testing
  */
 public function sendStream($stream, $name, $exit = true)
 {
     Header::clear();
     Header::sendDownloadDialog($stream, $name, $exit);
 }