PHP Class Jarves\AssetHandler\AssetInfo

Datei anzeigen Open project: jarves/jarves Class Usage Examples

Protected Properties

Property Type Description
$additionalData array Additional information
$allowCompression boolean
$content string
$contentType string Mimetype
$originalPath string
$path string
$priority integer

Public Methods

Method Description
get ( string $key ) : mixed
getAllowCompression ( ) : boolean
getContent ( ) : string
getContentType ( ) : string
getOriginalPath ( ) : string
getPath ( ) : string
getPriority ( ) : integer
isCompressionAllowed ( )
isJavaScript ( ) : boolean Returns true if this is a javascript asset.
isScss ( ) : boolean Returns true if this is a stylesheet asset.
isStylesheet ( ) : boolean Returns true if this is a stylesheet asset.
isTypeScript ( ) : boolean Returns true if this is a typescript asset.
set ( string $key, $data )
setAllowCompression ( boolean $allowCompression )
setContent ( string $content )
setContentType ( string $contentType )
setOriginalPath ( string $originalFile )
setPath ( string $file )
setPriority ( integer $priority )

Method Details

get() public method

public get ( string $key ) : mixed
$key string
return mixed

getAllowCompression() public method

public getAllowCompression ( ) : boolean
return boolean

getContent() public method

public getContent ( ) : string
return string

getContentType() public method

public getContentType ( ) : string
return string

getOriginalPath() public method

public getOriginalPath ( ) : string
return string

getPath() public method

public getPath ( ) : string
return string

getPriority() public method

public getPriority ( ) : integer
return integer

isCompressionAllowed() public method

isJavaScript() public method

Returns true if this is a javascript asset.
public isJavaScript ( ) : boolean
return boolean

isScss() public method

Returns true if this is a stylesheet asset.
public isScss ( ) : boolean
return boolean

isStylesheet() public method

Returns true if this is a stylesheet asset.
public isStylesheet ( ) : boolean
return boolean

isTypeScript() public method

Returns true if this is a typescript asset.
public isTypeScript ( ) : boolean
return boolean

set() public method

public set ( string $key, $data )
$key string
$data

setAllowCompression() public method

public setAllowCompression ( boolean $allowCompression )
$allowCompression boolean

setContent() public method

public setContent ( string $content )
$content string

setContentType() public method

public setContentType ( string $contentType )
$contentType string

setOriginalPath() public method

public setOriginalPath ( string $originalFile )
$originalFile string

setPath() public method

public setPath ( string $file )
$file string

setPriority() public method

public setPriority ( integer $priority )
$priority integer

Property Details

$additionalData protected_oe property

Additional information
protected array $additionalData
return array

$allowCompression protected_oe property

protected bool $allowCompression
return boolean

$content protected_oe property

protected string $content
return string

$contentType protected_oe property

Mimetype
protected string $contentType
return string

$originalPath protected_oe property

protected string $originalPath
return string

$path protected_oe property

protected string $path
return string

$priority protected_oe property

protected int $priority
return integer