PHP Class Codesleeve\AssetPipeline\AssetPipeline

Afficher le fichier Open project: codesleeve/asset-pipeline

Méthodes publiques

Méthode Description
__construct ( $parser, $generator ) Create the asset repository based on this setup
file ( string $path ) : string | null Return the file download associated with this path
getConfig ( ) : array Get the config array
getGenerator ( ) : Sprockets\Generator Get the generator
getParser ( ) : Sprockets\Parser Get the parser
imageTag ( string $filename, array $attributes ) : string Create image tag
isFile ( string $filename ) : boolean Is this filename any type of file?
isJavascript ( string $filename ) : boolean Is this asset a javascript type?
isStylesheet ( string $filename ) : boolean Is this filename a stylesheet type?
javascript ( $absolutePath ) : string Return the javascript associated with this path
javascriptIncludeTag ( string $filename, array $attributes ) : string Create javascript include tag(s)
registerAssetPipelineFilters ( ) : void This calls a method on every filter we have to pass in the current pipeline if that method exists
setConfig ( array $config ) Set the config array
setGenerator ( Sprockets\Generator $generator ) Set the generator
setParser ( Sprockets\Parser $parser ) Set the parser
stylesheet ( string $absolutePath ) : string Return the stylesheet associated with this path
stylesheetLinkTag ( string $filename, array $attributes ) : string Create stylesheet link tag(s)

Method Details

__construct() public méthode

Create the asset repository based on this setup
public __construct ( $parser, $generator )

file() public méthode

Return the file download associated with this path
public file ( string $path ) : string | null
$path string
Résultat string | null | null

getConfig() public méthode

Get the config array
public getConfig ( ) : array
Résultat array

getGenerator() public méthode

Get the generator
public getGenerator ( ) : Sprockets\Generator
Résultat Sprockets\Generator

getParser() public méthode

Get the parser
public getParser ( ) : Sprockets\Parser
Résultat Sprockets\Parser

imageTag() public méthode

Create image tag
public imageTag ( string $filename, array $attributes ) : string
$filename string
$attributes array
Résultat string

isFile() public méthode

Is this filename any type of file?
public isFile ( string $filename ) : boolean
$filename string
Résultat boolean

isJavascript() public méthode

Is this asset a javascript type?
public isJavascript ( string $filename ) : boolean
$filename string
Résultat boolean

isStylesheet() public méthode

Is this filename a stylesheet type?
public isStylesheet ( string $filename ) : boolean
$filename string
Résultat boolean

javascript() public méthode

Return the javascript associated with this path
public javascript ( $absolutePath ) : string
Résultat string

javascriptIncludeTag() public méthode

Create javascript include tag(s)
public javascriptIncludeTag ( string $filename, array $attributes ) : string
$filename string
$attributes array
Résultat string

registerAssetPipelineFilters() public méthode

This calls a method on every filter we have to pass in the current pipeline if that method exists
public registerAssetPipelineFilters ( ) : void
Résultat void

setConfig() public méthode

Set the config array
public setConfig ( array $config )
$config array

setGenerator() public méthode

Set the generator
public setGenerator ( Sprockets\Generator $generator )
$generator Sprockets\Generator

setParser() public méthode

Set the parser
public setParser ( Sprockets\Parser $parser )
$parser Sprockets\Parser

stylesheet() public méthode

Return the stylesheet associated with this path
public stylesheet ( string $absolutePath ) : string
$absolutePath string
Résultat string

stylesheetLinkTag() public méthode

Create stylesheet link tag(s)
public stylesheetLinkTag ( string $filename, array $attributes ) : string
$filename string
$attributes array
Résultat string