PHP Class Yosymfony\Spress\HttpServer\ServerRequest

Author: Victor Puertas ([email protected])
Afficher le fichier Open project: spress/spress Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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 méthode

Gets the client IP.
public getIp ( ) : string
Résultat string

getMimeType() public méthode

Gets the Mime Type.
public getMimeType ( ) : string.
Résultat string.

getPath() public méthode

Gets the path. e.g: /index.html.
public getPath ( ) : string
Résultat string

getPathFilename() public méthode

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

isInternal() public méthode

Is internal resource?
public isInternal ( ) : boolean
Résultat boolean