PHP Класс Lime\Helper\Assets

Наследование: extends Lime\Helper
Показать файл Открыть проект

Открытые методы

Метод Описание
compile ( Array $assets, String $type ) : String Compile assets into one file
script ( Array $assets, String $name, String $path = "", Float $cache, boolean $version = false ) : String Compile scripts and return in a script tag
style ( Array $assets, String $name, String $path = "", Float $cache, boolean $version = false ) : String Compile styles and return in a link tag
style_and_script ( Array $assets, String $name, String $path = "", Float $cache, boolean $version = false ) : void Echo tags for scripts and styles

Описание методов

compile() публичный Метод

Compile assets into one file
public compile ( Array $assets, String $type ) : String
$assets Array
$type String js or css
Результат String

script() публичный Метод

Compile scripts and return in a script tag
public script ( Array $assets, String $name, String $path = "", Float $cache, boolean $version = false ) : String
$assets Array
$name String
$path String
$cache Float
$version boolean
Результат String

style() публичный Метод

Compile styles and return in a link tag
public style ( Array $assets, String $name, String $path = "", Float $cache, boolean $version = false ) : String
$assets Array
$name String
$path String
$cache Float
$version boolean
Результат String

style_and_script() публичный Метод

Echo tags for scripts and styles
public style_and_script ( Array $assets, String $name, String $path = "", Float $cache, boolean $version = false ) : void
$assets Array
$name String
$path String
$cache Float
$version boolean
Результат void