class Request

Http Request Handler

Methods

static Ambiguous
get(string $method = "post", string $root = "jtlrpc")

Http Request Getter

static string
getMethod()

Returns Http Request method

static boolean
exists(string $method = "post", string $root = "jtlrpc")

Http Request Check

static boolean
isFileupload(string $name = "jtlrpc")

Tells whether the file was uploaded via HTTP POST

static boolean
moveFileupload(string $path, string $filename, string $name = "jtlrpc")

Moves an uploaded file to a new location

static string
stripData(string $data)

Checks getmagicquotes_gpc

static string|NULL
handleFileupload(string $name = "file")

File Upload Handler

static 
deleteFileupload(string $filename)

Delete File

static bool
deleteFileuploads(array $filesnames = array(), bool|true $withFolder = true)

No description

static string|null
handle(boolean $useSuper = true)

Main HTTP Handler

static string|NULL
getSession()

Session HTTP Getter

Details

at line 31
static Ambiguous get(string $method = "post", string $root = "jtlrpc")

Http Request Getter

Parameters

string $method
string $root

Return Value

Ambiguous <NULL, string>

Exceptions

HttpException

at line 54
static string getMethod()

Returns Http Request method

Return Value

string

at line 66
static boolean exists(string $method = "post", string $root = "jtlrpc")

Http Request Check

Parameters

string $method
string $root

Return Value

boolean

at line 88
static boolean isFileupload(string $name = "jtlrpc")

Tells whether the file was uploaded via HTTP POST

Parameters

string $name

Return Value

boolean

at line 101
static boolean moveFileupload(string $path, string $filename, string $name = "jtlrpc")

Moves an uploaded file to a new location

Parameters

string $path
string $filename
string $name

Return Value

boolean

at line 112
static string stripData(string $data)

Checks getmagicquotes_gpc

Parameters

string $data

Return Value

string

at line 128
static string|NULL handleFileupload(string $name = "file")

File Upload Handler

Parameters

string $name

Return Value

string|NULL

Exceptions

HttpException

at line 156
static deleteFileupload(string $filename)

Delete File

Parameters

string $filename

at line 170
static bool deleteFileuploads(array $filesnames = array(), bool|true $withFolder = true)

Parameters

array $filesnames
bool|true $withFolder

Return Value

bool

at line 201
static string|null handle(boolean $useSuper = true)

Main HTTP Handler

Parameters

boolean $useSuper

Return Value

string|null

Exceptions

CompressionException
HttpException

at line 252
static string|NULL getSession()

Session HTTP Getter

Return Value

string|NULL