- 7.9. Opt_Xml_Buffer class
7.9.2. addBefore() - 7.9.1. addAfter()
« Previous - 7.9.3. bufferSize()
Next »
7.9.2. addBefore()
| Status | public |
|---|---|
| Reference | void addBefore(int $buffer, string $code) |
Adds the code snippet $code to the beginning of the buffer $buffer.
class Opt_Processor_Foo extends Opt_Compiler_Processor { protected $_name = 'foo'; public function processNode(Opt_Xml_Node $node) { $node->addBefore(Opt_Xml_Buffer::TAG_BEFORE, 'echo \'hello\';'); } // end processNode(); } // end Opt_Processor_Foo;
See the description of Opt_Xml_Buffer::addAfter() to get to know more information about this method.
See also:
- 7.9.2. addBefore()
7.9. Opt_Xml_Buffer class - « Previous
7.9.1. addAfter() - Next »
7.9.3. bufferSize()