PHP Interface Inpsyde\MultilingualPress\Common\Locations

Since: 3.0.0
Afficher le fichier Open project: inpsyde/multilingual-press Interface Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

add() public méthode

Adds a new location according to the given arguments.
Since: 3.0.0
public add ( string $name, string $path, string $url ) : static
$name string Location name.
$path string Path data.
$url string URL data.
Résultat static Locations instance.

get() public méthode

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

has() public méthode

Checks if a location with the given name exists.
Since: 3.0.0
public has ( string $name ) : boolean
$name string Location name.
Résultat boolean Whether or not a location with the given name exists.