PHP Класс System\uri

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$current string The current uri

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

Метод Описание
current ( ) : string Get the current uri string
detect ( ) : string Try and detect the current uri
format ( $uri, $server ) : string Format the uri string remove any malicious characters and relative paths
full ( $uri, $secure = null ) : string Get full uri relative to the application
remove ( $value, $uri ) : string Remove a value from the start of a string in this case the passed uri string
remove_relative_uri ( $uri ) : string Remove the relative path from the uri set in the application config
remove_script_name ( $uri, $server ) : string Remove the SCRIPT_NAME from the uri path
secure ( $uri ) : string Get full secure uri relative to the application
to ( $uri ) : string Get a path relative to the application

Описание методов

current() публичный статический Метод

Get the current uri string
public static current ( ) : string
Результат string

detect() публичный статический Метод

Try and detect the current uri
public static detect ( ) : string
Результат string

format() публичный статический Метод

Format the uri string remove any malicious characters and relative paths
public static format ( $uri, $server ) : string
Результат string

full() публичный статический Метод

Get full uri relative to the application
public static full ( $uri, $secure = null ) : string
Результат string

remove() публичный статический Метод

Remove a value from the start of a string in this case the passed uri string
public static remove ( $value, $uri ) : string
Результат string

remove_relative_uri() публичный статический Метод

Remove the relative path from the uri set in the application config
public static remove_relative_uri ( $uri ) : string
Результат string

remove_script_name() публичный статический Метод

Remove the SCRIPT_NAME from the uri path
public static remove_script_name ( $uri, $server ) : string
Результат string

secure() публичный статический Метод

Get full secure uri relative to the application
public static secure ( $uri ) : string
Результат string

to() публичный статический Метод

Get a path relative to the application
public static to ( $uri ) : string
Результат string

Описание свойств

$current публичное статическое свойство

The current uri
public static string $current
Результат string