PHP Class Jarves\AssetHandler\AssetInfo

Afficher le fichier Open project: jarves/jarves Class Usage Examples

Protected Properties

Свойство Type Description
$additionalData array Additional information
$allowCompression boolean
$content string
$contentType string Mimetype
$originalPath string
$path string
$priority integer

Méthodes publiques

Méthode 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 méthode

public get ( string $key ) : mixed
$key string
Résultat mixed

getAllowCompression() public méthode

public getAllowCompression ( ) : boolean
Résultat boolean

getContent() public méthode

public getContent ( ) : string
Résultat string

getContentType() public méthode

public getContentType ( ) : string
Résultat string

getOriginalPath() public méthode

public getOriginalPath ( ) : string
Résultat string

getPath() public méthode

public getPath ( ) : string
Résultat string

getPriority() public méthode

public getPriority ( ) : integer
Résultat integer

isCompressionAllowed() public méthode

isJavaScript() public méthode

Returns true if this is a javascript asset.
public isJavaScript ( ) : boolean
Résultat boolean

isScss() public méthode

Returns true if this is a stylesheet asset.
public isScss ( ) : boolean
Résultat boolean

isStylesheet() public méthode

Returns true if this is a stylesheet asset.
public isStylesheet ( ) : boolean
Résultat boolean

isTypeScript() public méthode

Returns true if this is a typescript asset.
public isTypeScript ( ) : boolean
Résultat boolean

set() public méthode

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

setAllowCompression() public méthode

public setAllowCompression ( boolean $allowCompression )
$allowCompression boolean

setContent() public méthode

public setContent ( string $content )
$content string

setContentType() public méthode

public setContentType ( string $contentType )
$contentType string

setOriginalPath() public méthode

public setOriginalPath ( string $originalFile )
$originalFile string

setPath() public méthode

public setPath ( string $file )
$file string

setPriority() public méthode

public setPriority ( integer $priority )
$priority integer

Property Details

$additionalData protected_oe property

Additional information
protected array $additionalData
Résultat array

$allowCompression protected_oe property

protected bool $allowCompression
Résultat boolean

$content protected_oe property

protected string $content
Résultat string

$contentType protected_oe property

Mimetype
protected string $contentType
Résultat string

$originalPath protected_oe property

protected string $originalPath
Résultat string

$path protected_oe property

protected string $path
Résultat string

$priority protected_oe property

protected int $priority
Résultat integer