Moodle  2.2.1
http://www.collinsharper.com
SimpleEncoding Class Reference
Inheritance diagram for SimpleEncoding:

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

Detailed Description

Definition at line 191 of file encoding.php.


Member Function Documentation

_addPair ( key,
value 
)

Adds a new value into the request.

Parameters:
string$keyKey to add value to.
string/array$value New data. private

Definition at line 242 of file encoding.php.

Here is the caller graph for this function:

_encode ( )

Renders the query string as a URL encoded request part.

Returns:
string Part of URL. protected

Reimplemented in SimpleMultipartEncoding.

Definition at line 312 of file encoding.php.

Here is the caller graph for this function:

add ( key,
value 
)

Adds a parameter to the query.

Parameters:
string$keyKey to add value to.
string/array$value New data. public

Definition at line 223 of file encoding.php.

Here is the call graph for this function:

Here is the caller graph for this function:

attach ( key,
content,
filename 
)

Adds a MIME part to the query. Does nothing for a form encoded packet.

Parameters:
string$keyKey to add value to.
string$contentRaw data.
hash$filenameOriginal 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.

Here is the caller graph for this function:

getAll ( )

Accessor for listing of pairs.

Returns:
array All pair objects. public

Definition at line 302 of file encoding.php.

getValue ( key)

Accessor for single value.

Returns:
string/array False if missing, string if present and array if multiple entries. public

Definition at line 281 of file encoding.php.

merge ( query)

Adds a set of parameters to this query.

Parameters:
array/SimpleQueryString$query Multiple values are as lists on a single key. public

Definition at line 264 of file encoding.php.

Here is the call graph for this function:

Here is the caller graph for this function:

SimpleEncoding ( query = false)

Starts empty.

Parameters:
array$queryHash of parameters. Multiple values are as lists on a single key. public

Definition at line 201 of file encoding.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

$_request

Definition at line 192 of file encoding.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations