7.7. Opt_Compiler_Processor class
7.7.4. _enqueue()
7.7.3. _addInstructions()
« Previous
7.7.5. _extractAttributes()
Next »

7.7.4. _enqueue()

ConstructMethod
Visibilityfinal protected
Referencevoid _enqueue(Opt_Xml_Node $node)
Argument list
$node - Opt_Xml_Node
The node that should be enqueued for processing.
Versionssince 2.0.4

This method should be used only in Opt_Compiler_Processor::processNode(). It adds the specified $node to the compiler processing queue. The most common use is to inform the compiler to parse the specified tag:

public function processNode(Opt_Xml_Node $node)
{
    $custom = new Opt_Xml_Element('foo');
    $node->appendChild($custom);
 
    // Ignore the default nodes, and parse only our custom node
    // we have already created.
    $this->_enqueue($custom);
} // end processNode();

See also:

7.7.4. _enqueue()
7.7. Opt_Compiler_Processor class
« Previous
7.7.3. _addInstructions()
Next »
7.7.5. _extractAttributes()