PHP 클래스 Puli\Repository\Uri\Uri

부터: 1.0
저자: Bernhard Schussek ([email protected])
파일 보기 프로젝트 열기: puli/repository 1 사용 예제들

공개 메소드들

메소드 설명
parse ( string $uri ) : string[] Parses a URI.

비공개 메소드들

메소드 설명
__construct ( )

메소드 상세

parse() 공개 정적인 메소드

The returned array contains the following keys: * "scheme": The scheme part before the "://"; * "path": The path part after the "://". The URI must fulfill a few constraints: * the scheme must consist of alphabetic characters only; * the scheme may be omitted. Then "://" must be omitted too; * the path must not be empty; * the path must start with a forward slash ("/"). If any of these constraints is not fulfilled, an {@link InvalidUriException} is thrown.
public static parse ( string $uri ) : string[]
$uri string A URI string.
리턴 string[] The parts of the URI.