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

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

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

Метод Описание
__construct ( string $handle, string $url, array $dependencies = [], string | null $version = '', string $media = 'all' ) Constructor. Sets up the properties.
__toString ( ) : string Returns the handle.
add_conditional ( string $conditional ) : static Adds the given conditional to the style.
dependencies ( ) : string[] Returns the dependencies.
from_location ( string $handle, AssetLocation $location, array $dependencies = [], string | null $version = '', string $media = 'all' ) : static Returns a new style object, instantiated according to the given arguments.
handle ( ) : string Returns the handle.
media ( ) : string Returns the style media data.
url ( ) : string Returns the file URL.
version ( ) : string | null Returns the file version.

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

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

Constructor. Sets up the properties.
С версии: 3.0.0
public __construct ( string $handle, string $url, array $dependencies = [], string | null $version = '', string $media = 'all' )
$handle string The handle.
$url string The public URL for the directory containing the file.
$dependencies array Optional. The dependencies. Defaults to empty array.
$version string | null Optional. Version of the file. Defaults to empty string.
$media string Optional. Style media data. Defaults to 'all'.

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

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

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

Adds the given conditional to the style.
С версии: 3.0.0
public add_conditional ( string $conditional ) : static
$conditional string Conditional string.
Результат static Style instance.

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

Returns the dependencies.
С версии: 3.0.0
public dependencies ( ) : string[]
Результат string[] The dependencies.

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

Returns a new style object, instantiated according to the given arguments.
С версии: 3.0.0
public static from_location ( string $handle, AssetLocation $location, array $dependencies = [], string | null $version = '', string $media = 'all' ) : static
$handle string The handle.
$location AssetLocation Location object.
$dependencies array Optional. The dependencies. Defaults to empty array.
$version string | null Optional. Version of the file. Defaults to empty string.
$media string Optional. Style media data. Defaults to 'all'.
Результат static Style object.

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

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

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

Returns the style media data.
С версии: 3.0.0
public media ( ) : string
Результат string The style media data.

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

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

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

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