The OPT library is splitted into several files:
opt.class.php
- main template parser class: optClass
. This
is the file you have to include in order to use OPT.opt.compiler.php
- template compiler. Loaded only, if there is a template to compile.opt.core.php
- some additional and less used features (debug console etc.). Loaded,
if needed.opt.error.php
- OPT error handling. Loaded, if an error occurs.opt.instructions.php
- instruction and component implementations. Loaded only, if there
is a template to compile.opt.components.php
- sample component implementations.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:
optApi
(simplified OPT parser)optBind
(instruction class)optBindEvent
(instruction class)optBlock
optCapture
(instruction class)optClass
optCompiler
optComponent
(component compilation class)optDefault
(instruction class)optDynamic
(instruction class)optDynamicData
optFor
(instruction class)optForeach
(instruction class)optIf
(instruction class)optInclude
(instruction class)optInsert
(instruction class)optInstruction
optNode
optPagelist
(instruction class)optPlace
(instruction class)optSection
(instruction class)optTextNode
optTree
(instruction class)optVar
(instruction class)The list of interfaces declared by the library:
ioptComponent
- component interfaceioptI18n
- i18n interfaceioptNode
- compiler node interfaceioptPagesystem
- a page system for the
pagesystem instruction.