PHP 클래스 Essence\Utility\Url

파일 보기 프로젝트 열기: benjamminf/craft-embedded-assets 1 사용 예제들

공개 메소드들

메소드 설명
host ( array $parts ) : string Builds the full host part of an URL.
path ( array $parts ) : string Builds the full path part of an URL.
resolve ( string $url, string $base ) : string Resolves relative URLs.
resolveAll ( array $urls, string $base ) : array Resolves a set of relative URLs.
resolvePath ( string $urlPath, string $basePath ) : array Resolves relative paths.
splitPath ( string $path ) : array Splits a path in parts.

메소드 상세

host() 공개 정적인 메소드

Builds the full host part of an URL.
public static host ( array $parts ) : string
$parts array URL parts.
리턴 string URL.

path() 공개 정적인 메소드

Builds the full path part of an URL.
public static path ( array $parts ) : string
$parts array URL parts.
리턴 string URL.

resolve() 공개 정적인 메소드

Resolves relative URLs.
public static resolve ( string $url, string $base ) : string
$url string URL to resolve.
$base string URL of the page from which URLs were extracted.
리턴 string Resolved URL.

resolveAll() 공개 정적인 메소드

Resolves a set of relative URLs.
또한 보기: resolve()
public static resolveAll ( array $urls, string $base ) : array
$urls array URLs to resolve.
$base string URL of the page from which URLs were extracted.
리턴 array Resolved URLs.

resolvePath() 공개 정적인 메소드

Resolves relative paths.
public static resolvePath ( string $urlPath, string $basePath ) : array
$urlPath string URLs to resolve.
$basePath string URL of the page from which URLs were extracted.
리턴 array Resolved path.

splitPath() 공개 정적인 메소드

Splits a path in parts.
public static splitPath ( string $path ) : array
$path string Path.
리턴 array Parts.