Indentor Class Reference

Indentor is (x)html page source code indenting engine. More...

List of all members.

Public Member Functions

 enter ()
 You should call this method if you are about to nest.
 indent ()
 
Returns:
Return string containing indentation for current level of nest.

 indentDirect ()
 Put indentation string direct to document.
 leave ()
 You should call this method if you are about to leave nested block.
 level ()
 
Returns:
Return current level of nest.

 puts ($szText)
 Put indented given string direct to document.

Static Public Member Functions

static singleton ()
 
Returns:
Return pointer to singleton object.


Public Attributes

const INDENT_STRING = " "
 Set this constant to any indentation string you like to use.


Detailed Description

Indentor is (x)html page source code indenting engine.

This is useful for reading the page source code by people. Browsers do not need this ;-) Design patter singleton.

Note:
Copy-pasted from project IIS T-Shop

Definition at line 367 of file base.php.


Member Function Documentation

Indentor::puts ( szText  ) 

Put indented given string direct to document.

Parameters:
szText String tu put (indented) to the document.

Definition at line 413 of file base.php.

References indent().

Here is the call graph for this function:


Member Data Documentation

const Indentor::INDENT_STRING = " "

Set this constant to any indentation string you like to use.

Recomended values are a piece of spaces or an tabulator ("\t")

Definition at line 384 of file base.php.


The documentation for this class was generated from the following file:
Generated on Sat Mar 8 10:26:44 2008 for Dudka.cz by  doxygen 1.5.4