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'
Details PASSWORD_HASH_SMD5 = 'smd5'
Details PASSWORD_HASH_SHA = 'sha'
Details PASSWORD_HASH_SSHA = 'ssha'
Details PASSWORD_UNICODEPWD = 'unicodePwd'
Details_valueFromLdap(
string $value
)
:
mixed
Details_valueFromLdapDateTime(
string|DateTime $value
)
:
integer|null
Details_valueToLdap(
mixed $value
)
:
string|null
Details_valueToLdapDateTime(
integer $value, boolean $utc
)
:
string|null
DetailsattributeHasValue(
array $data, string $attribName, mixed|array $value
)
:
booleanChecks if the given value(s) exist in the attribute
DetailsconvertFromLdapDateTimeValue(
string $value
)
:
integer|nullConverts LDAP date/time representation into a timestamp
DetailsconvertFromLdapValue(
string $value
)
:
mixedConverts an LDAP value into its PHP data type
DetailsconvertToLdapDateTimeValue(
integer $value, boolean $utc
=
false
)
:
string|nullConverts a timestamp into its LDAP date/time representation
DetailsconvertToLdapValue(
mixed $value
)
:
string|nullConverts a PHP data type into its LDAP representation
DetailscreatePassword(
string $password, string $hashType
=
self
)
:
stringCreates a LDAP password.
DetailsgetAttribute(
array $data, string $attribName, integer $index
=
null
)
:
array|mixedGets a LDAP attribute.
DetailsgetDateTimeAttribute(
array $data, string $attribName, integer $index
=
null
)
:
array|integerGets a LDAP date/time attribute.
DetailsremoveDuplicatesFromAttribute(
array $data, string $attribName
)
:
voidRemoves duplicate values from a LDAP attribute
DetailsremoveFromAttribute(
array $data, string $attribName, mixed|array $value
)
:
voidRemove given values from a LDAP attribute
DetailssetAttribute(
array $data, string $attribName, scalar|array|Traversable $value, boolean $append
=
false
)
:
voidSets a LDAP attribute.
DetailssetDateTimeAttribute(
array $data, string $attribName, integer|array|Traversable $value, boolean $utc
=
false, boolean $append
=
false
)
:
nullSets a LDAP date/time attribute.
DetailssetPassword(
array $data, string $password, string $hashType
=
self, string|null $attribName
=
null
)
:
nullSets a LDAP password.
Details