Back to Document class

Method setBase

public \Joomla\CMS\Document\Document
setBase
(mixed $base)
Sets the base URI of the document
Parameters
  • string $base The base URI to be set
Returns
  • \Joomla\CMS\Document\Document instance of $this to allow chaining
Since
  • 1.7.0
Class: Document
Project: Joomla

Method setBase - Source code

/**
 * Sets the base URI of the document
 *
 * @param   string  $base  The base URI to be set
 *
 * @return  Document instance of $this to allow chaining
 *
 * @since   1.7.0
 */
public function setBase($base)
{
    $this->base = $base;
    return $this;
}