abstract class Asset implements AssetInterface (View source)

Constants

ASSET_POSITION_HEADER

ASSET_POSITION_FOOTER

Properties

protected string $location
protected bool $assetHasBeenMapped
protected string $assetVersion
protected string $assetHandle
protected bool $local
protected string $filename
protected string $assetURL
protected string $assetPath
protected bool $assetSupportsMinification
protected bool $assetSupportsCombination
protected Package $pkg
protected array $combinedAssetSourceFiles

Methods

getOutputAssetType()

No description

static Asset[]
process(Asset[] $assets)

No description

bool
assetSupportsMinification()

No description

bool
assetSupportsCombination()

No description

setAssetLocation(mixed $location)

No description

setAssetSupportsMinification(bool $minify)

No description

setAssetSupportsCombination(bool $combine)

No description

string
getAssetURL()

No description

string
getAssetHashKey()

No description

getAssetPointer()

No description

string
getAssetPath()

No description

string
getAssetHandle()

No description

__construct(bool|string $assetHandle = false)

No description

string
getAssetFilename()

No description

setAssetVersion(string $version)

No description

setCombinedAssetSourceFiles(array $paths)

No description

string
getAssetVersion()

No description

setAssetPosition(string $position)

No description

setPackageObject(Package $pkg)

No description

setAssetURL(string $url)

No description

setAssetPath(string $path)

No description

hasAssetBeenMapped()

No description

string
getAssetURLPath()

No description

bool
isAssetLocal()

No description

setAssetIsLocal(bool $isLocal)

No description

string
getAssetPosition()

No description

mapAssetLocation(string $path)

No description

string|null
getAssetContents()

No description

static string|null
getAssetContentsByRoute(string $route)

No description

register($filename, $args, $pkg = false)

No description

Details

getOutputAssetType()

No description

static Asset[] process(Asset[] $assets)

No description

Parameters

Asset[] $assets

Return Value

Asset[]

bool assetSupportsMinification()

No description

Return Value

bool

bool assetSupportsCombination()

No description

Return Value

bool

setAssetLocation(mixed $location)

No description

Parameters

mixed $location

setAssetSupportsMinification(bool $minify)

No description

Parameters

bool $minify

setAssetSupportsCombination(bool $combine)

No description

Parameters

bool $combine

string getAssetURL()

No description

Return Value

string

string getAssetHashKey()

No description

Return Value

string

getAssetPointer()

No description

string getAssetPath()

No description

Return Value

string

string getAssetHandle()

No description

Return Value

string

__construct(bool|string $assetHandle = false)

No description

Parameters

bool|string $assetHandle

string getAssetFilename()

No description

Return Value

string

setAssetVersion(string $version)

No description

Parameters

string $version

setCombinedAssetSourceFiles(array $paths)

No description

Parameters

array $paths

string getAssetVersion()

No description

Return Value

string

setAssetPosition(string $position)

No description

Parameters

string $position

setPackageObject(Package $pkg)

No description

Parameters

Package $pkg

setAssetURL(string $url)

No description

Parameters

string $url

setAssetPath(string $path)

No description

Parameters

string $path

hasAssetBeenMapped()

No description

string getAssetURLPath()

No description

Return Value

string

bool isAssetLocal()

No description

Return Value

bool

setAssetIsLocal(bool $isLocal)

No description

Parameters

bool $isLocal

string getAssetPosition()

No description

Return Value

string

mapAssetLocation(string $path)

No description

Parameters

string $path

string|null getAssetContents()

No description

Return Value

string|null

static protected string|null getAssetContentsByRoute(string $route)

No description

Parameters

string $route

Return Value

string|null

register($filename, $args, $pkg = false)

No description

Parameters

$filename
$args
$pkg