PHP Interface Inpsyde\MultilingualPress\Common\Locations

Since: 3.0.0
Show file Open project: inpsyde/multilingual-press Interface Usage Examples

Public Methods

Method 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 method

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.
return static Locations instance.

get() public method

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

has() public method

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