PHP 트레잇 Airship\Engine\Bolt\Common

Common stuff.
파일 보기 프로젝트 열기: paragonie/airship

공개 메소드들

메소드 설명
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

메소드 상세

getCabinNameFromURL() 공개 메소드

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

getCabinNames() 공개 메소드

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

getCabinNamespaces() 공개 메소드

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

makeNamespace() 공개 메소드

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
리턴 string