Methods summary
public
MvcCore\Ext\Views\Helpers\JsHelper
|
#
Js( string $groupName = self::GROUP_NAME_DEFAULT )
View Helper Method, returns current object instance.
View Helper Method, returns current object instance.
Parameters
- $groupName
- string identifier
Returns
|
public
boolean
|
#
Contains( string $path = '', boolean $async = FALSE, boolean $defer = FALSE, boolean $doNotMinify = FALSE )
Check if script is already presented in scripts group
Check if script is already presented in scripts group
Parameters
- $path
- $async
- $defer
- $doNotMinify
Returns
boolean
|
public
boolean
|
#
Remove( string $path = '', boolean $async = FALSE, boolean $defer = FALSE, boolean $doNotMinify = FALSE )
Remove script if it is already presented in scripts group
Remove script if it is already presented in scripts group
Parameters
- $path
- $async
- $defer
- $doNotMinify
Returns
boolean
|
public
MvcCore\Ext\Views\Helpers\JsHelper
|
#
AppendExternal( string $path = '', boolean $async = FALSE, boolean $defer = FALSE, boolean $doNotMinify = FALSE )
Append script after all group scripts for later render process with downloading external content
Append script after all group scripts for later render process with downloading external content
Parameters
- $path
- $async
- $defer
- $doNotMinify
Returns
|
public
MvcCore\Ext\Views\Helpers\JsHelper
|
#
PrependExternal( string $path = '', boolean $async = FALSE, boolean $defer = FALSE, boolean $doNotMinify = FALSE )
Prepend script before all group scripts for later render process with downloading external content
Prepend script before all group scripts for later render process with downloading external content
Parameters
- $path
- $async
- $defer
- $doNotMinify
Returns
|
public
MvcCore\Ext\Views\Helpers\JsHelper
|
#
OffsetExternal( integer $index = 0, string $path = '', boolean $async = FALSE, boolean $defer = FALSE, boolean $doNotMinify = FALSE )
Add script into given index of scripts group array for later render process with downloading external content
Add script into given index of scripts group array for later render process with downloading external content
Parameters
- $index
- $path
- $async
- $defer
- $doNotMinify
Returns
|
public
MvcCore\Ext\Views\Helpers\JsHelper
|
#
Append( string $path = '', boolean $async = FALSE, boolean $defer = FALSE, boolean $doNotMinify = FALSE, boolean $external = FALSE )
Append script after all group scripts for later render process
Append script after all group scripts for later render process
Parameters
- $path
- $async
- $defer
- $doNotMinify
- $external
Returns
|
public
MvcCore\Ext\Views\Helpers\JsHelper
|
#
Prepend( string $path = '', boolean $async = FALSE, boolean $defer = FALSE, boolean $doNotMinify = FALSE, boolean $external = FALSE )
Prepend script before all group scripts for later render process
Prepend script before all group scripts for later render process
Parameters
- $path
- $async
- $defer
- $doNotMinify
- $external
Returns
|
public
MvcCore\Ext\Views\Helpers\JsHelper
|
#
Offset( integer $index = 0, string $path = '', boolean $async = FALSE, boolean $defer = FALSE, boolean $doNotMinify = FALSE, boolean $external = FALSE )
Add script into given index of scripts group array for later render process
Add script into given index of scripts group array for later render process
Parameters
- $index
- $path
- $async
- $defer
- $doNotMinify
- $external
Returns
|
private
array
&
|
#
_getScriptsGroupContainer( string $name = '' )
Get actually dispatched controller/action group name
Get actually dispatched controller/action group name
Parameters
Returns
array
|
private
stdClass
|
#
_completeItem( string $path, string $async, boolean $defer, boolean $doNotMinify, boolean $external )
Create data item to store for render process
Create data item to store for render process
Parameters
- $path
- $async
- $defer
- $doNotMinify
- $external
Returns
stdClass
|
private
string
|
#
_isDuplicateScript( string $path )
Is the linked script duplicate?
Is the linked script duplicate?
Parameters
Returns
string
|
public
string
|
#
Render( integer $indent = 0 )
Render script elements as html code with links to original files or temporary downloaded files
Render script elements as html code with links to original files or temporary downloaded files
Parameters
Returns
string
|
private
string
|
#
_renderItemsSeparated( string $actualGroupName = '', array $items = [], integer $indent = 0, boolean $minify = FALSE )
Render data items as separated
|