PHP 클래스 Codesleeve\AssetPipeline\AssetPipeline

파일 보기 프로젝트 열기: codesleeve/asset-pipeline

공개 메소드들

메소드 설명
__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)

메소드 상세

__construct() 공개 메소드

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

file() 공개 메소드

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

getConfig() 공개 메소드

Get the config array
public getConfig ( ) : array
리턴 array

getGenerator() 공개 메소드

Get the generator
public getGenerator ( ) : Sprockets\Generator
리턴 Sprockets\Generator

getParser() 공개 메소드

Get the parser
public getParser ( ) : Sprockets\Parser
리턴 Sprockets\Parser

imageTag() 공개 메소드

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

isFile() 공개 메소드

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

isJavascript() 공개 메소드

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

isStylesheet() 공개 메소드

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

javascript() 공개 메소드

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

javascriptIncludeTag() 공개 메소드

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

registerAssetPipelineFilters() 공개 메소드

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

setConfig() 공개 메소드

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

setGenerator() 공개 메소드

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

setParser() 공개 메소드

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

stylesheet() 공개 메소드

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

stylesheetLinkTag() 공개 메소드

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