AssetsPackage
class AssetsPackage extends AbstractAssetsPackage implements AssetsPackageInterface
Methods
Construction
Set the project root directory absolute path
Set the project's assets directory, relative to $this->_root_dir
Get the project's assets directory, relative to $this->_root_dir
Set the project's vendor directory, relative to $this->_root_dir
Get the project's vendor directory, relative to $this->_root_dir
Set the project's assets vendor directory, relative to $this->_assets_dir
Get the project's vendor directory, relative to $this->_root_dir
Get the absolute path in the package
Reset the package to empty values (except for global package)
Reset the package when clone
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Get the relative path in the package
Get all necessary arranged package infos as an array
Load a new package from the ASSETS_DB_FILENAME
entry
Find an asset file in the filesystem of a specific package
No description
Details
at line 74
__construct(string $_root_dir, string $_assets_dir = null, string $_vendor_dir = null, string $_assets_vendor_dir = null)
Construction
in AbstractAssetsPackage at line 112
AbstractAssetsPackage
setRootDirectory(string $path)
Set the project root directory absolute path
in AbstractAssetsPackage at line 129
string
getRootDirectory()
Get the project root directory absolute path
in AbstractAssetsPackage at line 141
AbstractAssetsPackage
setAssetsDirectory(string $path)
Set the project's assets directory, relative to $this->_root_dir
in AbstractAssetsPackage at line 159
string
getAssetsDirectory()
Get the project's assets directory, relative to $this->_root_dir
in AbstractAssetsPackage at line 171
AbstractAssetsPackage
setVendorDirectory(string $path)
Set the project's vendor directory, relative to $this->_root_dir
in AbstractAssetsPackage at line 189
string
getVendorDirectory()
Get the project's vendor directory, relative to $this->_root_dir
in AbstractAssetsPackage at line 201
AbstractAssetsPackage
setAssetsVendorDirectory(string $path)
Set the project's assets vendor directory, relative to $this->_assets_dir
in AbstractAssetsPackage at line 219
string
getAssetsVendorDirectory()
Get the project's vendor directory, relative to $this->_root_dir
in AbstractAssetsPackage at line 236
string
getFullPath(string $path, string $type = null, bool $out = false)
Get the absolute path in the package
in AbstractAssetsPackage at line 277
string
getAssetsRealPath()
Get the assets full path
in AbstractAssetsPackage at line 287
string
getVendorRealPath()
Get the assets full path
in AbstractAssetsPackage at line 297
string
getAssetsVendorRealPath()
Get the assets vendor full path
at line 96
static object
createFromAssetsLoader(Loader $loader)
Create a new instance from an AssetsManager\Loader
instance
at line 112
void
reset()
Reset the package to empty values (except for global package)
at line 126
void
__clone()
Reset the package when clone
at line 139
AssetsPackage
setName(string $name)
at line 148
string
getName()
at line 157
AssetsPackage
setVersion(string $version)
at line 166
string
getVersion()
at line 175
AssetsPackage
setRelativePath(string $path)
at line 184
string
getRelativePath()
at line 194
AssetsPackage
setAssetsPath(string $path)
at line 216
string
getAssetsPath()
at line 225
AssetsPackage
setAssetsPresets(array $presets)
at line 236
AssetsPackage
addAssetsPreset(string $preset_name, array $preset)
at line 245
array
getAssetsPresets()
at line 254
array|null
getAssetsPreset(string $preset_name)
at line 269
string
getRelativeFullPath(string $path)
Get the relative path in the package
at line 285
array
getArray()
Get all necessary arranged package infos as an array
This is the data stored in the Loader\Assets::ASSETS_DB_FILENAME
.
at line 303
AssetsPackage
loadFromArray(array $entries)
Load a new package from the ASSETS_DB_FILENAME
entry
at line 325
string|null
findInPackage(string $filename)
Find an asset file in the filesystem of a specific package