Class Gadget_Template_Compiler

Description

Gadget_Template_Compiler

Compiler of Gadget's Template Engine.

  • since: 1.0

Located in /Gadget/Template/Compiler.php (line 39)

Gadget_Object
   |
   --Gadget_Template_Compiler
Variable Summary
Method Summary
bool compile (string $prepared, string $compiled)
string parse (string $data, [mixed $phpize = true])
string parseXml (string $data)
string phpize (string $action, string $val)
void reset ()
bool saveTemplate (string $data, string $file)
object &singleton ()
string tplize (mixed $string, string $string,)
string varize (string $var, [mixed $phpize = true])
Variables
array $actions = array() (line 95)

Actions

string $endChar = '}' (line 60)

End Character

string $escapeChar = '\\' (line 46)

Escape Character

string $parseNs = 'gadget' (line 113)

Namespace to Parse

bool $parseXml = true (line 106)

Parse Xml

Whether to parse the template as XML. If you won't use the <tag gadget:action="" /> syntax, disable this for better performance.

string $pcreDelimiter = '/' (line 88)

PCRE Delimiter

string $pcreRecursion (line 81)

PCRE Recursion

array $quotedChars = array() (line 74)

Quoted Chars

string $startChar = '{' (line 53)

Start Character

bool $stripComments = false (line 120)

Whether the XmlParser should strip the comments

string $varChar = '$' (line 67)

Variable Character

object Gadget_Template_XmlParser $XmlParser (line 127)

XmlParser

Methods
compile (line 193)

Compile

  • access: public
bool compile (string $prepared, string $compiled)
  • string $prepared
  • string $compiled
onAfterConstruct (line 135)

On After Construct

  • access: protected
void onAfterConstruct ()

Redefinition of:
Gadget_Object::onAfterConstruct()
On After Construct
parse (line 211)

Parse

  • access: public
string parse (string $data, [mixed $phpize = true])
  • string $data
parseXml (line 226)

Parse Xml

  • access: protected
string parseXml (string $data)
  • string $data
phpize (line 249)

Phpize

  • access: public
string phpize (string $action, string $val)
  • string $action
  • string $val
reset (line 146)

Reset

  • access: public
void reset ()
saveTemplate (line 295)

Write Compiled Template

  • access: protected
bool saveTemplate (string $data, string $file)
  • string $data
  • string $file
singleton (line 176)

Singleton

  • access: public
object &singleton ()
tplize (line 265)

Tplize

  • access: public
string tplize (mixed $string, string $string,)
  • string $string,: ...
varize (line 282)

Varize

  • access: public
string varize (string $var, [mixed $phpize = true])
  • string $var

Inherited Methods

Inherited From Gadget_Object

Gadget_Object::Gadget_Object()
Gadget_Object::onAfterConstruct()
Gadget_Object::onBeforeConstruct()
Gadget_Object::setOptions()

Documentation generated on Sun, 03 Jul 2005 12:45:36 +0200 by phpDocumentor 1.3.0RC3