|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| SimpleAttachment ($key, $content, $filename) | |
| asRequest () | |
| asMime () | |
| _deduceMimeType () | |
| _isOnlyAscii ($ascii) | |
| isKey ($key) | |
| getKey () | |
| getValue () | |
Data Fields | |
| $_key | |
| $_content | |
| $_filename | |
Definition at line 89 of file encoding.php.
| _deduceMimeType | ( | ) |
Attempts to figure out the MIME type from the file extension and the content.
Definition at line 135 of file encoding.php.


| _isOnlyAscii | ( | $ | ascii | ) |
Tests each character is in the range 0-127.
| string | $ascii | String to test. private |
Definition at line 147 of file encoding.php.

| asMime | ( | ) |
The MIME part as a string.
Definition at line 120 of file encoding.php.

| asRequest | ( | ) |
The pair as a single string.
Definition at line 111 of file encoding.php.
| getKey | ( | ) |
Is this the value we are looking for?
Definition at line 171 of file encoding.php.
| getValue | ( | ) |
Is this the value we are looking for?
Definition at line 180 of file encoding.php.
| isKey | ( | $ | key | ) |
Is this the value we are looking for?
| string | $key | Identifier. |
Definition at line 162 of file encoding.php.
| SimpleAttachment | ( | $ | key, |
| $ | content, | ||
| $ | filename | ||
| ) |
Stashes the data for rendering later.
| string | $key | Key to add value to. |
| string | $content | Raw data. |
| hash | $filename | Original filename. |
Definition at line 100 of file encoding.php.
| $_content |
Definition at line 91 of file encoding.php.
| $_filename |
Definition at line 92 of file encoding.php.
| $_key |
Definition at line 90 of file encoding.php.