Index Documentation

FormContent
in package
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

Methods

__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
Return values
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>
Return values
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
Return values
string

hasParam()

public hasParam(string $name) : bool
Parameters
$name : string
Return values
bool

hasUploadedFile()

public hasUploadedFile(string $name) : bool
Parameters
$name : string
Return values
bool

        
On this page

Search results