A

AssetClass in namespace Nette\Assets

Base asset interface with minimal API.

AssetNotFoundExceptionClass in namespace Nette\Assets

Asset cannot be found by a mapper.

AudioAssetClass 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#durationProperty in class AudioAsset

Duration in seconds

DIExtensionClass in namespace Nette\Bridges\Assets

Dependency injection extension that integrates asset management into Nette application.

F

$ Asset#fileProperty in class Asset

The local file path if available

FilesystemMapperClass in namespace Nette\Assets

Maps asset references to files within a specified local directory.

FontAssetClass 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.

GenericAssetClass 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

HelpersClass in namespace Nette\Assets

Static helper class providing utility functions for working with assets.

$ ImageAsset#heightProperty in class ImageAsset

I

ImageAssetClass in namespace Nette\Assets

Image asset.

L

LazyLoadClass in namespace Nette\Assets

Lazy-loading of properties as a workaround for PHP < 8.4.

LatteExtensionClass 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#mimeTypeProperty in class Asset

The MIME type if available

$ GenericAsset#mimeTypeProperty in class GenericAsset
MapperClass 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.

RegistryClass 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

ScriptAssetClass in namespace Nette\Assets

Script asset.

StyleAssetClass 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

$ Asset#urlProperty in class Asset

The public URL

V

VideoAssetClass in namespace Nette\Assets

Video asset.

W

$ ImageAsset#widthProperty 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