PHP 인터페이스 Inpsyde\MultilingualPress\Common\Locations

부터: 3.0.0
파일 보기 프로젝트 열기: inpsyde/multilingual-press 0 사용 예제들

공개 메소드들

메소드 설명
add ( string $name, string $path, string $url ) : static Adds a new location according to the given arguments.
get ( string $name, string $type ) : string Returns the location data according to the given arguments.
has ( string $name ) : boolean Checks if a location with the given name exists.

메소드 상세

add() 공개 메소드

Adds a new location according to the given arguments.
부터: 3.0.0
public add ( string $name, string $path, string $url ) : static
$name string Location name.
$path string Path data.
$url string URL data.
리턴 static Locations instance.

get() 공개 메소드

Returns the location data according to the given arguments.
public get ( string $name, string $type ) : string
$name string Location name.
$type string Location type.
리턴 string Location data.

has() 공개 메소드

Checks if a location with the given name exists.
부터: 3.0.0
public has ( string $name ) : boolean
$name string Location name.
리턴 boolean Whether or not a location with the given name exists.