7.6. Opt_Compiler_Format class
7.6.13. supports()
7.6.12. resetVars()
« Previous
7.7. Opt_Compiler_Processor class
Next »

7.6.13. supports()

Referenceboolean supports(string $name)

Returns true, if the data format supports the specified feature. The feature list is stored in the $_supports protected array.

Available features

The default Open Power Template compiler and instruction set consists of the following data format features:

section
The data format implements the code hooks necessary for the sections.
variable
The data format implements the code hooks necessary to handle the template variables.
item
The data format implements the code hooks necessary to handle the container calls.

Third party add-ons may define their own feature sets.

See also:

7.6.13. supports()
7.6. Opt_Compiler_Format class
« Previous
7.6.12. resetVars()
Next »
7.7. Opt_Compiler_Processor class