PHP Класс Inpsyde\MultilingualPress\Asset\DebugAwareAssetURL

С версии: 3.0.0
Наследование: implements Inpsyde\MultilingualPress\Asset\AssetURL
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( string $file, string $dir_path, string $dir_url ) Constructor. Sets up the properties.
__toString ( ) : string Returns the URL string.
from_location ( AssetLocation $location ) : static Returns a new URL object, instantiated according to the given location object.
version ( ) : string Returns the file version.

Приватные методы

Метод Описание
get_file ( string $file, string $dir_path ) : string Returns the name of the minified version of the given file if it exists and not debugging, otherwise the unmodified file.
get_minified_file ( string $file ) : string Returns the given file with inserted ".min" infix, if not already minified file.

Описание методов

__construct() публичный метод

Constructor. Sets up the properties.
С версии: 3.0.0
public __construct ( string $file, string $dir_path, string $dir_url )
$file string File name (e.g., admin.css).
$dir_path string Local path to the directory containing the file.
$dir_url string Public URL for the directory containing the file.

__toString() публичный метод

Returns the URL string.
С версии: 3.0.0
public __toString ( ) : string
Результат string URL string.

from_location() публичный статический метод

Returns a new URL object, instantiated according to the given location object.
С версии: 3.0.0
public static from_location ( AssetLocation $location ) : static
$location AssetLocation Asset location object.
Результат static URL object.

version() публичный метод

Returns the file version.
С версии: 3.0.0
public version ( ) : string
Результат string File version.