PHP Class System\Uri

Afficher le fichier Open project: rwarasaurus/nano Class Usage Examples

Méthodes publiques

Свойство Type Description
$current string The current uri

Méthodes publiques

Méthode Description
current ( ) : string Get the current uri string
full ( $uri, $secure = null ) : string Get full uri relative to the application
secure ( $uri ) : string Get full secure uri relative to the application
to ( $uri ) : string Get a path relative to the application

Private Methods

Méthode Description
detect ( ) : string Try and detect the current uri
format ( $uri, $server ) : string Format the uri string remove any malicious characters and relative paths
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

Method Details

current() public static méthode

Get the current uri string
public static current ( ) : string
Résultat string

full() public static méthode

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

secure() public static méthode

Get full secure uri relative to the application
public static secure ( $uri ) : string
Résultat string

to() public static méthode

Get a path relative to the application
public static to ( $uri ) : string
Résultat string

Property Details

$current public_oe static_oe property

The current uri
public static string $current
Résultat string