A

AssetClass in namespace Nette\Assets

Represents a static asset (image, script, stylesheet, etc.).

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::checkOptions() — Method in class Helpers

Validates an array of options against allowed optional and required keys.

D

DIExtensionClass in namespace Nette\Bridges\Assets

Dependency injection extension that integrates asset management into Nette application.

F

FileAssetClass in namespace Nette\Assets

Represents an asset backed by a local file.

FilesystemMapperClass in namespace Nette\Assets

Maps asset references to files within a specified local directory.

G

Asset::getUrl() — Method in class Asset

Returns the public URL of the asset.

FileAsset::getUrl() — Method in class FileAsset

Returns the publicly accessible URL.

FileAsset::getPath() — Method in class FileAsset

Returns the absolute filesystem path to the source file.

FileAsset::getWidth() — Method in class FileAsset

Returns the width in pixels for image files.

FileAsset::getHeight() — Method in class FileAsset

Returns the height in pixels for image files.

FileAsset::getDuration() — Method in class FileAsset

Returns the estimated duration in seconds for an MP3 audio file (assumes CBR).

FilesystemMapper::getAsset() — Method in class FilesystemMapper

Resolves a relative reference to a FileAsset within the configured base path.

FilesystemMapper::getVersion() — Method in class FilesystemMapper

Determines the version string for an asset, typically based on file modification time.

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.

L

LatteExtensionClass in namespace Nette\Bridges\AssetsLatte

Latte extension that provides asset-related functions:

  • asset(): returns asset URL
  • assetWidth(): returns image width
  • assetHeight(): returns image height
DIExtension::loadConfiguration() — Method in class DIExtension

M

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.

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

_

Asset::__toString() — Method in class Asset

Allows direct echoing of the object to get the URL.

FileAsset::__construct() — Method in class FileAsset
FileAsset::__toString() — Method in class FileAsset

Allows direct echoing of the object to get the URL.

FilesystemMapper::__construct() — Method in class FilesystemMapper
LatteExtension::__construct() — Method in class LatteExtension