Back to Document class

Method setTab

public \Joomla\CMS\Document\Document
setTab
(mixed $string)
Sets the string used to indent HTML
Parameters
  • string $string String used to indent ("\11", "\t", ' ', etc.).
Returns
  • \Joomla\CMS\Document\Document instance of $this to allow chaining
Since
  • 1.7.0
Class: Document
Project: Joomla

Method setTab - Source code

/**
 * Sets the string used to indent HTML
 *
 * @param   string  $string  String used to indent ("\11", "\t", '  ', etc.).
 *
 * @return  Document instance of $this to allow chaining
 *
 * @since   1.7.0
 */
public function setTab($string)
{
    $this->_tab = $string;
    return $this;
}