OXID eShop CE  7.0.0
OxidEsales\EshopCommunity\Core\UtilsView Class Reference
+ Inheritance diagram for OxidEsales\EshopCommunity\Core\UtilsView:
+ Collaboration diagram for OxidEsales\EshopCommunity\Core\UtilsView:

Public Member Functions

 getTemplateOutput ($templateName, $oObject)
 
 passAllErrorsToView (&$aView, $errors)
 
 addErrorToDisplay ($exception, $blFull=false, $useCustomDestination=false, $customDestination="", $activeController="")
 

Private Member Functions

 getRenderer ()
 

Member Function Documentation

◆ addErrorToDisplay()

OxidEsales\EshopCommunity\Core\UtilsView::addErrorToDisplay (   $exception,
  $blFull = false,
  $useCustomDestination = false,
  $customDestination = "",
  $activeController = "" 
)

Adds an 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
StandardException | IDisplayError | string$exceptionan exception object or just a language local (string), which will be converted into a oxExceptionToDisplay object
bool$blFullif true the whole object is add to display (default false)
bool$useCustomDestinationtrue if the exception shouldn't be displayed at the default position (default false)
string$customDestinationdefines a name of the view variable containing the messages, overrides Parameter 'CustomError' ("default")
string$activeControllerdefines a name of the controller, which should handle the error.

◆ getRenderer()

OxidEsales\EshopCommunity\Core\UtilsView::getRenderer ( )
private

Templating instance getter

Returns
TemplateRendererInterface

◆ getTemplateOutput()

OxidEsales\EshopCommunity\Core\UtilsView::getTemplateOutput (   $templateName,
  $oObject 
)

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

Parameters
string$templateNametemplate file name
object$oObjectobject, witch template we wish to output
Returns
string

◆ passAllErrorsToView()

OxidEsales\EshopCommunity\Core\UtilsView::passAllErrorsToView ( $aView,
  $errors 
)

adds the given errors to the view array

Parameters
array$aViewview data array
array$errorsarray of errors to pass to view

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