OutputRules
class OutputRules implements RulesInterface (View source)
Generate the output html5 based on element rules.
Constants
NAMESPACE_HTML |
Defined in http://www.w3.org/TR/html51/infrastructure.html#html-namespace-0 |
NAMESPACE_MATHML |
|
NAMESPACE_SVG |
|
NAMESPACE_XLINK |
|
NAMESPACE_XML |
|
NAMESPACE_XMLNS |
|
IM_IN_HTML |
|
IM_IN_SVG |
|
IM_IN_MATHML |
|
DOCTYPE |
|
Methods
The class constructor.
No description
Write an element.
Write a text node.
Write a CDATA node.
Write a comment node.
Write a processor instruction.
Details
at line line 91
__construct(
mixed $output,
array $options = array())
The class constructor.
Note, before the rules can be used a traverser must be registered.
at line line 103
addRule(
array $rule)
at line line 108
RulesInterface
setTraverser(
Traverser $traverser)
Register the traverser used in but the rules.
Note, only one traverser can be used by the rules.
at line line 115
document(
DOMDocument $dom)
Write a document element (\DOMDocument).
Instead of returning the result write it to the output stream ($output) that was passed into the constructor.
at line line 128
element(
mixed $ele)
Write an element.
Instead of returning the result write it to the output stream ($output) that was passed into the constructor.
at line line 177
text(
mixed $ele)
Write a text node.
at line line 188
cdata(
mixed $ele)
Write a CDATA node.
Instead of returning the result write it to the output stream ($output) that was passed into the constructor.
at line line 194
comment(
mixed $ele)
Write a comment node.
Instead of returning the result write it to the output stream ($output) that was passed into the constructor.
at line line 201
processorInstruction(
mixed $ele)
Write a processor instruction.
To learn about processor instructions see \Masterminds\HTML5\InstructionProcessor
Instead of returning the result write it to the output stream ($output) that was passed into the constructor.