FormContent
implements
IHttpContent
Table of Contents
Interfaces
- IHttpContent
Methods
-
__construct()
: mixed
-
__toString()
: string
-
fromRaw()
: FormContent
-
fromRequest()
: FormContent
-
getParam()
: mixed
-
getParams()
: array<string|int, mixed>
-
getParamString()
: string
-
getUploadedFile()
: HttpUploadedFile
-
hasParam()
: bool
-
hasUploadedFile()
: bool
__construct()
public
__construct(array<string|int, mixed> $postFields, array<string|int, mixed> $uploadedFiles) : mixed
Parameters
-
$postFields
: array<string|int, mixed>
-
-
$uploadedFiles
: array<string|int, mixed>
-
__toString()
public
__toString() : string
fromRaw()
public
static fromRaw(array<string|int, mixed> $post, array<string|int, mixed> $files) : FormContent
Parameters
-
$post
: array<string|int, mixed>
-
-
$files
: array<string|int, mixed>
-
fromRequest()
public
static fromRequest() : FormContent
getParam()
public
getParam(string $name[, int $filter = FILTER_DEFAULT ][, array<string|int, mixed>|int $options = 0 ]) : mixed
Parameters
-
$name
: string
-
-
$filter
: int
= FILTER_DEFAULT
-
-
$options
: array<string|int, mixed>|int
= 0
-
getParams()
public
getParams() : array<string|int, mixed>
Return values
array<string|int, mixed>
getParamString()
public
getParamString([bool $spacesAsPlus = false ]) : string
Parameters
-
$spacesAsPlus
: bool
= false
-
getUploadedFile()
public
getUploadedFile(string $name) : HttpUploadedFile
Parameters
-
$name
: string
-
hasParam()
public
hasParam(string $name) : bool
Parameters
-
$name
: string
-
hasUploadedFile()
public
hasUploadedFile(string $name) : bool
Parameters
-
$name
: string
-