ForwardFW
[ class tree: ForwardFW ] [ index: ForwardFW ] [ all elements ]

Class: ForwardFW_Templater_Smarty

Source Location: /Templater/Smarty.php

Class Overview

ForwardFW_Controller
   |
   --ForwardFW_Templater_Smarty

Class to use Smarty as Templater.


Author(s):

Implements interfaces:

Variables

Methods


Inherited Variables

Inherited Methods

Class: ForwardFW_Controller

ForwardFW_Controller::__construct()
Constructor
ForwardFW_Controller::getConfigParameter()
Returns configuration of the given parameter for this class.
ForwardFW_Controller::getParameter()
Returns content of the given parameter for this class.

Class Details

[line 53]
Class to use Smarty as Templater.



Tags:



[ Top ]


Class Variables

$arShowBlocks = array()

[line 64]



Tags:

var:  Blocks to show
access:  private

Type:   array


[ Top ]

$smarty =  null

[line 59]



Tags:

var:  The smarty instance
access:  private

Type:   Smarty


[ Top ]



Class Methods


constructor __construct [line 73]

void __construct( ForwardFW_Interface_Application $application)

Constructor



Tags:

access:  public



Implementation of:
ForwardFW_Interface_Templater::__construct()
Constructor
Overrides ForwardFW_Controller::__construct() (Constructor)

Parameters:

ForwardFW_Interface_Application   $application   The running application

[ Top ]

method defineBlock [line 143]

void defineBlock( $strBlockName)

Defines blocks in template.

Deprecated or should be used for template engines without conditions?




Tags:

access:  public



Implementation of:
ForwardFW_Interface_Templater::defineBlock()

Parameters:

   $strBlockName  

[ Top ]

method getCompiled [line 125]

string getCompiled( )

Returns compiled template for outputing.



Tags:

return:  Content of template after compiling.
access:  public



Implementation of:
ForwardFW_Interface_Templater::getCompiled()
Returns compiled template for outputing.
[ Top ]

method hideBlock [line 161]

void hideBlock( $strBlockName)

Hide block in template.

Deprecated or should be used for template engines without conditions?




Tags:

access:  public



Implementation of:
ForwardFW_Interface_Templater::hideBlock()

Parameters:

   $strBlockName  

[ Top ]

method setTemplateFile [line 100]

ForwardFW_Templater_Smarty setTemplateFile( string $_strFile)

Sets file to use for templating



Tags:

return:  The instance.
access:  public



Implementation of:
ForwardFW_Interface_Templater::setTemplateFile()
Sets file to use for templating

Parameters:

string   $_strFile   Complete path and filename.

[ Top ]

method setVar [line 114]

ForwardFW_Templater_Smarty setVar( string $_strName, mixed $_mValue)

Sets a var in the template to a value



Tags:

return:  The instance.
access:  public



Implementation of:
ForwardFW_Interface_Templater::setVar()
Sets a var in the template to a value

Parameters:

string   $_strName   Name of template var.
mixed   $_mValue   Value of template var.

[ Top ]

method showBlock [line 152]

void showBlock( $strBlockName)

Shows block in template.

Deprecated or should be used for template engines without conditions?




Tags:

access:  public



Implementation of:
ForwardFW_Interface_Templater::showBlock()

Parameters:

   $strBlockName  

[ Top ]

method __block [line 170]

void __block( $params, $content, &$smarty, &$repeat)

Block implementation for smarty.

Deprecated or should be used for template engines without conditions?




Tags:

access:  public


Parameters:

   $params  
   $content  
   &$smarty  
   &$repeat  

[ Top ]

method __texter [line 183]

void __texter( $params, &$smarty)

Texter implementation for smarty.

More later, if it exists.




Tags:

access:  public


Parameters:

   $params  
   &$smarty  

[ Top ]


Documentation generated on Sun, 30 Jan 2011 20:46:46 +0100 by phpDocumentor 1.4.3