phpDocumentor GloryLands
Interface
[ class tree: GloryLands ] [ index: GloryLands ] [ all elements ]

Class: GLTemplate

Source Location: /engine/lib/interface/gltemplate.php

Class GLTemplate

Class Overview

GloryLands PHP Template Engine This template extends the Dataset structure in order to provide simple variable access, and uses template optimizer to convert short-hand PHP tags to fully compatible PHP code.

GloryLands PHP Template Engine This template extends the Dataset structure in order to provide simple variable access, and uses template optimizer to convert short-hand PHP tags to fully compatible PHP code.

Located in /engine/lib/interface/gltemplate.php [line 44]

GLDataset
   |
   --GLTemplate
Author(s):
Information Tags:
Version:  1.0

Properties

Methods

[ Top ]
Descendants
Child Class Description
GLSmartTemplate GloryLands Smart template This class extends the GLTemplate and appends some automation support.

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From GLDataset

GLDataset::$vars

Inherited From GLDataset

GLDataset::__construct()
GLDataset::assign()
Assign a value into a variable
GLDataset::import()
Import variables from an array or object
GLDataset::object_added()
An inheritable function to notify an object attachment
GLDataset::object_removed()
An inheritable function to notify an object detachment
GLDataset::pop()
Pop a value from a variable
GLDataset::push()
Push a value on a variable If the variable is not an array, it is conerted to.
GLDataset::push_once()
Push a value on a variable, but make sure it's only one on the array This function checks for an existing $value on the array. exists, it is not appended twice.
GLDataset::shift()
Shift a value from a variable
GLDataset::sort()
Sort the contents of a variable
GLDataset::unshift()
Unshift a value on a variable If the variable is not an array, it is conerted to.
GLDataset::usort()
Sort the contents of a variable using a user callback
GLDataset::var_changed()
An inheritable function to notify a variable update
GLDataset::var_removed()
An inheritable function to notify a variable removal
GLDataset::__get()
Get data variables
GLDataset::__isset()
Check for defined variables
GLDataset::__set()
Set data variables
GLDataset::__unset()
Unset a variable

[ Top ]
Property Summary
static mixed   $extensions  
bool   $evaluated   Evaluated flag When this flag is FALSE, the template must be re-evaluated.
string   $file   Template file
buffer   $response   Response buffer This variable contains the response buffer that is generated after the evaluation.

[ Top ]
Method Summary
static void   call_extension()   Call a template category
static void   register_extension()   Register a template extension
GLTemplate   __construct()   Construct the GL Template, using the file specified
void   fetch()  
void   __toString()   Convert this into a string Returns the 'text' variable, if exists.

[ Top ]
Properties
static mixed   $extensions [line 46]

[ Top ]
bool   $evaluated [line 101]

Evaluated flag When this flag is FALSE, the template must be re-evaluated.

Evaluated flag When this flag is FALSE, the template must be re-evaluated.

API Tags:
Access:  protected


[ Top ]
string   $file [line 92]

Template file

Template file

API Tags:
Access:  protected


[ Top ]
buffer   $response [line 111]

Response buffer This variable contains the response buffer that is generated after the evaluation.

Response buffer This variable contains the response buffer that is generated after the evaluation.

API Tags:
Access:  protected


[ Top ]
Methods
static method call_extension  [line 67]

  static void call_extension( string $category, [ $a = false], [ $b = false], [ $c = false], [ $d = false], [ $e = false], [ $f = false], [ $g = false], [ $h = false]  )

Call a template category

Call a template category

Parameters:
string   $category:  Target category
   $a: 
   $b: 
   $c: 
   $d: 
   $e: 
   $f: 
   $g: 
   $h: 

API Tags:
Access:  public


[ Top ]
static method register_extension  [line 54]

  static void register_extension( string $category, object $function  )

Register a template extension

Register a template extension

Parameters:
string   $category:  Target category
object   $function:  The function to call for this category

API Tags:
Access:  public


[ Top ]
Constructor __construct  [line 116]

  GLTemplate __construct( $file, [ $id = NULL]  )

Construct the GL Template, using the file specified

Construct the GL Template, using the file specified

Parameters:
   $file: 
   $id: 

API Tags:
Access:  public


Redefinition of:
GLDataset::__construct()

Redefined in descendants as:

[ Top ]
fetch  [line 131]

  void fetch( )


API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
__toString  [line 127]

  void __toString( )

Convert this into a string Returns the 'text' variable, if exists.

Convert this into a string Returns the 'text' variable, if exists.


API Tags:
Access:  public


[ Top ]

Documentation generated on Tue, 13 Oct 2009 23:49:11 +0300 by phpDocumentor 1.4.1