decodeBase64()
decodeBase64( $uri) : array
Decode a base64 encoded URI
Parameters
$uri |
Returns
array —The decoded request
Horde_ActiveSync_Utils:: contains general utilities.
getUidFromGoid(string $goid) : string
Obtain the UID from a MAPI GOID.
See http://msdn.microsoft.com/en-us/library/hh338153%28v=exchg.80%29.aspx
string | $goid | Base64 encoded Global Object Identifier. |
The UID
createGoid(string $uid, $options = array()) : string
Create a MAPI GOID from a UID See http://msdn.microsoft.com/en-us/library/ee157690%28v=exchg.80%29
string | $uid | The UID value to encode. |
$options |
A Base64 encoded GOID
None found |
ensureUtf8(string $data, string $from_charset) : string
Ensure $data is converted to valid UTF-8 data. Works as follows: Converts to UTF-8, assuming data is in $from_charset encoding. If that produces invalid UTF-8, attempt to convert to most common mulitibyte encodings. If that *still* fails, strip out non 7-Bit characters.
..and force encoding to UTF-8 from $from_charset as a last resort.
string | $data | The string data to convert to UTF-8. |
string | $from_charset | The character set to assume $data is encoded in. |
A valid UTF-8 encoded string.
None found |