PHP Class System\uri

Datei anzeigen Open project: anchorcms/anchor-cms

Public Properties

Property Type Description
$current string The current uri

Public Methods

Method Description
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

Method Details

current() public static method

Get the current uri string
public static current ( ) : string
return string

detect() public static method

Try and detect the current uri
public static detect ( ) : string
return string

format() public static method

Format the uri string remove any malicious characters and relative paths
public static format ( $uri, $server ) : string
return string

full() public static method

Get full uri relative to the application
public static full ( $uri, $secure = null ) : string
return string

remove() public static method

Remove a value from the start of a string in this case the passed uri string
public static remove ( $value, $uri ) : string
return string

remove_relative_uri() public static method

Remove the relative path from the uri set in the application config
public static remove_relative_uri ( $uri ) : string
return string

remove_script_name() public static method

Remove the SCRIPT_NAME from the uri path
public static remove_script_name ( $uri, $server ) : string
return string

secure() public static method

Get full secure uri relative to the application
public static secure ( $uri ) : string
return string

to() public static method

Get a path relative to the application
public static to ( $uri ) : string
return string

Property Details

$current public_oe static_oe property

The current uri
public static string $current
return string