Gumbo_Interface_Template



Template Interface

Author(s): Michael Luster <mluster79@yahoo.com>
License:New BSD License
Copyright:Copyright (c) 2007, iBayou, Michael Luster
Link:http://sourceforge.net/projects/phpgumbo
Version:0.0.1

Interface Methods

public static void assign ( string|array $key, [mixed $val] ) [line 49]

Assigns a global template variable

All global template variable references will be prepended with "global_*" string. This will separate the global variables from local template variables.

Parameter(s):

  • (string|array) $key :: template reference
  • (mixed) $val :: template value
  • precondition:  must be a primitive type

[ Top ]
public static string getDirCache ( ) [line 144]

Returns the global Template cache directory


[ Top ]
public static string getDirCompile ( ) [line 138]

Returns the global Template compile directory


[ Top ]
public static string getDirConfig ( ) [line 150]

Returns the global Template config directory


[ Top ]
public static string getDirTpl ( ) [line 132]

Returns the global Template directory


[ Top ]
public static string getEngine ( ) [line 113]

Returns the global template engine


[ Top ]
public static string getLeftDelimeter ( ) [line 156]

Returns the global left delimeter


[ Top ]
public static string getRightDelimeter ( ) [line 162]

Returns the global right delimeter


[ Top ]
public static mixed getVar ( string $key ) [line 120]

Returns a global template variable value

Parameter(s):

  • (string) $key :: variable reference

[ Top ]
public static array getVars ( ) [line 126]

Returns all the global template variables


[ Top ]
public static bool isEngine ( string $engine ) [line 171]

Returns if the Template Engine exists

Parameter(s):

  • (string) $engine

[ Top ]
public static void setDirCache ( string $loc ) [line 85]

Sets the global template file cache directory

Parameter(s):

  • (string) $loc
  • precondition:  is_dir ($loc)

[ Top ]
public static void setDirCompile ( string $loc ) [line 78]

Sets the global template file compile directory

Parameter(s):

  • (string) $loc
  • precondition:  is_dir ($loc)

[ Top ]
public static void setDirConfig ( string $loc ) [line 92]

Sets the global template file config directory

Parameter(s):

  • (string) $loc
  • precondition:  is_dir ($loc)

[ Top ]
public static void setDirTpl ( string $loc ) [line 71]

Sets the global template file directory

Parameter(s):

  • (string) $loc
  • precondition:  is_dir ($loc)

[ Top ]
public static void setEngine ( string $engine ) [line 64]

Sets the global template engine to use

Parameter(s):

  • (string) $engine

[ Top ]
public static void setLeftDelimeter ( string $val ) [line 98]

Sets the global left delimeter value

Parameter(s):

  • (string) $val

[ Top ]
public static void setRightDelimeter ( string $val ) [line 104]

Sets the global right delimeter value

Parameter(s):

  • (string) $val

[ Top ]
public static void unassign ( string $key ) [line 55]

Removes the global variable assignment

Parameter(s):

  • (string) $key :: template variable reference

[ Top ]