Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Zend_Ldap_Attribute is a collection of LDAP attribute related functions.
PASSWORD_HASH_MD5 = 'md5'
PASSWORD_HASH_SMD5 = 'smd5'
PASSWORD_HASH_SHA = 'sha'
PASSWORD_HASH_SSHA = 'ssha'
PASSWORD_UNICODEPWD = 'unicodePwd'
_valueFromLdap(
string $value
)
:
mixed
_valueFromLdapDateTime(
string|DateTime $value
)
:
integer|null
_valueToLdap(
mixed $value
)
:
string|null
_valueToLdapDateTime(
integer $value, boolean $utc
)
:
string|null
attributeHasValue(
array $data, string $attribName, mixed|array $value
)
:
boolean
Checks if the given value(s) exist in the attribute
convertFromLdapDateTimeValue(
string $value
)
:
integer|null
Converts LDAP date/time representation into a timestamp
convertFromLdapValue(
string $value
)
:
mixed
Converts an LDAP value into its PHP data type
convertToLdapDateTimeValue(
integer $value, boolean $utc
=
false
)
:
string|null
Converts a timestamp into its LDAP date/time representation
convertToLdapValue(
mixed $value
)
:
string|null
Converts a PHP data type into its LDAP representation
createPassword(
string $password, string $hashType
=
self
)
:
string
Creates a LDAP password.
getAttribute(
array $data, string $attribName, integer $index
=
null
)
:
array|mixed
Gets a LDAP attribute.
getDateTimeAttribute(
array $data, string $attribName, integer $index
=
null
)
:
array|integer
Gets a LDAP date/time attribute.
removeDuplicatesFromAttribute(
array $data, string $attribName
)
:
void
Removes duplicate values from a LDAP attribute
removeFromAttribute(
array $data, string $attribName, mixed|array $value
)
:
void
Remove given values from a LDAP attribute
setAttribute(
array $data, string $attribName, scalar|array|Traversable $value, boolean $append
=
false
)
:
void
Sets a LDAP attribute.
setDateTimeAttribute(
array $data, string $attribName, integer|array|Traversable $value, boolean $utc
=
false, boolean $append
=
false
)
:
null
Sets a LDAP date/time attribute.
setPassword(
array $data, string $password, string $hashType
=
self, string|null $attribName
=
null
)
:
null
Sets a LDAP password.