Interface Dwoo_ICompiler

Description

interface that represents a dwoo compiler

while implementing this is enough to interact with Dwoo/Dwoo_Templates, it is not sufficient to interact with Dwoo_Plugins, however the main purpose of creating a new compiler would be to interact with other/different plugins, that is why this interface has been left with the minimum requirements.

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Located in /Dwoo/ICompiler.php (line 22)


	
			
Method Summary
string compile (Dwoo $dwoo, Dwoo_ITemplate $template, string $templateStr)
void setCustomPlugins ( $customPlugins)
void setSecurityPolicy ([Dwoo_Security_Policy $policy = null])
Methods
compile (line 30)

compiles the provided string down to php code

  • return: a compiled php code string
  • access: public
string compile (Dwoo $dwoo, Dwoo_ITemplate $template, string $templateStr)
setCustomPlugins (line 38)

adds the custom plugins loaded into Dwoo to the compiler so it can load them

  • see: Dwoo::addPlugin
  • access: public
void setCustomPlugins ( $customPlugins)
  • array $customPlugins: an array of custom plugins
setSecurityPolicy (line 48)

sets the security policy object to enforce some php security settings

use this if untrusted persons can modify templates, set it on the Dwoo object as it will be passed onto the compiler automatically

  • access: public
void setSecurityPolicy ([Dwoo_Security_Policy $policy = null])

Documentation generated on Sun, 07 Feb 2010 17:53:48 +0000 by phpDocumentor 1.4.0