|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| SimpleEncoding ($query=false) | |
| clear () | |
| add ($key, $value) | |
| _addPair ($key, $value) | |
| attach ($key, $content, $filename) | |
| merge ($query) | |
| getValue ($key) | |
| getAll () | |
| _encode () | |
Data Fields | |
| $_request | |
Definition at line 191 of file encoding.php.
| _addPair | ( | $ | key, |
| $ | value | ||
| ) |
Adds a new value into the request.
| string | $key | Key to add value to. |
| string/array | $value New data. private |
Definition at line 242 of file encoding.php.

| _encode | ( | ) |
Renders the query string as a URL encoded request part.
Reimplemented in SimpleMultipartEncoding.
Definition at line 312 of file encoding.php.

| add | ( | $ | key, |
| $ | value | ||
| ) |
Adds a parameter to the query.
| string | $key | Key to add value to. |
| string/array | $value New data. public |
Definition at line 223 of file encoding.php.


| attach | ( | $ | key, |
| $ | content, | ||
| $ | filename | ||
| ) |
Adds a MIME part to the query. Does nothing for a form encoded packet.
| string | $key | Key to add value to. |
| string | $content | Raw data. |
| hash | $filename | Original filename. public |
Definition at line 254 of file encoding.php.
| clear | ( | ) |
Empties the request of parameters. public
Definition at line 213 of file encoding.php.

| getAll | ( | ) |
Accessor for listing of pairs.
Definition at line 302 of file encoding.php.
| getValue | ( | $ | key | ) |
Accessor for single value.
Definition at line 281 of file encoding.php.
| merge | ( | $ | query | ) |
Adds a set of parameters to this query.
| array/SimpleQueryString | $query Multiple values are as lists on a single key. public |
Definition at line 264 of file encoding.php.


| SimpleEncoding | ( | $ | query = false | ) |
Starts empty.
| array | $query | Hash of parameters. Multiple values are as lists on a single key. public |
Definition at line 201 of file encoding.php.


| $_request |
Definition at line 192 of file encoding.php.