PHP 클래스 Zend_Ldap_Attribute

파일 보기 프로젝트 열기: kimai/kimai 1 사용 예제들

공개 메소드들

메소드 설명
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::PASSWORD_HASH_MD5 ) : 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::PASSWORD_HASH_MD5, string | null $attribName = null ) : null Sets a LDAP password.

비공개 메소드들

메소드 설명
_valueFromLdap ( string $value ) : mixed
_valueFromLdapDateTime ( string | DateTime $value ) : integer | null
_valueToLdap ( mixed $value ) : string | null
_valueToLdapDateTime ( integer $value, boolean $utc ) : string | null

메소드 상세

attributeHasValue() 공개 정적인 메소드

Checks if the given value(s) exist in the attribute
public static attributeHasValue ( array &$data, string $attribName, mixed | array $value ) : boolean
$data array
$attribName string
$value mixed | array
리턴 boolean

convertFromLdapDateTimeValue() 공개 정적인 메소드

Converts LDAP date/time representation into a timestamp
public static convertFromLdapDateTimeValue ( string $value ) : integer | null
$value string
리턴 integer | null - null if the value cannot be converted.

convertFromLdapValue() 공개 정적인 메소드

Converts an LDAP value into its PHP data type
public static convertFromLdapValue ( string $value ) : mixed
$value string
리턴 mixed

convertToLdapDateTimeValue() 공개 정적인 메소드

Converts a timestamp into its LDAP date/time representation
public static convertToLdapDateTimeValue ( integer $value, boolean $utc = false ) : string | null
$value integer
$utc boolean
리턴 string | null - null if the value cannot be converted.

convertToLdapValue() 공개 정적인 메소드

Converts a PHP data type into its LDAP representation
public static convertToLdapValue ( mixed $value ) : string | null
$value mixed
리턴 string | null - null if the PHP data type cannot be converted.

createPassword() 공개 정적인 메소드

Creates a LDAP password.
public static createPassword ( string $password, string $hashType = self::PASSWORD_HASH_MD5 ) : string
$password string
$hashType string
리턴 string

getAttribute() 공개 정적인 메소드

Gets a LDAP attribute.
public static getAttribute ( array $data, string $attribName, integer $index = null ) : array | mixed
$data array
$attribName string
$index integer
리턴 array | mixed

getDateTimeAttribute() 공개 정적인 메소드

Gets a LDAP date/time attribute.
public static getDateTimeAttribute ( array $data, string $attribName, integer $index = null ) : array | integer
$data array
$attribName string
$index integer
리턴 array | integer

removeDuplicatesFromAttribute() 공개 정적인 메소드

Removes duplicate values from a LDAP attribute
public static removeDuplicatesFromAttribute ( array &$data, string $attribName ) : void
$data array
$attribName string
리턴 void

removeFromAttribute() 공개 정적인 메소드

Remove given values from a LDAP attribute
public static removeFromAttribute ( array &$data, string $attribName, mixed | array $value ) : void
$data array
$attribName string
$value mixed | array
리턴 void

setAttribute() 공개 정적인 메소드

Sets a LDAP attribute.
public static setAttribute ( array &$data, string $attribName, scalar | array | Traversable $value, boolean $append = false ) : void
$data array
$attribName string
$value scalar | array | Traversable
$append boolean
리턴 void

setDateTimeAttribute() 공개 정적인 메소드

Sets a LDAP date/time attribute.
public static setDateTimeAttribute ( array &$data, string $attribName, integer | array | Traversable $value, boolean $utc = false, boolean $append = false ) : null
$data array
$attribName string
$value integer | array | Traversable
$utc boolean
$append boolean
리턴 null

setPassword() 공개 정적인 메소드

Sets a LDAP password.
public static setPassword ( array &$data, string $password, string $hashType = self::PASSWORD_HASH_MD5, string | null $attribName = null ) : null
$data array
$password string
$hashType string
$attribName string | null
리턴 null