DomFormatter
class DomFormatter (View source)
The AbstractFormatter class.
This class based on https://github.com/gajus/dindent to help use test Dom code.
Constants
ELEMENT_TYPE_BLOCK |
|
ELEMENT_TYPE_INLINE |
|
MATCH_INDENT_NO |
|
MATCH_INDENT_DECREASE |
|
MATCH_INDENT_INCREASE |
|
MATCH_DISCARD |
|
Methods
static DomFormatter
getInstance()
getInstance
static void
static string
format(string $buffer)
format
__construct(array $options = array())
Constructor.
string
indent(string $input)
indent
string
doIndent(string $input)
Format Dom.
array
getLog()
Debugging utility. Get log for the last indent operation.
Details
at line line 56
static DomFormatter
getInstance()
getInstance
at line line 73
static void
setInstance(DomFormatter $instance)
Method to set property instance
at line line 85
static string
format(string $buffer)
format
at line line 95
__construct(array $options = array())
Constructor.
at line line 115
string
indent(string $input)
indent
at line line 133
string
doIndent(string $input)
Format Dom.
at line line 268
array
getLog()
Debugging utility. Get log for the last indent operation.