AssetBuilder
class AssetBuilder
Class AssetBuilder
Properties
protected mixed | $cacheEnabled |
Methods
No description
AssetBuilder constructor.
Determine if $name is a well-formed asset name.
No description
No description
Build the cached copy of an $asset.
Generate the content for a dynamic asset.
Clear out any cache files.
Determine the local path of a cache file.
Determine the URL of a cache file.
Create a unique identifier for the $params.
Encode $params in a format that's optimized for shorter URLs.
No description
No description
No description
(INTERNAL ONLY)
(INTERNAL ONLY)
Details
at line 79
static array
getCacheModes()
at line 96
__construct($cacheEnabled = NULL)
AssetBuilder constructor.
at line 113
bool
isValidName(string $name)
Determine if $name is a well-formed asset name.
at line 127
string
getUrl(string $name, array $params = [])
at line 155
string
getPath(string $name, array $params = [])
at line 177
string
build(string $name, array $params, bool $force = FALSE)
Build the cached copy of an $asset.
at line 211
array
render(string $name, array $params = [])
Generate the content for a dynamic asset.
at line 230
clear()
Clear out any cache files.
at line 243
protected string
getCachePath(string|NULL $fileName = NULL)
Determine the local path of a cache file.
at line 259
protected string
getCacheUrl(string|NULL $fileName = NULL)
Determine the URL of a cache file.
at line 275
protected string
digest(string $name, array $params)
Create a unique identifier for the $params.
This identifier is designed to avoid accidental cache collisions.
at line 293
protected string
encode(array $params)
Encode $params in a format that's optimized for shorter URLs.
at line 309
protected array
decode(string $str)
at line 324
bool
isCacheEnabled()
at line 332
AssetBuilder
setCacheEnabled(bool|null $cacheEnabled)
at line 342
static
pageRun()
(INTERNAL ONLY)
Execute a page-request for civicrm/asset/builder
.
at line 361
static array
pageRender(array $get)
(INTERNAL ONLY)
Execute a page-request for civicrm/asset/builder
.