Overview

Namespaces

  • MvcCore
    • Ext
      • Auth
        • Virtual
      • Debug
        • Tracy
      • Form
        • Core
        • Validators
      • Request
      • Router
        • Lang
      • View
        • Helpers
  • None

Classes

  • Assets
  • Css
  • Js
  • LineBreaks
  • Overview
  • Namespace
  • Class
  • Tree

Class Js

MvcCore\Ext\View\Helpers\Assets
Extended by MvcCore\Ext\View\Helpers\Js
Namespace: MvcCore\Ext\View\Helpers
Located at ext-view-helper-assets/src/MvcCore/Ext/View/Helpers/Js.php
Methods summary
public MvcCore\Ext\View\Helpers\Js
# 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

MvcCore\Ext\View\Helpers\Js
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 MvcCore\Ext\View\Helpers\Js
# 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

MvcCore\Ext\View\Helpers\Js
public MvcCore\Ext\View\Helpers\Js
# 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

MvcCore\Ext\View\Helpers\Js
public MvcCore\Ext\View\Helpers\Js
# 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

MvcCore\Ext\View\Helpers\Js
public MvcCore\Ext\View\Helpers\Js
# 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

MvcCore\Ext\View\Helpers\Js
public MvcCore\Ext\View\Helpers\Js
# 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

MvcCore\Ext\View\Helpers\Js
public MvcCore\Ext\View\Helpers\Js
# 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

MvcCore\Ext\View\Helpers\Js
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

$indent

Returns

string
Methods inherited from MvcCore\Ext\View\Helpers\Assets
AssetUrl(), CssJsFileUrl(), SetAssetUrlCompletion(), SetBasePath(), SetGlobalOptions(), __construct(), __toString(), addFileModificationImprintToHrefUrl(), exception(), exceptionHandler(), filterItemsForNotPossibleMinifiedAndPossibleMinifiedItems(), getAppRoot(), getCtrlActionKey(), getFileImprint(), getIndentString(), getTmpDir(), getTmpFileFullPathByPartFilesInfo(), log(), saveFileContent(), warning()
Constants summary
integer EXTERNAL_MIN_CACHE_TIME

Whatever Expires header is send over http protocol, minimal cache time for external files will be one day from last download

Whatever Expires header is send over http protocol, minimal cache time for external files will be one day from last download

Const

integer
# 86400
Constants inherited from MvcCore\Ext\View\Helpers\Assets
FILE_MODIFICATION_DATE_FORMAT, GROUP_NAME_DEFAULT, VERSION
Properties summary
public static callable $MinifyCallable

Array with full class name and public method accepted as first param javascript code and returning minified code

Array with full class name and public method accepted as first param javascript code and returning minified code

# array('\JSMin', 'minify')
protected static array $scriptsGroupContainer

Array with all defined files to create specific script tags

Array with all defined files to create specific script tags

# array()
Properties inherited from MvcCore\Ext\View\Helpers\Assets
$actualGroupName, $appRoot, $assetsUrlCompletion, $basePath, $fileChecking, $fileRendering, $globalOptions, $logingAndExceptions, $streamWrapper, $systemConfigHash, $tmpDir, $view
MvcCore API documentation generated by ApiGen