PHP Class Pipe\Asset

Mostrar archivo Open project: chh/pipe

Public Properties

Property Type Description
$dependencies
$digest
$logicalPath
$path

Protected Properties

Property Type Description
$body
$contentType
$environment
$extensions

Public Methods

Method Description
__construct ( Environment $environment, $path, $logicalPath = null ) # logicalPath - The path relative to the environment.
__toString ( )
getBasename ( $includeExtensions = true ) # Returns the basename as String.
getBody ( )
getContentType ( ) # Returns a MIME type as String, for example "text/javascript".
getDigest ( )
getDigestName ( )
getDirname ( )
getFormatExtension ( ) # Returns a String.
getLastModified ( )
getLogicalPath ( ) # Returns a String.
getTargetName ( $includeHash = true ) # Returns the file name as String.
setBody ( $body )
setContentType ( $contentType )
write ( $options = [] ) # Returns Nothing.

Protected Methods

Method Description
getEngineContentType ( )
getEngineExtensions ( )
getEngines ( )
getExtensions ( ) # Returns an Array of normalized extensions.

Method Details

__construct() public method

# logicalPath - The path relative to the environment.
public __construct ( Environment $environment, $path, $logicalPath = null )
$environment Environment

__toString() public method

public __toString ( )

getBasename() public method

# Returns the basename as String.
public getBasename ( $includeExtensions = true )

getBody() public method

public getBody ( )

getContentType() public method

# Returns a MIME type as String, for example "text/javascript".
public getContentType ( )

getDigest() public method

public getDigest ( )

getDigestName() public method

public getDigestName ( )

getDirname() public method

public getDirname ( )

getEngineContentType() protected method

protected getEngineContentType ( )

getEngineExtensions() protected method

protected getEngineExtensions ( )

getEngines() protected method

protected getEngines ( )

getExtensions() protected method

# Returns an Array of normalized extensions.
protected getExtensions ( )

getFormatExtension() public method

# Returns a String.
public getFormatExtension ( )

getLastModified() public method

public getLastModified ( )

getLogicalPath() public method

# Returns a String.
public getLogicalPath ( )

getTargetName() public method

# Returns the file name as String.
public getTargetName ( $includeHash = true )

setBody() public method

public setBody ( $body )

setContentType() public method

public setContentType ( $contentType )

write() public method

# Returns Nothing.
public write ( $options = [] )

Property Details

$body protected_oe property

protected $body

$contentType protected_oe property

protected $contentType

$dependencies public_oe property

public $dependencies

$digest public_oe property

public $digest

$environment protected_oe property

protected $environment

$extensions protected_oe property

protected $extensions

$logicalPath public_oe property

public $logicalPath

$path public_oe property

public $path