PHP Trait Airship\Engine\Bolt\Common

Common stuff.
Show file Open project: paragonie/airship

Public Methods

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

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

getCabinNames() public method

Get an array of the Cabin names
public getCabinNames ( ) : array
return array

getCabinNamespaces() public method

Get an array of the Cabin namespaces
public getCabinNamespaces ( ) : array
return array

makeNamespace() public method

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
return string