oxUtilsView Class Reference

Inheritance diagram for oxUtilsView:

Inheritance graph
[legend]
Collaboration diagram for oxUtilsView:

Collaboration graph
[legend]

List of all members.


Detailed Description

View utility class

Definition at line 6 of file oxutilsview.php.


Public Member Functions

 getSmarty ($blReload=false)
 getTemplateOutput ($sTemplate, $oObject)
 passAllErrorsToView (&$aView, $aErrors)
 addErrorToDisplay ($oEr, $blFull=false, $blCustomDestination=false, $sCustomDestination="")
 parseThroughSmarty ($sDesc, $sOxid=null, $oActView=null, $blRecompile=false)

Static Public Member Functions

static getInstance ()

Protected Member Functions

 _fillCommonSmartyProperties ($oSmarty)
 _smartyCompileCheck ($oSmarty)

Static Protected Attributes

static $_oSmarty = null

Static Private Attributes

static $_instance = null

Member Function Documentation

static oxUtilsView.getInstance (  )  [static]

Utility instance getter

Returns:
oxUtilsView

Definition at line 27 of file oxutilsview.php.

oxUtilsView.getSmarty ( blReload = false  ) 

returns existing or creates smarty object Returns smarty object. If object not yet initiated - creates it. Sets such default parameters, like cache lifetime, cache/templates directory, etc.

Parameters:
bool $blReload set true to force smarty reload
Returns:
smarty

Definition at line 56 of file oxutilsview.php.

oxUtilsView.getTemplateOutput ( sTemplate,
oObject 
)

Returns renderd template output. According to debug configuration outputs debug information.

Parameters:
string $sTemplate template file name
object $oObject object, witch template we wish to output
Returns:
string

Definition at line 76 of file oxutilsview.php.

oxUtilsView.passAllErrorsToView ( &$  aView,
aErrors 
)

adds the given errors to the view array

Parameters:
array &$aView view data array
array $aErrors array of errors to pass to view
Returns:
null

Definition at line 105 of file oxutilsview.php.

oxUtilsView.addErrorToDisplay ( oEr,
blFull = false,
blCustomDestination = false,
sCustomDestination = "" 
)

adds a exception to the array of displayed exceptions for the view by default is displayed in the inc_header, but with the custom destination set to true the exception won't be displayed by default but can be displayed where ever wanted in the tpl

Parameters:
exception $oEr a exception object or just a language local (string) which will be converted into a oxExceptionToDisplay object
bool $blFull if true the whole object is add to display (default false)
bool $blCustomDestination true if the exception shouldn't be displayed at the default position (default false)
string $sCustomDestination defines a name of the view variable containing the messages, overrides Parameter 'CustomError' ("default")
Returns:
null

Definition at line 128 of file oxutilsview.php.

oxUtilsView.parseThroughSmarty ( sDesc,
sOxid = null,
oActView = null,
blRecompile = false 
)

Runs long description through smarty. If you pass array of data to process, array will be returned, if you pass string - string will be passed as result

Parameters:
mixed $sDesc description or array of descriptions ( array( [] => array( _ident_, _value_to_process_ ) ) )
string $sOxid current object id
oxview $oActView view data to use its view data (optional)
bool $blRecompile force to recompile if found in cache
Returns:
mixed

Definition at line 179 of file oxutilsview.php.

oxUtilsView._fillCommonSmartyProperties ( oSmarty  )  [protected]

sets properties of smarty object

Parameters:
object $oSmarty template processor object (smarty)
Returns:
null

Definition at line 226 of file oxutilsview.php.

oxUtilsView._smartyCompileCheck ( oSmarty  )  [protected]

sets compile check property to smarty object

Parameters:
object $oSmarty template processor object (smarty)
Returns:
null

Definition at line 267 of file oxutilsview.php.


Member Data Documentation

oxUtilsView.$_instance = null [static, private]

Definition at line 13 of file oxutilsview.php.

oxUtilsView.$_oSmarty = null [static, protected]

Definition at line 20 of file oxutilsview.php.


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

Generated on Wed Apr 22 12:33:17 2009 for OXID eShop CE by  doxygen 1.5.5