PHP Class Lime\Helper\Assets

Inheritance: extends Lime\Helper
Datei anzeigen Open project: sjardim/Hugopit

Public Methods

Method Description
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

Method Details

compile() public method

Compile assets into one file
public compile ( Array $assets, String $type ) : String
$assets Array
$type String js or css
return String

script() public method

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
return String

style() public method

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
return String

style_and_script() public method

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
return void