PHP Class Codesleeve\AssetPipeline\AssetPipeline

Exibir arquivo Open project: codesleeve/asset-pipeline

Public Methods

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

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

file() public method

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

getConfig() public method

Get the config array
public getConfig ( ) : array
return array

getGenerator() public method

Get the generator
public getGenerator ( ) : Sprockets\Generator
return Sprockets\Generator

getParser() public method

Get the parser
public getParser ( ) : Sprockets\Parser
return Sprockets\Parser

imageTag() public method

Create image tag
public imageTag ( string $filename, array $attributes ) : string
$filename string
$attributes array
return string

isFile() public method

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

isJavascript() public method

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

isStylesheet() public method

Is this filename a stylesheet type?
public isStylesheet ( string $filename ) : boolean
$filename string
return boolean

javascript() public method

Return the javascript associated with this path
public javascript ( $absolutePath ) : string
return string

javascriptIncludeTag() public method

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

registerAssetPipelineFilters() public method

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

setConfig() public method

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

setGenerator() public method

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

setParser() public method

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

stylesheet() public method

Return the stylesheet associated with this path
public stylesheet ( string $absolutePath ) : string
$absolutePath string
return string

stylesheetLinkTag() public method

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