PHP 클래스 Inpsyde\MultilingualPress\Asset\DebugAwareAssetURL

부터: 3.0.0
상속: implements Inpsyde\MultilingualPress\Asset\AssetURL
파일 보기 프로젝트 열기: inpsyde/multilingual-press

공개 메소드들

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