AssetUtil
AssetUtil
class
AssetUtil
Methods summary
Return Type | Method Name | Description | |
---|---|---|---|
__construct(TemplateSetInterface $template) | - | ||
static | resetCache() | - | |
void | cachePath(string $templateName, string $namespace, string $basename, string $path) | - | |
void | cacheDisk(string $templateName, string $namespace, string $basename, bool $exists = false) | - | |
bool | isCached(string $namespace, string $basename) | - | |
bool|null | onDiskStatus(string $namespace, string $basename) | - | |
string | cachedValue(string $namespace, string $basename) | - | |
exists(string $namespace, string $basename) | - | ||
static AssetUtil | factoryThemeUtil() | - | |
static AssetUtil | factoryOrderformUtil() | - | |
assetPaths() | - | ||
string | assetUrl(string $basename, string|null $namespace = null) | Retrieve best URL path of asset | |
bool|string | assetExists(string $basename, string|null $namespace = null) | - |
Details
__construct (TemplateSetInterface $template)
static
resetCache ()
protected void
cachePath (string $templateName, string $namespace, string $basename, string $path)
protected void
cacheDisk (string $templateName, string $namespace, string $basename, bool $exists = false)
protected bool
isCached (string $namespace, string $basename)
protected bool|null
onDiskStatus (string $namespace, string $basename)
protected string
cachedValue (string $namespace, string $basename)
protected
exists (string $namespace, string $basename)
static AssetUtil
factoryThemeUtil ()
static AssetUtil
factoryOrderformUtil ()
assetPaths ()
string
assetUrl (string $basename, string|null $namespace = null)
Retrieve best URL path of asset
Value will be based on the template's configuration, the existence of the named asset on disk, any configured parent. If it doesn't exist at the explicitly name place or within the parent, a default concoction will be provided based on the name space (or the parent's named space if a parent is defined). Do as I mean.