

Public Member Functions | |
| getSmarty ($blReload=false) | |
| getTemplateOutput ($sTemplate, $oObject) | |
| passAllErrorsToView (&$aView, $aErrors) | |
| addErrorToDisplay ($oEr, $blFull=false, $blCustomDestination=false, $sCustomDestination="") | |
| parseThroughSmarty ($sDesc, $sOxid) | |
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 |
| static oxUtilsView.getInstance | ( | ) | [static] |
| 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.
| bool | $blReload set true to force smarty reload |
| oxUtilsView.getTemplateOutput | ( | $ | sTemplate, | |
| $ | oObject | |||
| ) |
Returns renderd template output. According to debug configuration outputs debug information.
| string | $sTemplate template file name | |
| object | $oObject object, witch template we wish to output |
| oxUtilsView.passAllErrorsToView | ( | &$ | aView, | |
| $ | aErrors | |||
| ) |
adds the given errors to the view array
| array | &$aView view data array | |
| array | $aErrors array of errors to pass to view |
| 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
| 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") |
| oxUtilsView.parseThroughSmarty | ( | $ | sDesc, | |
| $ | sOxid | |||
| ) |
Runs long description through smarty
| string | $sDesc long description | |
| string | $sOxid current object id |
| oxUtilsView._fillCommonSmartyProperties | ( | $ | oSmarty | ) | [protected] |
sets properties of smarty object
| object | $oSmarty template processor object (smarty) |
| oxUtilsView._smartyCompileCheck | ( | $ | oSmarty | ) | [protected] |
sets compile check property to smarty object
| object | $oSmarty template processor object (smarty) |
oxUtilsView.$_instance = null [static, private] |
oxUtilsView.$_oSmarty = null [static, protected] |
1.5.5