PHP Класс URL, someline-starter

Наследование: extends Illuminate\Support\Facades\URL
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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