| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Document |
JDocument |
setTab |
setTab() |
Never | Work in Progress |
Sets the string used to indent HTML.
void setTab ( $string )
| $string | string | is a string containing the string used to indent (’\11’, ‘\t’, ’ ‘, etc.). |
Set the indent string used to indent HTML.
Example
global $mainframe; $document =& JFactory::getDocument(); $document->setTab( ' ' ); echo "Tab: <" . $document->getTab() . ">";
Might produce:
Result
Tab: < >