__toString()
append()
checkDn()
escapeValue()
explodeDn()
factory()
fromArray()
fromString()
get()
getParentDn()
getRdn()
getRdnString()
implodeDn()
implodeRdn()
insert()
isChildOf()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
prepend()
remove()
set()
setCaseFold()
setDefaultCaseFold()
toArray()
toString()
unescapeValue()
__construct()
assertIndex()
assertRdn()
caseFoldDn()
caseFoldRdn()
sanitizeCaseFold()
$caseFold
$defaultCaseFold
$dn
ATTR_CASEFOLD_LOWER
ATTR_CASEFOLD_NONE
ATTR_CASEFOLD_UPPER
Zend\Ldap\Dn provides an API for DN manipulation
__toString() : string
stringcheckDn(string $dn, array $keys, array $vals, string $caseFold) : bool
stringThe DN to parse
arrayAn optional array to receive DN keys (e.g. CN, OU, DC, ...)
arrayAn optional array to receive DN values
string
boolTrue if the DN was successfully parsed or false if the string is not a valid DN.escapeValue(string | array $values) : array
Escapes the given VALUES according to RFC 2253 so that they can be safely used in LDAP DNs. The characters ",", "+", """, "\", "<", ">", ";", "#", " = " with a special meaning in RFC 2252 are preceeded by ba backslash. Control characters with an ASCII code < 32 are represented as \hexpair. Finally all leading and trailing spaces are converted to sequences of \20.
| see | \Zend\Ldap\Net_LDAP2_Util::escape_dn_value() |
|---|---|
| link | http://pear.php.net/package/Net_LDAP2 |
| author | Benedikt Hallinger |
stringarrayAn array containing the DN values that should be escaped
arrayThe array $values, but escapedexplodeDn(string $dn, array $keys, array $vals, string $caseFold) : array
Array will be of type array( array("cn" => "name1", "uid" => "user"), array("cn" => "name2"), array("dc" => "example"), array("dc" => "org") ) for a DN of cn=name1+uid=user,cn=name2,dc=example,dc=org.
string
arrayAn optional array to receive DN keys (e.g. CN, OU, DC, ...)
arrayAn optional array to receive DN values
string
\Zend\Ldap\Exception\LdapException |
|---|
arrayfactory(string | array $dn, string | null $caseFold) : \Zend\Ldap\Dn
stringarray
stringnull
\Zend\Ldap\Exception\LdapException |
|---|
fromArray(array $dn, string | null $caseFold) : \Zend\Ldap\Dn
fromString(string $dn, string | null $caseFold) : \Zend\Ldap\Dn
get(int $index, int $length, string $caseFold) : array
int
int
string
\Zend\Ldap\Exception\LdapException |
if index is illegal |
|---|
arraygetRdn(string $caseFold) : array
string
\Zend\Ldap\Exception\LdapException |
if DN has no RDN (empty array) |
|---|
arraygetRdnString(string $caseFold) : string
string
\Zend\Ldap\Exception\LdapException |
if DN has no RDN (empty array) |
|---|
stringimplodeDn(array $dnArray, string $caseFold, string $separator) : string
$dnArray must be of type array( array("cn" => "name1", "uid" => "user"), array("cn" => "name2"), array("dc" => "example"), array("dc" => "org") )
array
string
string
\Zend\Ldap\Exception\LdapException |
|---|
stringimplodeRdn(array $part, string $caseFold) : string
This method supports the creation of multi-valued RDNs $part must contain an even number of elements.
array
string
\Zend\Ldap\Exception\LdapException |
|---|
stringinsert(int $index, array $value) : \Zend\Ldap\Dn
int
array
\Zend\Ldap\Exception\LdapException |
if index is illegal |
|---|
\Zend\Ldap\DnProvides a fluent interfaceisChildOf(string | \Zend\Ldap\Dn $childDn, string | \Zend\Ldap\Dn $parentDn) : bool
offsetExists(int $offset) : bool
int
booloffsetGet(int $offset) : array
int
arrayoffsetSet(int $offset, array $value)
int
array
offsetUnset(int $offset)
int
remove(int $index, int $length) : \Zend\Ldap\Dn
int
int
\Zend\Ldap\Exception\LdapException |
if index is illegal |
|---|
\Zend\Ldap\DnProvides a fluent interfaceset(int $index, array $value) : \Zend\Ldap\Dn
int
array
\Zend\Ldap\Exception\LdapException |
if index is illegal |
|---|
\Zend\Ldap\DnProvides a fluent interfacesetCaseFold(string | null $caseFold)
stringnull
setDefaultCaseFold(string $caseFold)
string
toArray(string $caseFold) : array
string
arraytoString(string $caseFold) : string
unescapeValue(string | array $values) : array
Any escape sequence starting with a baskslash - hexpair or special character - will be transformed back to the corresponding character.
| see | \Zend\Ldap\Net_LDAP2_Util::escape_dn_value() |
|---|---|
| link | http://pear.php.net/package/Net_LDAP2 |
| author | Benedikt Hallinger |
stringarrayArray of DN Values
arraySame as $values, but unescaped__construct(array $dn, string | null $caseFold)
array
stringnull
assertIndex(mixed $index) : bool
assertRdn(array $value) : bool
caseFoldDn(array $dn, string $caseFold) : array
array
string
arraycaseFoldRdn(array $part, string $caseFold) : array
array
string
arraysanitizeCaseFold(string $caseFold, string $default) : string
string
string
string$caseFold : string
$defaultCaseFold : string
$dn : array
ATTR_CASEFOLD_LOWER
ATTR_CASEFOLD_NONE
ATTR_CASEFOLD_UPPER