Back to XmlDocument class

Method setName

public \Joomla\CMS\Document\XmlDocument
setName
(mixed $name = 'joomla')
Sets the document name
Parameters
  • string $name Document name
Returns
  • \Joomla\CMS\Document\XmlDocument instance of $this to allow chaining
Since
  • 1.7.0
Class: XmlDocument
Project: Joomla

Method setName - Source code

/**
 * Sets the document name
 *
 * @param   string  $name  Document name
 *
 * @return  XmlDocument instance of $this to allow chaining
 *
 * @since   1.7.0
 */
public function setName($name = 'joomla')
{
    $this->name = $name;
    return $this;
}