PHP 클래스 URL, someline-starter

상속: extends Illuminate\Support\Facades\URL
파일 보기 프로젝트 열기: someline/someline-starter 1 사용 예제들

공개 메소드들

메소드 설명
action ( string $action, mixed $parameters = [], boolean $absolute = true ) : string Get the URL to a controller action.
asset ( string $path, boolean | null $secure = null ) : string Generate a URL to an application asset.
assetFrom ( string $root, string $path, boolean | null $secure = null ) : string Generate a URL to an asset from a custom root domain such as CDN, etc.
current ( ) : string Get the current URL for the request.
forceRootUrl ( string $root ) : void Set the forced root URL.
forceSchema ( string $schema ) : void Force the schema for URLs.
full ( ) : string Get the full URL for the current request.
getRequest ( ) : Illuminate\Http\Request Get the request instance.
hasMacro ( string $name ) : boolean Checks if macro is registered.
isValidUrl ( string $path ) : boolean Determine if the given path is a valid URL.
macro ( string $name, callable $macro ) : void Register a custom macro.
previous ( mixed $fallback = false ) : string Get the URL for the previous request.
route ( string $name, mixed $parameters = [], boolean $absolute = true ) : string Get the URL to a named route.
secure ( string $path, array $parameters = [] ) : string Generate a secure, absolute URL to the given path.
secureAsset ( string $path ) : string Generate a URL to a secure asset.
setRequest ( Illuminate\Http\Request $request ) : void Set the current request instance.
setRootControllerNamespace ( string $rootNamespace ) Set the root controller namespace.
setRoutes ( Illuminate\Routing\RouteCollection $routes ) Set the route collection.
setSessionResolver ( callable $sessionResolver ) Set the session resolver for the generator.
to ( string $path, mixed $extra = [], boolean | null $secure = null ) : string Generate an absolute URL to the given path.

메소드 상세

action() 공개 정적인 메소드

Get the URL to a controller action.
public static action ( string $action, mixed $parameters = [], boolean $absolute = true ) : string
$action string
$parameters mixed
$absolute boolean
리턴 string

asset() 공개 정적인 메소드

Generate a URL to an application asset.
public static asset ( string $path, boolean | null $secure = null ) : string
$path string
$secure boolean | null
리턴 string

assetFrom() 공개 정적인 메소드

Generate a URL to an asset from a custom root domain such as CDN, etc.
public static assetFrom ( string $root, string $path, boolean | null $secure = null ) : string
$root string
$path string
$secure boolean | null
리턴 string

current() 공개 정적인 메소드

Get the current URL for the request.
public static current ( ) : string
리턴 string

forceRootUrl() 공개 정적인 메소드

Set the forced root URL.
public static forceRootUrl ( string $root ) : void
$root string
리턴 void

forceSchema() 공개 정적인 메소드

Force the schema for URLs.
public static forceSchema ( string $schema ) : void
$schema string
리턴 void

full() 공개 정적인 메소드

Get the full URL for the current request.
public static full ( ) : string
리턴 string

getRequest() 공개 정적인 메소드

Get the request instance.
public static getRequest ( ) : Illuminate\Http\Request
리턴 Illuminate\Http\Request

hasMacro() 공개 정적인 메소드

Checks if macro is registered.
public static hasMacro ( string $name ) : boolean
$name string
리턴 boolean

isValidUrl() 공개 정적인 메소드

Determine if the given path is a valid URL.
public static isValidUrl ( string $path ) : boolean
$path string
리턴 boolean

macro() 공개 정적인 메소드

Register a custom macro.
public static macro ( string $name, callable $macro ) : void
$name string
$macro callable
리턴 void

previous() 공개 정적인 메소드

Get the URL for the previous request.
public static previous ( mixed $fallback = false ) : string
$fallback mixed
리턴 string

route() 공개 정적인 메소드

Get the URL to a named route.
public static route ( string $name, mixed $parameters = [], boolean $absolute = true ) : string
$name string
$parameters mixed
$absolute boolean
리턴 string

secure() 공개 정적인 메소드

Generate a secure, absolute URL to the given path.
public static secure ( string $path, array $parameters = [] ) : string
$path string
$parameters array
리턴 string

secureAsset() 공개 정적인 메소드

Generate a URL to a secure asset.
public static secureAsset ( string $path ) : string
$path string
리턴 string

setRequest() 공개 정적인 메소드

Set the current request instance.
public static setRequest ( Illuminate\Http\Request $request ) : void
$request Illuminate\Http\Request
리턴 void

setRootControllerNamespace() 공개 정적인 메소드

Set the root controller namespace.
public static setRootControllerNamespace ( string $rootNamespace )
$rootNamespace string

setRoutes() 공개 정적인 메소드

Set the route collection.
public static setRoutes ( Illuminate\Routing\RouteCollection $routes )
$routes Illuminate\Routing\RouteCollection

setSessionResolver() 공개 정적인 메소드

Set the session resolver for the generator.
public static setSessionResolver ( callable $sessionResolver )
$sessionResolver callable

to() 공개 정적인 메소드

Generate an absolute URL to the given path.
public static to ( string $path, mixed $extra = [], boolean | null $secure = null ) : string
$path string
$extra mixed
$secure boolean | null
리턴 string