XOOPS  2.6.0
Xmf\Template\AbstractTemplate Class Reference
Inheritance diagram for Xmf\Template\AbstractTemplate:
Inheritance graph

Public Member Functions

 __construct ()
 
 display ()
 
 fetch ()
 

Protected Member Functions

 disableLogger ()
 
 init ()
 
 render ()
 
 setTemplate ($template= '')
 

Protected Attributes

 $tpl
 

Private Attributes

 $template
 

Detailed Description

Definition at line 27 of file AbstractTemplate.php.

Constructor & Destructor Documentation

Xmf\Template\AbstractTemplate::__construct ( )

Constructor

Definition at line 42 of file AbstractTemplate.php.

References Xmf\Template\AbstractTemplate\init().

Here is the call graph for this function:

Member Function Documentation

Xmf\Template\AbstractTemplate::disableLogger ( )
protected

Use this method to disable XoopsLogger

Returns
void

Definition at line 80 of file AbstractTemplate.php.

References Xoops\getInstance().

Here is the call graph for this function:

Xmf\Template\AbstractTemplate::display ( )

Echo/Display the rendered template

Returns
void

Definition at line 102 of file AbstractTemplate.php.

References Xmf\Template\AbstractTemplate\fetch().

Here is the call graph for this function:

Xmf\Template\AbstractTemplate::fetch ( )

Returns the rendered template

Returns
bool|mixed|string

Definition at line 90 of file AbstractTemplate.php.

References Xmf\Template\AbstractTemplate\render().

Referenced by Xmf\Template\AbstractTemplate\display().

Here is the call graph for this function:

Here is the caller graph for this function:

Xmf\Template\AbstractTemplate::init ( )
abstractprotected

Classes must implement this method instead of using constructors

Returns
void

Referenced by Xmf\Template\AbstractTemplate\__construct().

Here is the caller graph for this function:

Xmf\Template\AbstractTemplate::render ( )
abstractprotected

Classes must implement this method for assigning content to $_tpl

Returns
void

Referenced by Xmf\Template\AbstractTemplate\fetch().

Here is the caller graph for this function:

Xmf\Template\AbstractTemplate::setTemplate (   $template = '')
protected

Used in init methods to set the template used by $_tpl

Parameters
string$templatePath to the template file
Returns
void

Definition at line 70 of file AbstractTemplate.php.

References Xmf\Template\AbstractTemplate\$template.

Referenced by Xmf\Template\Breadcrumb\init(), Xmf\Template\PrintContent\init(), and Xmf\Template\Feed\init().

Here is the caller graph for this function:

Member Data Documentation

Xmf\Template\AbstractTemplate::$template
private

Definition at line 37 of file AbstractTemplate.php.

Referenced by Xmf\Template\AbstractTemplate\setTemplate().

Xmf\Template\AbstractTemplate::$tpl
protected

Definition at line 32 of file AbstractTemplate.php.


The documentation for this class was generated from the following file: