[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/phpgwapi/inc/savant2/Savant2/ -> Savant2_Compiler_basic.php (sommaire)

Basic compiler for Savant2.

Author: Paul M. Jones <pmjones@ciaweb.net>
License: http://www.gnu.org/copyleft/lesser.html LGPL
Poids: 847 lignes (17 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Savant2_Compiler_basic:: (8 méthodes):
  Savant2_Compiler_basic()
  changed()
  saveCompiled()
  getPath()
  compile()
  analyze()
  allowedStatic()
  allowedFunctions()


Classe: Savant2_Compiler_basic  - X-Ref

Savant2_Compiler_basic($conf = array()   X-Ref
Constructor.


changed($tpl)   X-Ref
Has the source template changed since it was last compiled?


saveCompiled($tpl, $php)   X-Ref
Saves the PHP compiled from template source.


getPath($tpl)   X-Ref
Gets the path to the compiled PHP for a template source.


compile($tpl)   X-Ref
Compiles a template source into PHP code for Savant.


analyze(&$php)   X-Ref
Analyze a compiled template for restriction violations.

return: array An array of restriction violations; if empty, then

allowedStatic()   X-Ref
A list of allowed static method calls for templates.

The format is ...

array(
'Class1' => array('method1', 'method2'),
'Class2' => array('methodA', 'methodB'),
'Class3' => '*'
);

If you want to allow all methods from the static class to be allowed,
use a '*' in the method name list.


allowedFunctions()   X-Ref
A list of allowed functions for templates.




Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7