PHP Класс Pipe\Environment

Наследование: implements ArrayAccess
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$bundleProcessors
$compressors
$contentTypes # Map of file extensions to content types.
$engines # Engine Registry, stores engines per file extension.
$loadPaths # Stack of Load Paths for Assets.
$postProcessors
$preProcessors # a mime type.

Защищенные свойства (Protected)

Свойство Тип Описание
$cssCompressor
$jsCompressor

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

Метод Описание
__construct ( $root = null )
appendPath ( $path )
contentType ( string $extension ) : string Returns the content type for the extension, .e.g. "application/javascript" for ".js".
find ( string $logicalPath, array $options = [] ) : Asset Finds the logical path in the stack of load paths and returns the Asset.
logicalPath ( string $absolutePath ) : string Calculates the logical path for the given absolute path
offsetExists ( $offset )
offsetGet ( string $logicalPath ) : Asset Sugar for find()
offsetSet ( $offset, $value )
offsetUnset ( $offset )
prependPath ( $path )
registerBundleProcessor ( $contentType, $processor )
registerEngine ( $engine, $extension )
registerPostProcessor ( $contentType, $processor )
registerPreProcessor ( $contentType, $processor )
setCssCompressor ( string $compressor ) Set the CSS compressor
setJsCompressor ( string $compressor ) Set the JS compressor

Описание методов

__construct() публичный Метод

public __construct ( $root = null )

appendPath() публичный Метод

public appendPath ( $path )

contentType() публичный Метод

Returns the content type for the extension, .e.g. "application/javascript" for ".js".
public contentType ( string $extension ) : string
$extension string
Результат string

find() публичный Метод

Example: find('application.js', ['bundled' => true]);
public find ( string $logicalPath, array $options = [] ) : Asset
$logicalPath string Path relative to the load path.
$options array
Результат Asset

logicalPath() публичный Метод

Calculates the logical path for the given absolute path
public logicalPath ( string $absolutePath ) : string
$absolutePath string
Результат string

offsetExists() публичный Метод

public offsetExists ( $offset )

offsetGet() публичный Метод

Sugar for find()
public offsetGet ( string $logicalPath ) : Asset
$logicalPath string
Результат Asset

offsetSet() публичный Метод

public offsetSet ( $offset, $value )

offsetUnset() публичный Метод

public offsetUnset ( $offset )

prependPath() публичный Метод

public prependPath ( $path )

registerBundleProcessor() публичный Метод

public registerBundleProcessor ( $contentType, $processor )

registerEngine() публичный Метод

public registerEngine ( $engine, $extension )

registerPostProcessor() публичный Метод

public registerPostProcessor ( $contentType, $processor )

registerPreProcessor() публичный Метод

public registerPreProcessor ( $contentType, $processor )

setCssCompressor() публичный Метод

Adds the compressor class as bundle processor for CSS files. See $compressors for all available compressors.
public setCssCompressor ( string $compressor )
$compressor string Identifier of the compressor

setJsCompressor() публичный Метод

Adds the compressor class as bundle processor for JavaScript files. See $compressors for all available compressors.
public setJsCompressor ( string $compressor )
$compressor string Identifier of the compressor

Описание свойств

$bundleProcessors публичное свойство

public $bundleProcessors

$compressors публичное свойство

public $compressors

$contentTypes публичное свойство

# Map of file extensions to content types.
public $contentTypes

$cssCompressor защищенное свойство

protected $cssCompressor

$engines публичное свойство

# Engine Registry, stores engines per file extension.
public $engines

$jsCompressor защищенное свойство

protected $jsCompressor

$loadPaths публичное свойство

# Stack of Load Paths for Assets.
public $loadPaths

$postProcessors публичное свойство

public $postProcessors

$preProcessors публичное свойство

# a mime type.
public $preProcessors