PHP Class Yosymfony\Spress\HttpServer\ServerRequest

Author: Victor Puertas ([email protected])
Mostra file Open project: spress/spress Class Usage Examples

Public Methods

Method Description
__construct ( Request $request, string $documentRoot, string $serverRoot ) Constructor.
getIp ( ) : string Gets the client IP.
getMimeType ( ) : string. Gets the Mime Type.
getPath ( ) : string Gets the path. e.g: /index.html.
getPathFilename ( ) : string Gets the path with "index.html" append.
isInternal ( ) : boolean Is internal resource?

Method Details

__construct() public method

Constructor.
public __construct ( Request $request, string $documentRoot, string $serverRoot )
$request Symfony\Component\HttpFoundation\Request
$documentRoot string Path to the document root
$serverRoot string Path to the server root

getIp() public method

Gets the client IP.
public getIp ( ) : string
return string

getMimeType() public method

Gets the Mime Type.
public getMimeType ( ) : string.
return string.

getPath() public method

Gets the path. e.g: /index.html.
public getPath ( ) : string
return string

getPathFilename() public method

Gets the path with "index.html" append.
public getPathFilename ( ) : string
return string Absolute path using either document root or server root (iternal requests)

isInternal() public method

Is internal resource?
public isInternal ( ) : boolean
return boolean