PHP Class Resources\Uri

Afficher le fichier Open project: panada/panada

Méthodes publiques

Свойство Type Description
$baseUri
$defaultController
$frontController
$requestScheme
$staticDefaultController

Méthodes publiques

Méthode Description
__construct ( ) Class constructor.
getBaseUri ( ) : string Getter for baseUri.
getClass ( ) : string Get class name from the url.
getDefaultController ( ) Getter for default controller.
getMethod ( $default = 'index' ) : string Get method name from the url.
getRequests ( $segment = 2 ) : array Get "GET" request from the url.
isHttps ( ) : boolean Does this site use https?
path ( $segment = false ) : string Break the string given from extractUriString() into class, method and request.
removeQuery ( $path ) : string Clean the 'standard' model query.
setDefaultController ( string $defaultController ) Setter for default controller.
stripUriString ( $uri ) : boolean Cleaner for class and method name.

Method Details

__construct() public méthode

Difine the SAPI mode, cli or web/http
public __construct ( )

getBaseUri() public méthode

Getter for baseUri.
public getBaseUri ( ) : string
Résultat string

getClass() public méthode

Get class name from the url.
public getClass ( ) : string
Résultat string

getDefaultController() public méthode

Getter for default controller.

getMethod() public méthode

Get method name from the url.
public getMethod ( $default = 'index' ) : string
Résultat string

getRequests() public méthode

Get "GET" request from the url.
public getRequests ( $segment = 2 ) : array
Résultat array

isHttps() public méthode

Does this site use https?
public isHttps ( ) : boolean
Résultat boolean

path() public méthode

Break the string given from extractUriString() into class, method and request.
public path ( $segment = false ) : string
Résultat string

removeQuery() public méthode

Clean the 'standard' model query.
public removeQuery ( $path ) : string
Résultat string

setDefaultController() public méthode

Setter for default controller.
public setDefaultController ( string $defaultController )
$defaultController string

stripUriString() public méthode

Cleaner for class and method name.
public stripUriString ( $uri ) : boolean
Résultat boolean

Property Details

$baseUri public_oe property

public $baseUri

$defaultController public_oe property

public $defaultController

$frontController public_oe property

public $frontController

$requestScheme public_oe property

public $requestScheme

$staticDefaultController public_oe static_oe property

public static $staticDefaultController