Gumbo PHP Library API Documentation
Template
[
class tree
] [
index
] [
all elements
]
Todo List
Packages:
Buffer
Collection
Composite
Config
Converter
Curl
Date
DB
Debug
Encryption
Error
Factory
Filter
Flyweight
Http
Input
Iterator
List
Load
Lockable
Log
Map
Number
Observer
Output
Query
Record
Router
Session
Setting
Singleton
Template
Timer
Utility
Valid
Source for file Template.class.php
Documentation is available at
Template.class.php
<?php
/**
* Gumbo Library Framework
*
* LICENSE
* This library is being released under the terms of the New BSD License. A
* copy of the license is packaged with the software (LICENSE.txt). If no
* copy is found, a copy of the license template can be found at:
* http://www.opensource.org/licenses/bsd-license.php
*
*
@category
Gumbo
*
@package
Template
*
@copyright
Copyright (c) 2007, iBayou, Michael Luster
*
@license
http://www.opensource.org/licenses/bsd-license.php New BSD License
*
@author
Michael Luster <mluster79@yahoo.com>
*
@link
http://sourceforge.net/projects/phpgumbo
*
@version
0.0.1
*/
/**
* Template Interface, defines global Template properties
*
*
@category
Gumbo
*
@package
Template
*
@copyright
Copyright (c) 2007, iBayou, Michael Luster
*
@license
http://www.opensource.org/licenses/bsd-license.php New BSD License
*
@author
Michael Luster <mluster79@yahoo.com>
*
@link
http://sourceforge.net/projects/phpgumbo
*
@desc
Template Interface
*
@version
0.0.1
*/
interface
Gumbo_Interface_Template
{
/** ACTION METHODS **/
/**
* 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.
*
*
@precondition
must be a primitive type
*
@param
string
|
array
$key
template reference
*
@param
mixed
$val
template value
*/
public
static
function
assign
(
$key
,
$val
=
null
)
;
/**
* Removes the global variable assignment
*
@param
string
$key
template variable reference
*/
public
static
function
unassign
(
$key
)
;
/** MUTATOR METHODS **/
/**
* Sets the global template engine to use
*
@param
string
$engine
*/
public
static
function
setEngine
(
$engine
)
;
/**
* Sets the global template file directory
*
@precondition
is_dir ($loc)
*
@param
string
$loc
*/
public
static
function
setDirTpl
(
$loc
)
;
/**
* Sets the global template file compile directory
*
@precondition
is_dir ($loc)
*
@param
string
$loc
*/
public
static
function
setDirCompile
(
$loc
)
;
/**
* Sets the global template file cache directory
*
@precondition
is_dir ($loc)
*
@param
string
$loc
*/
public
static
function
setDirCache
(
$loc
)
;
/**
* Sets the global template file config directory
*
@precondition
is_dir ($loc)
*
@param
string
$loc
*/
public
static
function
setDirConfig
(
$loc
)
;
/**
* Sets the global left delimeter value
*
@param
string
$val
*/
public
static
function
setLeftDelimeter
(
$val
)
;
/**
* Sets the global right delimeter value
*
@param
string
$val
*/
public
static
function
setRightDelimeter
(
$val
)
;
/** ACCESSOR METHODS **/
/**
* Returns the global template engine
*
@return
string
*/
public
static
function
getEngine
(
)
;
/**
* Returns a global template variable value
*
@param
string
$key
variable reference
*
@return
mixed
*/
public
static
function
getVar
(
$key
)
;
/**
* Returns all the global template variables
*
@return
array
*/
public
static
function
getVars
(
)
;
/**
* Returns the global Template directory
*
@return
string
*/
public
static
function
getDirTpl
(
)
;
/**
* Returns the global Template compile directory
*
@return
string
*/
public
static
function
getDirCompile
(
)
;
/**
* Returns the global Template cache directory
*
@return
string
*/
public
static
function
getDirCache
(
)
;
/**
* Returns the global Template config directory
*
@return
string
*/
public
static
function
getDirConfig
(
)
;
/**
* Returns the global left delimeter
*
@return
string
*/
public
static
function
getLeftDelimeter
(
)
;
/**
* Returns the global right delimeter
*
@return
string
*/
public
static
function
getRightDelimeter
(
)
;
/**
* Returns if the Template Engine exists
*
@param
string
$engine
*
@return
bool
*/
public
static
function
isEngine
(
$engine
)
;
}
?>