Support Joomla!

references:joomla.framework:document:jdocument-settab

Table of Contents

setTab

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Document Class JDocument Method setTab Reference setTab() Never Work in Progress

Sets the string used to indent HTML.

Syntax

void setTab ( $string )

$string string is a string containing the string used to indent (’\11’, ‘\t’, ’ ‘, etc.).

Examples

Set the indent string used to indent HTML.

Example

global $mainframe;

$document =& JFactory::getDocument();
$document->setTab( '    ' );

echo "Tab: <" . $document->getTab() . ">";

Might produce:

Result

Tab: <    >
 
references/joomla.framework/document/jdocument-settab.txt (657 views) · Last modified: 2007/08/15 15:03