__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
string
checkDn(string $dn, array $keys, array $vals, string $caseFold) : bool
string
The DN to parse
array
An optional array to receive DN keys (e.g. CN, OU, DC, ...)
array
An optional array to receive DN values
string
bool
True 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 preceded 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 |
stringarray
An array containing the DN values that should be escaped
array
The 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
array
An optional array to receive DN keys (e.g. CN, OU, DC, ...)
array
An optional array to receive DN values
string
\Zend\Ldap\Exception\LdapException |
---|
array
factory(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 |
---|
array
getRdn(string $caseFold) : array
string
\Zend\Ldap\Exception\LdapException |
if DN has no RDN (empty array) |
---|
array
getRdnString(string $caseFold) : string
string
\Zend\Ldap\Exception\LdapException |
if DN has no RDN (empty array) |
---|
string
implodeDn(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 |
---|
string
implodeRdn(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 |
---|
string
insert(int $index, array $value) : \Zend\Ldap\Dn
int
array
\Zend\Ldap\Exception\LdapException |
if index is illegal |
---|
\Zend\Ldap\Dn
Provides a fluent interfaceisChildOf(string | \Zend\Ldap\Dn $childDn, string | \Zend\Ldap\Dn $parentDn) : bool
offsetExists(int $offset) : bool
int
bool
offsetGet(int $offset) : array
int
array
offsetSet(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\Dn
Provides a fluent interfaceset(int $index, array $value) : \Zend\Ldap\Dn
int
array
\Zend\Ldap\Exception\LdapException |
if index is illegal |
---|
\Zend\Ldap\Dn
Provides a fluent interfacesetCaseFold(string | null $caseFold)
stringnull
setDefaultCaseFold(string $caseFold)
string
toArray(string $caseFold) : array
string
array
toString(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 |
stringarray
Array of DN Values
array
Same 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
array
caseFoldRdn(array $part, string $caseFold) : array
array
string
array
sanitizeCaseFold(string $caseFold, string $default) : string
string
string
string
$caseFold : string
$defaultCaseFold : string
$dn : array
ATTR_CASEFOLD_LOWER
ATTR_CASEFOLD_NONE
ATTR_CASEFOLD_UPPER