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

Class: ForwardFW_Templater_Twig

Source Location: /Templater/Twig.php

Class Overview

ForwardFW_Controller
   |
   --ForwardFW_Templater_Twig

Class to use Twig 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 Twig as Templater.



Tags:



[ Top ]


Class Variables

$arShowBlocks = array()

[line 74]



Tags:

var:  Blocks to show
access:  private

Type:   array


[ Top ]

$arVars = array()

[line 69]



Tags:

var:  The array of vars for the template
access:  private

Type:   array


[ Top ]

$twigEnvironment =  null

[line 59]



Tags:

var:  The Twig instance
access:  private

Type:   Twig_Environment


[ Top ]

$twigTemplate =  null

[line 64]



Tags:

var:  The loaded template
access:  private

Type:   Twig_Template


[ Top ]



Class Methods


constructor __construct [line 83]

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 148]

void defineBlock( $strBlockName)



Tags:

access:  public



Implementation of:
ForwardFW_Interface_Templater::defineBlock()

Parameters:

   $strBlockName  

[ Top ]

method getCompiled [line 140]

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 158]

void hideBlock( $strBlockName)



Tags:

access:  public



Implementation of:
ForwardFW_Interface_Templater::hideBlock()

Parameters:

   $strBlockName  

[ Top ]

method setTemplateFile [line 113]

ForwardFW_Templater_Twig 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 129]

ForwardFW_Templater_Twig 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 153]

void showBlock( $strBlockName)



Tags:

access:  public



Implementation of:
ForwardFW_Interface_Templater::showBlock()

Parameters:

   $strBlockName  

[ Top ]

method __block [line 163]

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



Tags:

access:  public


Parameters:

   $params  
   $content  
   &$smarty  
   &$repeat  

[ Top ]

method __texter [line 172]

void __texter( $params, &$smarty)



Tags:

access:  public


Parameters:

   $params  
   &$smarty  

[ Top ]


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