PHP Class CeesVanEgmond\Minify\Minify

Afficher le fichier Open project: ceesvanegmond/minify Class Usage Examples

Protected Properties

Свойство Type Description
$attributes array
$config array

Méthodes publiques

Méthode Description
__construct ( array $config, string $environment )
__toString ( ) : string
javascript ( $file, array $attributes = [] ) : string
javascriptDir ( $dir, array $attributes = [] ) : string
onlyUrl ( ) : mixed
stylesheet ( $file, array $attributes = [] ) : string
stylesheetDir ( $dir, array $attributes = [] ) : string
withFullUrl ( ) : string

Méthodes protégées

Méthode Description
minifyForCurrentEnvironment ( ) : boolean
render ( ) : mixed

Private Methods

Méthode Description
assetDirHelper ( $ext, $dir ) : string
checkConfiguration ( array $config ) : array
getBaseUrl ( ) : string
process ( $file )

Method Details

__construct() public méthode

public __construct ( array $config, string $environment )
$config array
$environment string

__toString() public méthode

public __toString ( ) : string
Résultat string

javascript() public méthode

public javascript ( $file, array $attributes = [] ) : string
$file
$attributes array
Résultat string

javascriptDir() public méthode

public javascriptDir ( $dir, array $attributes = [] ) : string
$dir
$attributes array
Résultat string

minifyForCurrentEnvironment() protected méthode

protected minifyForCurrentEnvironment ( ) : boolean
Résultat boolean

onlyUrl() public méthode

public onlyUrl ( ) : mixed
Résultat mixed

render() protected méthode

protected render ( ) : mixed
Résultat mixed

stylesheet() public méthode

public stylesheet ( $file, array $attributes = [] ) : string
$file
$attributes array
Résultat string

stylesheetDir() public méthode

public stylesheetDir ( $dir, array $attributes = [] ) : string
$dir
$attributes array
Résultat string

withFullUrl() public méthode

public withFullUrl ( ) : string
Résultat string

Property Details

$attributes protected_oe property

protected array $attributes
Résultat array

$config protected_oe property

protected array $config
Résultat array