Class MOXMAN_Http_HttpClientFormData

InheritanceMOXMAN_Http_HttpClientFormData

Contains the data to be sent to forms like multipart data.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Constructs a new http client form data instance. MOXMAN_Http_HttpClientFormData
getItems() Returns the items inside the form data. MOXMAN_Http_HttpClientFormData
hasFileData() Returns true/false if the object has an file data. MOXMAN_Http_HttpClientFormData
put() Sets a key/value string item to the client form instance. MOXMAN_Http_HttpClientFormData
putFile() Sets a key/value file item. MOXMAN_Http_HttpClientFormData

Method Details

__construct() public method

Constructs a new http client form data instance.

public void __construct ( )
getItems() public method

Returns the items inside the form data.

public Array getItems ( )
return Array

Form items.

hasFileData() public method

Returns true/false if the object has an file data.

public boolean hasFileData ( )
return boolean

True/false if this instance has file data or not.

put() public method

Sets a key/value string item to the client form instance.

public \Instance put ( $name, $value )
$name string

Name of the form item to set.

$value string

Value of the form item.

return \Instance

To self for chainability.

putFile() public method

Sets a key/value file item.

public \Instance putFile ( $name, $path, $filename "", $mime "application/octet-stream" )
$name string

Name of the field to set.

$path string

Local file system path to file to send.

$filename string

File name to send file as.

$mime string

Mime type to upload file as.

return \Instance

To self for chainability.