Class MOXMAN_Http_HttpClientFormData
Inheritance | MOXMAN_Http_HttpClientFormData |
---|
Contains the data to be sent to forms like multipart data.
Public Methods
Method | Description | Defined 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
Constructs a new http client form data instance.
public void __construct ( ) |
Returns the items inside the form data.
public Array getItems ( ) | ||
return | Array | Form items. |
---|
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. |
---|
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. |
---|
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. |
---|