3.1. optClass class

3.1.1. Class fields
3.1.2. assign()
3.1.3. assignDynamic()
3.1.4. assignGroup()
3.1.5. assignRef()
3.1.6. cacheReset()
3.1.7. cacheStatus()
3.1.8. cacheUnique()
3.1.9. compileCacheReset()
3.1.10. error()
3.1.11. fetch()
3.1.12. getStatus()
3.1.13. header()
3.1.14. httpHeaders()
3.1.15. isCached()
3.1.16. loadConfig()
3.1.17. loadPlugins()
3.1.18. parse()
3.1.19. parseCapture()
3.1.20. registerComponent()
3.1.21. registerDelimiter()
3.1.22. registerFilter()
3.1.23. registerFunction()
3.1.24. registerInstruction()
3.1.25. registerInstructionFile()
3.1.26. registerNamespace()
3.1.27. registerPhpFunction()
3.1.28. registerResource()
3.1.29. setDefaultI18n()
3.1.30. setMasterTemplate()
3.1.31. setObjectI18n()
3.1.32. unregisterFilter()
3.1.33. unregisterNamespace()

The OPT library is splitted into several files:

  1. opt.class.php - main template parser class: optClass. This is the file you have to include in order to use OPT.
  2. opt.compiler.php - template compiler. Loaded only, if there is a template to compile.
  3. opt.core.php - some additional and less used features (debug console etc.). Loaded, if needed.
  4. opt.error.php - OPT error handling. Loaded, if an error occurs.
  5. opt.instructions.php - instruction and component implementations. Loaded only, if there is a template to compile.
  6. opt.components.php - sample component implementations.
  7. opt.api.php - the base of the template parser required to run the compiler. Include it only, if you want to write your own template parser based on OPT compiler.

The alphabetical list of classes declared by the library:

  1. optApi (simplified OPT parser)
  2. optBind (instruction class)
  3. optBindEvent (instruction class)
  4. optBlock
  5. optCapture (instruction class)
  6. optClass
  7. optCompiler
  8. optComponent (component compilation class)
  9. optDefault (instruction class)
  10. optDynamic (instruction class)
  11. optDynamicData
  12. optFor (instruction class)
  13. optForeach (instruction class)
  14. optIf (instruction class)
  15. optInclude (instruction class)
  16. optInsert (instruction class)
  17. optInstruction
  18. optNode
  19. optPagelist (instruction class)
  20. optPlace (instruction class)
  21. optSection (instruction class)
  22. optTextNode
  23. optTree (instruction class)
  24. optVar (instruction class)

The list of interfaces declared by the library:

  1. ioptComponent - component interface
  2. ioptI18n - i18n interface
  3. ioptNode - compiler node interface
  4. ioptPagesystem - a page system for the pagesystem instruction.