PHP 클래스 Horde_ActiveSync_Utils, horde

저자: Michael J Rubinsky ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
createGoid ( string $uid, $options = [] ) : string Create a MAPI GOID from a UID See http://msdn.microsoft.com/en-us/library/ee157690%28v=exchg.80%29
decodeBase64 ( $uri ) : array Decode a base64 encoded URI
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.
getUidFromGoid ( string $goid ) : string Obtain the UID from a MAPI GOID.

보호된 메소드들

메소드 설명
_stripNon7BitChars ( string $text ) : string | boolean Strip out non 7Bit characters from a text string.

메소드 상세

_stripNon7BitChars() 보호된 정적인 메소드

Strip out non 7Bit characters from a text string.
protected static _stripNon7BitChars ( string $text ) : string | boolean
$text string The string to strip.
리턴 string | boolean The stripped string, or false if failed.

createGoid() 공개 정적인 메소드

Create a MAPI GOID from a UID See http://msdn.microsoft.com/en-us/library/ee157690%28v=exchg.80%29
사용 중단: Will be removed in H6. Use Horde_Mapi::createGoid
public static createGoid ( string $uid, $options = [] ) : string
$uid string The UID value to encode.
리턴 string A Base64 encoded GOID

decodeBase64() 공개 정적인 메소드

Decode a base64 encoded URI
public static decodeBase64 ( $uri ) : array
리턴 array The decoded request

ensureUtf8() 공개 정적인 메소드

..and force encoding to UTF-8 from $from_charset as a last resort.
public static ensureUtf8 ( string $data, string $from_charset ) : string
$data string The string data to convert to UTF-8.
$from_charset string The character set to assume $data is encoded in.
리턴 string A valid UTF-8 encoded string.

getUidFromGoid() 공개 정적인 메소드

See http://msdn.microsoft.com/en-us/library/hh338153%28v=exchg.80%29.aspx
사용 중단: Will be removed in H6. Use Horde_Mapi::getUidFromGoid
public static getUidFromGoid ( string $goid ) : string
$goid string Base64 encoded Global Object Identifier.
리턴 string The UID