Inheritance diagram for oxUtilsView:
 Collaboration diagram for oxUtilsView:Public Member Functions | |
| getSmarty ($blReload=false) | |
| getTemplateOutput ($sTemplate, $oObject) | |
| passAllErrorsToView (&$aView, $aErrors) | |
| addErrorToDisplay ($oEr, $blFull=false, $blCustomDestination=false, $sCustomDestination="", $sActiveController="") | |
| parseThroughSmarty ($sDesc, $sOxid=null, $oActView=null, $blRecompile=false) | |
| setTemplateDir ($sTplDir) | |
| getTemplateDirs () | |
| getTemplateCompileId () | |
| getSmartyDir () | |
| _smartyDefaultTemplateHandler ($sResourceType, $sResourceName, &$sResourceContent, &$sResourceTimestamp, $oSmarty) | |
| getTemplateBlocks ($sFile) | |
Static Public Member Functions | |
| static | getInstance () | 
Protected Member Functions | |
| _fillCommonSmartyProperties ($oSmarty) | |
| _smartyCompileCheck ($oSmarty) | |
| _getTemplateBlock ($sModule, $sFile) | |
| _getActiveModuleInfo () | |
Protected Attributes | |
| $_aTemplateDir = array() | |
| $_blIsTplBlocks = null | |
| $_aActiveModuleInfo = null | |
Static Protected Attributes | |
| static | $_oSmarty = null | 
Static Private Attributes | |
| static | $_instance = null | 
View utility class
Definition at line 6 of file oxutilsview.php.
| oxUtilsView._fillCommonSmartyProperties | ( | $ | oSmarty | ) |  [protected] | 
        
sets properties of smarty object
| object | $oSmarty template processor object (smarty) | 
Definition at line 336 of file oxutilsview.php.
| oxUtilsView._getActiveModuleInfo | ( | ) |  [protected] | 
        
| oxUtilsView._getTemplateBlock | ( | $ | sModule, | |
| $ | sFile | |||
| ) |  [protected] | 
        
retrieve module block contents
| string | $sModule module name | |
| string | $sFile module block file name without .tpl ending | 
| oxException | if block is not found | 
Definition at line 437 of file oxutilsview.php.
| oxUtilsView._smartyCompileCheck | ( | $ | oSmarty | ) |  [protected] | 
        
sets compile check property to smarty object
| object | $oSmarty template processor object (smarty) | 
Definition at line 396 of file oxutilsview.php.
| oxUtilsView._smartyDefaultTemplateHandler | ( | $ | sResourceType, | |
| $ | sResourceName, | |||
| &$ | sResourceContent, | |||
| &$ | sResourceTimestamp, | |||
| $ | oSmarty | |||
| ) | 
is called when a template cannot be obtained from its resource.
| string | $sResourceType template type | |
| string | $sResourceName template file name | |
| string | &$sResourceContent template file content | |
| int | &$sResourceTimestamp template file timestamp | |
| object | $oSmarty template processor object (smarty) | 
Definition at line 414 of file oxutilsview.php.
| oxUtilsView.addErrorToDisplay | ( | $ | oEr, | |
| $ |  blFull = false,  | 
        |||
| $ |  blCustomDestination = false,  | 
        |||
| $ |  sCustomDestination = "",  | 
        |||
| $ |  sActiveController = "" | |||
| ) | 
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") | |
| string | $sActiveController defines a name of the controller, which should handle the error. | 
Definition at line 137 of file oxutilsview.php.
| static oxUtilsView.getInstance | ( | ) |  [static] | 
        
Utility instance getter
Definition at line 50 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.
| bool | $blReload set true to force smarty reload | 
Definition at line 64 of file oxutilsview.php.
| oxUtilsView.getSmartyDir | ( | ) | 
Returns a full path to Smarty compile dir
Definition at line 311 of file oxutilsview.php.
| oxUtilsView.getTemplateBlocks | ( | $ | sFile | ) | 
template blocks getter: retrieve sorted blocks for overriding in templates
| string | $sFile filename of rendered template | 
Definition at line 466 of file oxutilsview.php.
| oxUtilsView.getTemplateCompileId | ( | ) | 
| oxUtilsView.getTemplateDirs | ( | ) | 
Initializes and returns templates directory info array
Definition at line 278 of file oxutilsview.php.
| oxUtilsView.getTemplateOutput | ( | $ | sTemplate, | |
| $ | oObject | |||
| ) | 
Returns rendered template output. According to debug configuration outputs debug information.
| string | $sTemplate template file name | |
| object | $oObject object, witch template we wish to output | 
Definition at line 84 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
| 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 | 
Definition at line 209 of file oxutilsview.php.
| 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 | 
Definition at line 113 of file oxutilsview.php.
| oxUtilsView.setTemplateDir | ( | $ | sTplDir | ) | 
Templates directory setter
| string | $sTplDir templates path | 
Definition at line 266 of file oxutilsview.php.
oxUtilsView.$_aActiveModuleInfo = null [protected] | 
        
Definition at line 41 of file oxutilsview.php.
oxUtilsView.$_aTemplateDir = array() [protected] | 
        
Definition at line 27 of file oxutilsview.php.
oxUtilsView.$_blIsTplBlocks = null [protected] | 
        
Definition at line 34 of file oxutilsview.php.
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.
 1.7.1