PHPDevShell 3.1.3-Stable
PHP OOP RAD Development Framework
views Class Reference
Inheritance diagram for views:
PHPDS_dependant

Public Member Functions

 construct ()
 cachePage ()
 display ($load_view=false, $plugin=false)
 set ($var, $value)
 assign ($var, $value)
 fetch ($var, $value)
 show ($load_view=false, $plugin=false)
 doFetch ($load_view=false, $plugin=false)
 getTpl ($load_view=false, $plugin_override=false)

Data Fields

 $compile_dir = 'default'
 $cache_dir = 'default'
 $config_dir = 'default'
 $cache_lifetime = 'default'
 $view

Detailed Description

Contains methods to handle templates.

Author:
Jason Schoeman

Member Function Documentation

assign ( var,
value 
)

Sets Smarty variables to be passed to it. Alias of assign.

Parameters:
mixed$var
mixed$value
cachePage ( )

When called, it will aggresively cache view.

construct ( )

Construct required files.

Reimplemented from PHPDS_dependant.

display ( load_view = false,
plugin = false 
)

Loads the default or custom template (tpl) file and prints it out. Enter the template file for appropriate script here.

Parameters:
stringThe name of the template to be loaded
stringIf another plugin is to be used in the directory.
doFetch ( load_view = false,
plugin = false 
)

Loads the default or custom template (tpl) file and returns results. Enter the template file for appropriate script here.

Parameters:
stringThe name of the template to be loaded
stringIf another plugin is to be used in the directory.
fetch ( var,
value 
)

Loads the default or custom template (tpl) file and returns results. Enter the template file for appropriate script here.

Parameters:
stringThe name of the template to be loaded
stringIf another plugin is to be used in the directory.
getTpl ( load_view = false,
plugin_override = false 
)

Gets the correct location of a tpl file.

Parameters:
string$load_view
string$plugin_overrideIf another plugin is to be used in the directory.
set ( var,
value 
)

Sets Smarty variables to be passed to it. Alias of assign.

Parameters:
mixed$var
mixed$value
show ( load_view = false,
plugin = false 
)

Loads the default or custom template (tpl) file and prints it out. Enter the template file for appropriate script here.

Parameters:
stringThe name of the template to be loaded
stringIf another plugin is to be used in the directory.

Field Documentation

$cache_dir = 'default'
$cache_lifetime = 'default'
$compile_dir = 'default'
$config_dir = 'default'
$view

The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables Enumerations