PHP Класс Codesleeve\AssetPipeline\AssetPipeline

Показать файл Открыть проект

Открытые методы

Метод Описание
__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