- 7.7. Opt_Compiler_Processor class
7.7.2. _addAttributes() - 7.7.1. __construct()
« Previous - 7.7.3. _addInstructions()
Next »
7.7.2. _addAttributes()
| Status | final protected |
|---|---|
| Reference | void _addAttributes(mixed $attributes) |
Registers a single or a group of XML attributes that can be parsed with this particular processor. $attributes can be a string with the attribute name or an array of names. The compiler will redirect the processing of those attributes to the processor, if it finds any of them. The method must not be used outside Opt_Compiler_Processor::configure(). Example:
class Opt_Processor_Foo extends Opt_Compiler_Processor { protected $_name = 'foo'; public function configure() { $this->_addAttributes('opt:foo'); $this->_addAttributes(array('opt:bar', 'opt:joe')); } // end configure(); } // end Opt_Processor_Foo;
See also:
- 7.7.2. _addAttributes()
7.7. Opt_Compiler_Processor class - « Previous
7.7.1. __construct() - Next »
7.7.3. _addInstructions()