|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| __construct ($preserve=false) | |
| encode ($string) | |
| normalize ($string) | |
Protected Attributes | |
| $preserve = array() | |
Class that handles operations involving percent-encoding in URIs.
Definition at line 11 of file PercentEncoder.php.
| __construct | ( | $ | preserve = false | ) |
String of characters that should be preserved while using encode().
Definition at line 22 of file PercentEncoder.php.
| encode | ( | $ | string | ) |
Our replacement for urlencode, it encodes all non-reserved characters, as well as any extra characters that were instructed to be preserved.
| $string | String to be encoded |
Definition at line 50 of file PercentEncoder.php.
| normalize | ( | $ | string | ) |
Fix up percent-encoding by decoding unreserved characters and normalizing.
| $string | String to normalize |
Definition at line 69 of file PercentEncoder.php.
$preserve = array() [protected] |
Reserved characters to preserve when using encode().
Definition at line 17 of file PercentEncoder.php.