- 7. API Reference
7.5. Opt_Compiler_Class class - 7.4. Opt_Output_Return class
« Previous - 7.5.1. __construct()
Next »
7.5. Opt_Compiler_Class class
Table of Contents
- 7.5.1. __construct()
- 7.5.2. addDependantTemplate()
- 7.5.3. block()
- 7.5.4. cleanCompiler()
- 7.5.5. compile()
- 7.5.6. compileExpression()
- 7.5.7. component()
- 7.5.8. convert()
- 7.5.9. createFormat()
- 7.5.10. escape()
- 7.5.11. get()
- 7.5.12. getCurrentTemplate()
- 7.5.13. getFormat()
- 7.5.14. importDependencies()
- 7.5.15. inherits()
- 7.5.16. isBlock()
- 7.5.17. isClass()
- 7.5.18. isComponent()
- 7.5.19. isFunction()
- 7.5.20. isIdentifier()
- 7.5.21. isInstruction()
- 7.5.22. isNamespace()
- 7.5.23. isOptAttribute()
- 7.5.24. isProcessor()
- 7.5.25. parseEntities()
- 7.5.26. parseShortEntities()
- 7.5.27. processor()
- 7.5.28. set()
- 7.5.29. setConversion()
- 7.5.30. setFormatList()
- 7.5.31. setInheritance()
- 7.5.32. unsetConversion()
| Construct | Class |
|---|
The main compiler class. A single compiler can compile only one template or inheritance chain at the same time. If you want to compile another template during the compilation, you have to create the new compiler object. Note that the default constructor can copy all the settings from the other compiler objects.
Compiler state variables
During the compilation, the processors have access to the compiler state variables with the Opt_Compiler_Class::get() and Opt_Compiler_Class::set() methods. The following variables are created and managed by the compiler or the standard instructions:
- template
stringThe main template name that is being compiled.- currentTemplate
stringThe currently compiled template (including the inherited ones).- mode
intThe compilation mode (XML or quirks).- escaping
booleanPer-template HTML escaping rule.
- 7.5. Opt_Compiler_Class class
7. API Reference - « Previous
7.4. Opt_Output_Return class - Next »
7.5.1. __construct()