Zend is a collection of LDAP attribute related functions.
More...
|
static | setAttribute (array &$data, $attribName, $value, $append=false) |
| Sets a LDAP attribute.
|
|
static | getAttribute (array $data, $attribName, $index=null) |
| Gets a LDAP attribute.
|
|
static | attributeHasValue (array &$data, $attribName, $value) |
| Checks if the given value(s) exist in the attribute.
|
|
static | removeDuplicatesFromAttribute (array &$data, $attribName) |
| Removes duplicate values from a LDAP attribute.
|
|
static | removeFromAttribute (array &$data, $attribName, $value) |
| Remove given values from a LDAP attribute.
|
|
static | setPassword (array &$data, $password, $hashType=self::PASSWORD_HASH_MD5, $attribName=null) |
| Sets a LDAP password.
|
|
static | createPassword ($password, $hashType=self::PASSWORD_HASH_MD5) |
| Creates a LDAP password.
|
|
static | setDateTimeAttribute (array &$data, $attribName, $value, $utc=false, $append=false) |
| Sets a LDAP date/time attribute.
|
|
static | getDateTimeAttribute (array $data, $attribName, $index=null) |
| Gets a LDAP date/time attribute.
|
|
Zend is a collection of LDAP attribute related functions.
static attributeHasValue |
( |
array & |
$data, |
|
|
|
$attribName, |
|
|
|
$value |
|
) |
| |
|
static |
Checks if the given value(s) exist in the attribute.
- Parameters
-
array | $data | |
string | $attribName | |
mixed | array | $value | |
- Returns
- bool
static createPassword |
( |
|
$password, |
|
|
|
$hashType = self::PASSWORD_HASH_MD5 |
|
) |
| |
|
static |
Creates a LDAP password.
- Parameters
-
string | $password | |
string | $hashType | |
- Returns
- string
static getAttribute |
( |
array |
$data, |
|
|
|
$attribName, |
|
|
|
$index = null |
|
) |
| |
|
static |
Gets a LDAP attribute.
- Parameters
-
array | $data | |
string | $attribName | |
int | $index | |
- Returns
- array|mixed
static getDateTimeAttribute |
( |
array |
$data, |
|
|
|
$attribName, |
|
|
|
$index = null |
|
) |
| |
|
static |
Gets a LDAP date/time attribute.
- Parameters
-
array | $data | |
string | $attribName | |
int | $index | |
- Returns
- array|int
static removeDuplicatesFromAttribute |
( |
array & |
$data, |
|
|
|
$attribName |
|
) |
| |
|
static |
Removes duplicate values from a LDAP attribute.
- Parameters
-
array | $data | |
string | $attribName | |
- Returns
- void
static removeFromAttribute |
( |
array & |
$data, |
|
|
|
$attribName, |
|
|
|
$value |
|
) |
| |
|
static |
Remove given values from a LDAP attribute.
- Parameters
-
array | $data | |
string | $attribName | |
mixed | array | $value | |
- Returns
- void
static setAttribute |
( |
array & |
$data, |
|
|
|
$attribName, |
|
|
|
$value, |
|
|
|
$append = false |
|
) |
| |
|
static |
Sets a LDAP attribute.
- Parameters
-
array | $data | |
string | $attribName | |
string | array | \Traversable | $value | |
bool | $append | |
- Returns
- void
static setDateTimeAttribute |
( |
array & |
$data, |
|
|
|
$attribName, |
|
|
|
$value, |
|
|
|
$utc = false , |
|
|
|
$append = false |
|
) |
| |
|
static |
Sets a LDAP date/time attribute.
- Parameters
-
array | $data | |
string | $attribName | |
int | array | \Traversable | $value | |
bool | $utc | |
bool | $append | |
static setPassword |
( |
array & |
$data, |
|
|
|
$password, |
|
|
|
$hashType = self::PASSWORD_HASH_MD5 , |
|
|
|
$attribName = null |
|
) |
| |
|
static |
Sets a LDAP password.
- Parameters
-
array | $data | |
string | $password | |
string | $hashType | Optional by default MD5 |
string | $attribName | Optional |
const PASSWORD_HASH_MD5 = 'md5' |
const PASSWORD_HASH_SHA = 'sha' |
const PASSWORD_HASH_SMD5 = 'smd5' |
const PASSWORD_HASH_SSHA = 'ssha' |
const PASSWORD_UNICODEPWD = 'unicodePwd' |