Class CssHelper
- MvcCore\Ext\Views\Helpers\AbstractHelper implements MvcCore\Ext\Views\Helpers\IHelper
-
MvcCore\Ext\Views\Helpers\Assets
-
MvcCore\Ext\Views\Helpers\CssHelper
Located at ext-view-helper-assets/src/MvcCore/Ext/Views/Helpers/CssHelper.php
public
|
|
public
boolean
|
|
public
boolean
|
|
public
|
#
AppendRendered( string $path = '', string $media = 'all', boolean $doNotMinify = FALSE )
Append style sheet after all group stylesheets for later render process with php tags executing in given file |
public
|
#
PrependRendered( string $path = '', string $media = 'all', boolean $doNotMinify = FALSE, boolean $doNotMinify,… )
Prepend style sheet before all group stylesheets for later render process with php tags executing in given file |
public
|
#
OffsetSetRendered( integer $index = 0, string $path = '', string $media = 'all', boolean $doNotMinify = FALSE, boolean $doNotMinify,… )
Add style sheet into given index of stylesheets group array for later render process with php tags executing in given file |
public
|
|
public
|
|
public
|
|
private
stdClass
|
#
_completeItem( string $path, string $media, boolean $render, boolean $doNotMinify )
Create data item to store for render process |
private
string
|
|
public
string
|
|
private
array
&
|
#
_getLinksGroupContainer( string $name = '' )
Get actually dispatched controller/action group name. |
private
string
|
|
private
string
|
#
_renderItemsTogether( string $actualGroupName = '', array $items = [], integer $indent = 0, boolean $minify = FALSE )
Render data items as one html tag or all another html tags after with files which is not possible to minify. |
private
string
|
#
_renderItemsTogetherAsGroup( array $itemsToRender = [], boolean $minify = FALSE )
Render all items in group together, when application is compiled, do not check source files and changes. |
private
string
|
#
_renderFile( string $absolutePath )
Render css file by absolute path as php file and return rendered result as string |
private
string
|
#
_convertStylesheetPathsFromRelatives2TmpAbsolutes( mixed & $fullPathContent, mixed $href )
Converts all relative paths in all css rules to absolute paths with \MvcCore Url structures |
private
string
|
#
_renderFileToTmpAndGetNewHref( stdClass $item, boolean $minify = FALSE )
Render css file by path as php file and store result in tmp directory and return new href value |
private
string
|
|
private
string
|
#
_renderItemsSeparated( string $actualGroupName = '', array $items = [], integer $indent = 0, boolean $minify = FALSE )
Render data items as separated html tags |
GetInstance()
|
public
|
FILE_MODIFICATION_DATE_FORMAT,
GROUP_NAME_DEFAULT
|
VERSION
|
protected static
|
$instance
Instance store used by method |
#
NULL
|
public static
callable
|
$MinifyCallable
Array with full class name and public method accepted as first param css code and returning minified code |
#
['\Minify_CSS', 'minify']
|
private static
array
|
$_allowedMediaTypes
Allowed media types for tag |
#
['all','aural','braille','handheld','projection','print','screen','tty','tv',]
|
protected static
array
|
$linksGroupContainer
Array with all defined files to create specific link tags |
#
[]
|
$controller,
$request,
$response
|