PHP Trait Airship\Engine\Bolt\Common

Common stuff.
Afficher le fichier Open project: paragonie/airship

Méthodes publiques

Méthode Description
getCabinNameFromURL ( string $url ) : string Given a URL, return the cabin name that applies to it; otherwise, throw a CabinNotFound exception.
getCabinNames ( ) : array Get an array of the Cabin names
getCabinNamespaces ( ) : array Get an array of the Cabin namespaces
makeNamespace ( string $supplier, string $cabin ) : string some-test-user/cabin--for-the-win => Some_Test_User__Cabin_For_The_Win

Method Details

getCabinNameFromURL() public méthode

Given a URL, return the cabin name that applies to it; otherwise, throw a CabinNotFound exception.
public getCabinNameFromURL ( string $url ) : string
$url string
Résultat string

getCabinNames() public méthode

Get an array of the Cabin names
public getCabinNames ( ) : array
Résultat array

getCabinNamespaces() public méthode

Get an array of the Cabin namespaces
public getCabinNamespaces ( ) : array
Résultat array

makeNamespace() public méthode

some-test-user/cabin--for-the-win => Some_Test_User__Cabin_For_The_Win
public makeNamespace ( string $supplier, string $cabin ) : string
$supplier string
$cabin string
Résultat string