Moodle  2.2.1
http://www.collinsharper.com
SimpleEncodedPair Class Reference

Public Member Functions

 SimpleEncodedPair ($key, $value)
 asRequest ()
 asMime ()
 isKey ($key)
 getKey ()
 getValue ()

Data Fields

 $_key
 $_value

Detailed Description

Definition at line 20 of file encoding.php.


Member Function Documentation

asMime ( )

The MIME part as a string.

Returns:
string MIME part encoding. public

Definition at line 48 of file encoding.php.

asRequest ( )

The pair as a single string.

Returns:
string Encoded pair. public

Definition at line 39 of file encoding.php.

getKey ( )

Is this the value we are looking for?

Returns:
string Identifier. public

Definition at line 70 of file encoding.php.

getValue ( )

Is this the value we are looking for?

Returns:
string Content. public

Definition at line 79 of file encoding.php.

isKey ( key)

Is this the value we are looking for?

Parameters:
string$keyIdentifier.
Returns:
boolean True if matched. public

Definition at line 61 of file encoding.php.

SimpleEncodedPair ( key,
value 
)

Stashes the data for rendering later.

Parameters:
string$keyForm element name.
string$valueData to send.

Definition at line 29 of file encoding.php.


Field Documentation

$_key

Definition at line 21 of file encoding.php.

$_value

Definition at line 22 of file encoding.php.


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