PHP 클래스 Inpsyde\MultilingualPress\Asset\DebugAwareStyle

부터: 3.0.0
상속: implements Inpsyde\MultilingualPress\Asset\Style
파일 보기 프로젝트 열기: inpsyde/multilingual-press 1 사용 예제들

공개 메소드들

메소드 설명
__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.