OXID eShop CE
6.1.5
|
Public Member Functions | |
render ($widget, $forceRender, $isDynamic=false) | |
Protected Member Functions | |
isAjaxRequest () | |
shouldForceRender ($forceRender, $isAjaxRequest) | |
prepareFilesForRendering ($files, $widget) | |
formFilesOutput ($includes, $widget) | |
formSnippetsOutput ($scripts, $widgetName, $ajaxRequest) | |
sanitize ($scripts) | |
enclose ($scriptsOutput, $widget, $isAjaxRequest) | |
Class for preparing JavaScript.
|
protected |
Enclose with script tag or add in function for wiget.
string | $scriptsOutput | javascript to be enclosed. |
string | $widget | widget name. |
bool | $isAjaxRequest | is ajax request |
|
protected |
Form output for includes.
array | $includes | String files to include. |
string | $widget | Widget name. |
|
protected |
Forms how javascript should look like when output. If varnish is active, javascript should be passed to WidgetsHandler instead of direct call.
array | $scripts | Scripts to execute (from add). |
string | $widgetName | Widget name. |
bool | $ajaxRequest | Is ajax request. |
|
protected |
Returns if it is ajax request.
|
protected |
Returns files list for rendering.
array | $files | |
string | $widget |
OxidEsales\EshopCommunity\Core\ViewHelper\JavaScriptRenderer::render | ( | $widget, | |
$forceRender, | |||
$isDynamic = false |
|||
) |
Renders all registered JavaScript snippets and files.
string | $widget | Widget name |
bool | $forceRender | Force rendering of scripts. |
bool | $isDynamic | Force rendering of scripts. |
|
protected |
Sanitize javascript, which will be passed to WidgetsHandler.
string | $scripts |
|
protected |
Returns whether rendering of scripts should be forced.
bool | $forceRender | |
bool | $isAjaxRequest |