PHP 클래스 Arcanedev\Localization\Utilities\Url

저자: ARCANEDEV ([email protected])
상속: implements Arcanedev\Localization\Contracts\UrlInterface
파일 보기 프로젝트 열기: arcanedev/localization 1 사용 예제들

공개 메소드들

메소드 설명
extractAttributes ( boolean | false | string $url = false ) : array Extract attributes for current url.
substituteAttributes ( array $attributes, string $uri ) : string Change uri attributes (wildcards) for the ones in the $attributes array.
unparse ( array | false $parsed ) : string Build URL using array data from parse_url.

비공개 메소드들

메소드 설명
checkParsedUrl ( array &$parsed ) Check parsed URL.
extractAttributesFromRoutes ( array $url, Illuminate\Routing\RouteCollection $routes ) : array Extract attributes from routes.
extractAttributesFromSegment ( array $url, array $path, integer $i, integer $j, string $segment, array &$attributes ) Extract attribute from a segment.
getAuthority ( array $parsed ) : string Get authority.
getFragment ( array $parsed ) : string Get fragment.
getHierPart ( array $parsed ) : string Get hier part.
getHost ( array $parsed ) : string Get host.
getQuery ( array $parsed ) : string Get Query.
getUrl ( array $parsed ) : string Get URL.
getUserInfo ( array $parsed ) : string Get user info.
hasAttributesFromUriPath ( array $url, string $path, array &$attributes ) : boolean Check if has attributes from a route.

메소드 상세

extractAttributes() 공개 정적인 메소드

Extract attributes for current url.
public static extractAttributes ( boolean | false | string $url = false ) : array
$url boolean | false | string
리턴 array

substituteAttributes() 공개 정적인 메소드

Change uri attributes (wildcards) for the ones in the $attributes array.
public static substituteAttributes ( array $attributes, string $uri ) : string
$attributes array
$uri string
리턴 string

unparse() 공개 정적인 메소드

Build URL using array data from parse_url.
public static unparse ( array | false $parsed ) : string
$parsed array | false
리턴 string