Back to XmlDocument class

Method setDownload

public \Joomla\CMS\Document\XmlDocument
setDownload
(mixed $download = false)
Sets the document's download state
Parameters
  • bool $download If true, this document will be downloaded; if false, this document will be displayed inline
Returns
  • \Joomla\CMS\Document\XmlDocument instance of $this to allow chaining
Since
  • 3.9.0
Class: XmlDocument
Project: Joomla

Method setDownload - Source code

/**
 * Sets the document's download state
 *
 * @param   boolean  $download  If true, this document will be downloaded; if false, this document will be displayed inline
 *
 * @return  XmlDocument instance of $this to allow chaining
 *
 * @since   3.9.0
 */
public function setDownload($download = false)
{
    $this->isDownload = $download;
    return $this;
}