Jelix 1.6.40

FakeServerConf
in package

base class for servers

Table of Contents

$documentRoot  : mixed
full path to the document root
$scriptName  : mixed
part of the path from the document root path to the physical php script
__construct()  : mixed
setHttpRequest()  : mixed
setDefaultServer()  : mixed

Properties

$documentRoot

full path to the document root

protected mixed $documentRoot = '/var/www/'

$scriptName

part of the path from the document root path to the physical php script

protected mixed $scriptName = '/index.php'

Methods

__construct()

public __construct([string $documentRoot = null ][, string $scriptName = null ]) : mixed
Parameters
$documentRoot : string = null

the path of the document root of the site

$scriptName : string = null

the PHP script name: path in the url from the domain name to the script itself

Return values
mixed

setHttpRequest()

public setHttpRequest(string $url[, string $method = 'get' ][, string|array<string|int, mixed> $body = '' ][, mixed $bodyContentType = 'application/x-www-form-urlencoded' ]) : mixed
Parameters
$url : string
$method : string = 'get'

the http method (get, post...)

$body : string|array<string|int, mixed> = ''

the content of the request for http method that need it it can be an array

$bodyContentType : mixed = 'application/x-www-form-urlencoded'
Return values
mixed

setDefaultServer()

protected setDefaultServer() : mixed
Return values
mixed

Search results