7.7. Opt_Compiler_Processor class
7.7.13. processSystemVar()
7.7.12. processNode()
« Previous
7.7.14. reset()
Next »

7.7.13. processSystemVar()

Statusextendable public
Referencevoid processSystemVar(Array $sys)

Parses the OPT special container $sys.processorName. You should extend it to provide your own implementation for this variable. The method takes the array of the indexes that create the variable call. For example, the $sys.foo.bar is processed by the foo processor and processSystemVar() receives an array of three values:

0 => sys
1 => foo
2 => bar

The expected returned value is the PHP code generated from the container.

$opt is an alias to $sys in the templates. In this case, the first element of the array is opt instead of sys.

7.7.13. processSystemVar()
7.7. Opt_Compiler_Processor class
« Previous
7.7.12. processNode()
Next »
7.7.14. reset()