PHP Class Resources\Uri

Mostra file Open project: panada/panada

Public Properties

Property Type Description
$baseUri
$defaultController
$frontController
$requestScheme
$staticDefaultController

Public Methods

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

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

getBaseUri() public method

Getter for baseUri.
public getBaseUri ( ) : string
return string

getClass() public method

Get class name from the url.
public getClass ( ) : string
return string

getDefaultController() public method

Getter for default controller.

getMethod() public method

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

getRequests() public method

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

isHttps() public method

Does this site use https?
public isHttps ( ) : boolean
return boolean

path() public method

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

removeQuery() public method

Clean the 'standard' model query.
public removeQuery ( $path ) : string
return string

setDefaultController() public method

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

stripUriString() public method

Cleaner for class and method name.
public stripUriString ( $uri ) : boolean
return 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