Zend Framework
1.12
|
Static Public Member Functions | |
static | ascToHex32 ($string) |
Converts all ASCII chars < 32 to "\HEX". | |
static | hex32ToAsc ($string) |
Converts all Hex expressions ("\HEX") to their original ASCII characters. | |
static | toLdap ($value, $type=self::STANDARD) |
Convert any value to an LDAP-compatible value. | |
static | toLdapDateTime ($date, $asUtc=true) |
Converts a date-entity to an LDAP-compatible date-string. | |
static | toLdapBoolean ($value) |
Convert a boolean value to an LDAP-compatible string. | |
static | toLdapSerialize ($value) |
Serialize any value for storage in LDAP. | |
static | fromLdap ($value, $type=self::STANDARD, $dateTimeAsUtc=true) |
Convert an LDAP-compatible value to a corresponding PHP-value. | |
static | fromLdapDateTime ($date, $asUtc=true) |
Convert an LDAP-Generalized-Time-entry into a DateTime-Object. | |
static | fromLdapBoolean ($value) |
Convert an LDAP-compatible boolean value into a PHP-compatible one. | |
static | fromLdapUnserialize ($value) |
Unserialize a serialized value to return the corresponding object. | |
Public Attributes | |
const | STANDARD = 0 |
const | BOOLEAN = 1 |
const | GENERALIZED_TIME = 2 |
|
static |
Converts all ASCII chars < 32 to "\HEX".
|
static |
Convert an LDAP-compatible value to a corresponding PHP-value.
By setting the $type-parameter the conversion of a certain type can be forced
string | $value | The value to convert |
int | $ytpe | The conversion type to use |
boolean | $dateTimeAsUtc | Return DateTime values in UTC timezone |
Zend_Ldap_Converter_Exception |
|
static |
Convert an LDAP-compatible boolean value into a PHP-compatible one.
string | $value | The value to convert |
InvalidArgumentException |
|
static |
Convert an LDAP-Generalized-Time-entry into a DateTime-Object.
CAVEAT: The DateTime-Object returned will alwasy be set to UTC-Timezone.
string | $date | The generalized-Time |
boolean | $asUtc | Return the DateTime with UTC timezone |
InvalidArgumentException | if a non-parseable-format is given |
|
static |
Unserialize a serialized value to return the corresponding object.
string | $value | The value to convert |
UnexpectedValueException |
|
static |
Converts all Hex expressions ("\HEX") to their original ASCII characters.
|
static |
Convert any value to an LDAP-compatible value.
By setting the $type-parameter the conversion of a certain type can be forced
mixed | $value | The value to convert |
int | $ytpe | The conversion type to use |
Zend_Ldap_Converter_Exception |
|
static |
Convert a boolean value to an LDAP-compatible string.
This converts a boolean value of TRUE, an integer-value of 1 and a case-insensitive string 'true' to an LDAP-compatible 'TRUE'. All other other values are converted to an LDAP-compatible 'FALSE'.
boolean | integer | string | $value | The boolean value to encode |
|
static |
Converts a date-entity to an LDAP-compatible date-string.
The date-entity $date can be either a timestamp, a DateTime Object, a string that is parseable by strtotime() or a Zend_Date Object.
integer | string | DateTimt | Zend_Date | $date | The date-entity |
boolean | $asUtc | Whether to return the LDAP-compatible date-string as UTC or as local value |
InvalidArgumentException |
|
static |
Serialize any value for storage in LDAP.
mixed | $value | The value to serialize |
const BOOLEAN = 1 |
const GENERALIZED_TIME = 2 |
const STANDARD = 0 |