class JavascriptAsset extends Asset (View source)

Constants

ASSET_POSITION_HEADER

ASSET_POSITION_FOOTER

Properties

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

Methods

getOutputAssetType()

No description

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

No description

bool
assetSupportsMinification()

No description

from  Asset
bool
assetSupportsCombination()

No description

from  Asset
setAssetLocation(mixed $location)

No description

from  Asset
setAssetSupportsMinification(bool $minify)

No description

from  Asset
setAssetSupportsCombination(bool $combine)

No description

from  Asset
string
getAssetURL()

No description

from  Asset
string
getAssetHashKey()

No description

from  Asset
getAssetPointer()

No description

from  Asset
string
getAssetPath()

No description

from  Asset
string
getAssetHandle()

No description

from  Asset
__construct(bool|string $assetHandle = false)

No description

from  Asset
string
getAssetFilename()

No description

from  Asset
setAssetVersion(string $version)

No description

from  Asset
setCombinedAssetSourceFiles(array $paths)

No description

from  Asset
string
getAssetVersion()

No description

from  Asset
setAssetPosition(string $position)

No description

from  Asset
setPackageObject(Package $pkg)

No description

from  Asset
setAssetURL(string $url)

No description

from  Asset
setAssetPath(string $path)

No description

from  Asset
hasAssetBeenMapped()

No description

from  Asset
string
getAssetURLPath()

No description

from  Asset
bool
isAssetLocal()

No description

from  Asset
setAssetIsLocal(bool $isLocal)

No description

from  Asset
string
getAssetPosition()

No description

from  Asset
mapAssetLocation(string $path)

No description

from  Asset
string|null
getAssetContents()

No description

from  Asset
static string|null
getAssetContentsByRoute(string $route)

No description

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

No description

from  Asset
getAssetDefaultPosition()

No description

static string
getRelativeOutputDirectory()

No description

static bool|string
getOutputDirectory()

No description

getAssetType()

No description

__toString()

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

getAssetDefaultPosition()

No description

static string getRelativeOutputDirectory()

No description

Return Value

string

static protected bool|string getOutputDirectory()

No description

Return Value

bool|string

getAssetType()

No description

__toString()

No description