Index
A
- Asset — Class in namespace Nette\Assets
Base asset interface with minimal API.
- AssetNotFoundException — Class in namespace Nette\Assets
Asset cannot be found by a mapper.
- AudioAsset — Class in namespace Nette\Assets
Audio asset.
- FilesystemMapper::applyVersion() — Method in class FilesystemMapper
Appends the version string to the URL as a query parameter '?v=...'.
- Registry::addMapper() — Method in class Registry
Registers a new asset mapper under a specific identifier.
B
- FilesystemMapper::buildUrl() — Method in class FilesystemMapper
Builds the final public URL, potentially including a version query parameter.
- DIExtension::beforeCompile() — Method in class DIExtension
C
- Helpers::createAssetFromUrl() — Method in class Helpers
- Helpers::checkOptions() — Method in class Helpers
Validates an array of options against allowed optional and required keys.
D
- $ AudioAsset#duration — Property in class AudioAsset
Duration in seconds
- DIExtension — Class in namespace Nette\Bridges\Assets
Dependency injection extension that integrates asset management into Nette application.
F
- $ Asset#file — Property in class Asset
The local file path if available
- FilesystemMapper — Class in namespace Nette\Assets
Maps asset references to files within a specified local directory.
- FontAsset — Class in namespace Nette\Assets
Font asset.
G
- FilesystemMapper::getAsset() — Method in class FilesystemMapper
Resolves a relative reference to a asset within the configured base path.
- FilesystemMapper::getVersion() — Method in class FilesystemMapper
Determines the version string for an asset, typically based on file modification time.
- GenericAsset — Class in namespace Nette\Assets
Generic asset for any general file type.
- Helpers::guessMimeTypeFromExtension() — Method in class Helpers
- Helpers::guessMP3Duration() — Method in class Helpers
Estimates the duration (in seconds) of an MP3 file, assuming constant bitrate (CBR).
- Mapper::getAsset() — Method in class Mapper
Retrieves an Asset instance for a given mapper-specific reference string.
- Registry::getMapper() — Method in class Registry
Retrieves a registered asset mapper by its identifier.
- Registry::getAsset() — Method in class Registry
Retrieves an Asset instance using a qualified reference. Accepts either 'mapper:reference' or ['mapper', 'reference'].
- LatteExtension::getFunctions() — Method in class LatteExtension
- DIExtension::getConfigSchema() — Method in class DIExtension
H
- Helpers — Class in namespace Nette\Assets
Static helper class providing utility functions for working with assets.
- $ ImageAsset#height — Property in class ImageAsset
I
- ImageAsset — Class in namespace Nette\Assets
Image asset.
L
- LazyLoad — Class in namespace Nette\Assets
Lazy-loading of properties as a workaround for PHP < 8.4.
- LatteExtension — Class in namespace Nette\Bridges\AssetsLatte
Latte extension that provides asset-related functions:
- asset(): returns asset URL or throws AssetNotFoundException if asset not found
- tryAsset(): returns asset URL or null if asset not found
- DIExtension::loadConfiguration() — Method in class DIExtension
M
- $ Asset#mimeType — Property in class Asset
The MIME type if available
- $ GenericAsset#mimeType — Property in class GenericAsset
- Mapper — Class in namespace Nette\Assets
Defines the contract for resolving asset references to Asset objects.
P
- Helpers::parseReference() — Method in class Helpers
Splits a potentially qualified reference 'mapper:reference' into a [mapper, reference] array.
Q
- AssetNotFoundException::qualifyReference() — Method in class AssetNotFoundException
R
- FilesystemMapper::resolveUrl() — Method in class FilesystemMapper
Constructs the full public URL by prepending the base URL to the reference.
- FilesystemMapper::resolvePath() — Method in class FilesystemMapper
Constructs the full filesystem path by prepending the base path to the reference.
- Registry — Class in namespace Nette\Assets
Manages a collection of named asset Mappers and provides a central point for retrieving Assets using qualified references (mapper:reference).
S
- ScriptAsset — Class in namespace Nette\Assets
Script asset.
- StyleAsset — Class in namespace Nette\Assets
Style asset.
T
- Registry::tryGetAsset() — Method in class Registry
Attempts to retrieve an Asset instance using a qualified reference, but returns null if not found.
U
V
- VideoAsset — Class in namespace Nette\Assets
Video asset.
W
- $ ImageAsset#width — Property in class ImageAsset
_
- Asset::__toString() — Method in class Asset
Allows direct echoing of the object to get the URL.
- AudioAsset::__construct() — Method in class AudioAsset
- AudioAsset::__toString() — Method in class AudioAsset
Allows direct echoing of the object to get the URL.
- FilesystemMapper::__construct() — Method in class FilesystemMapper
- FontAsset::__construct() — Method in class FontAsset
- FontAsset::__toString() — Method in class FontAsset
Allows direct echoing of the object to get the URL.
- GenericAsset::__construct() — Method in class GenericAsset
- GenericAsset::__toString() — Method in class GenericAsset
Allows direct echoing of the object to get the URL.
- ImageAsset::__construct() — Method in class ImageAsset
- ImageAsset::__toString() — Method in class ImageAsset
Allows direct echoing of the object to get the URL.
- LazyLoad::__get() — Method in class LazyLoad
- ScriptAsset::__construct() — Method in class ScriptAsset
- ScriptAsset::__toString() — Method in class ScriptAsset
Allows direct echoing of the object to get the URL.
- StyleAsset::__construct() — Method in class StyleAsset
- StyleAsset::__toString() — Method in class StyleAsset
Allows direct echoing of the object to get the URL.
- VideoAsset::__construct() — Method in class VideoAsset
- VideoAsset::__toString() — Method in class VideoAsset
Allows direct echoing of the object to get the URL.
- LatteExtension::__construct() — Method in class LatteExtension