Zend\Ldap\Converter\Converter
Zend\Ldap\Converter is a collection of useful LDAP related conversion functions.
Synopsis
class Converter
{
- // constants
- const STANDARD = 0;
- const BOOLEAN = 1;
- const GENERALIZED_TIME = 2;
}
Tasks
Line |
Task |
83+ |
write more tests |
Constants
Name |
Value |
STANDARD |
0 |
BOOLEAN |
1 |
GENERALIZED_TIME |
2 |
Methods
public
- ascToHex32()
— Converts all ASCII chars < 32 to "\HEX"
- fromLdap()
— Convert an LDAP-compatible value to a corresponding PHP-value.
- fromLdapBoolean()
— Convert an LDAP-compatible boolean value into a PHP-compatible one
- fromLdapDateTime()
— Convert an LDAP-Generalized-Time-entry into a DateTime-Object
- fromLdapUnserialize()
— Unserialize a serialized value to return the corresponding object
- hex32ToAsc()
— Converts all Hex expressions ("\HEX") to their original ASCII characters
- toLdap()
— Convert any value to an LDAP-compatible value.
- toLdapBoolean()
— Convert a boolean value to an LDAP-compatible string
- toLdapDateTime()
— Converts a date-entity to an LDAP-compatible date-string
- toLdapSerialize()
— Serialize any value for storage in LDAP