◆ 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 | $exception | an 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 | $useCustomDestination | true if the exception shouldn't be displayed at the default position (default false) |
string | $customDestination | defines a name of the view variable containing the messages, overrides Parameter 'CustomError' ("default") |
string | $activeController | defines 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 | $templateName | template file name |
object | $oObject | object, 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 | $aView | view data array |
array | $errors | array of errors to pass to view |
The documentation for this class was generated from the following file: