- 7. API Reference
7.7. Opt_Compiler_Processor class - 7.6.13. supports()
« Previous - 7.7.1. __construct()
Next »
7.7. Opt_Compiler_Processor class
Table of Contents
- 7.7.1. __construct()
- 7.7.2. _addAttributes()
- 7.7.3. _addInstructions()
- 7.7.4. _enqueue()
- 7.7.5. _extractAttributes()
- 7.7.6. _process()
- 7.7.7. configure()
- 7.7.8. getName()
- 7.7.9. postprocessAttribute()
- 7.7.10. postprocessNode()
- 7.7.11. processAttribute()
- 7.7.12. processNode()
- 7.7.13. processSystemVar()
- 7.7.14. reset()
| Construct | Class |
|---|---|
| Extended by | Opt_Instruction_Attribute, Opt_Instruction_BaseSection, Opt_Instruction_Block, Opt_Instruction_Capture, Opt_Instruction_Component, Opt_Instruction_Cycle, Opt_Instruction_Dtd, Opt_Instruction_Dynamic, Opt_Instruction_Extend, Opt_Instruction_For, Opt_Instruction_Foreach, Opt_Instruction_Grid, Opt_Instruction_If, Opt_Instruction_Include, Opt_Instruction_Literal, Opt_Instruction_Prolog, Opt_Instruction_Put, Opt_Instruction_Repeat, Opt_Instruction_Root, Opt_Instruction_Separator, Opt_Instruction_Snippet, Opt_Instruction_Tag |
The XML tags and attributes in the opt namespace are not parsed directly by the compiler, but by the instruction processors. They are special classes that extend the Opt_Compiler_Processor class and define, how to compile the XML tag into the valid PHP code. This class provides all the necessary prototypes and tools to write your own instruction processor.
Class fields
The available fields are:
| Name | Type | Description |
|---|---|---|
$_name |
string | The unique instruction identifier. The value must be set by the child class. |
$_tpl |
Opt_Class | The Opt_Class object |
$_compiler |
Opt_Compiler_Class | The compiler object |
- 7.7. Opt_Compiler_Processor class
7. API Reference - « Previous
7.6.13. supports() - Next »
7.7.1. __construct()