PHP 클래스 Horde_Kolab_Server_Connection_Mock_Ldap, horde

Copyright 2008-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $params, array $data ) Constructor.
add ( Horde_Ldap_Entry $entry ) : Horde_Ldap_Error | true Add a new entryobject to a directory.
bind ( string $dn = '', string $pw = '' ) : null Binds the LDAP connection with a specific user and pass.
delete ( string $uid ) : null Delete an object.
doSearch ( array $filter, array $attributes = null ) : array Perform the search.
getEntries ( array $result ) : mixed Return the entries of a result.
getEntry ( string $dn, array $attr = [] ) : Horde_Ldap_Entry | Horde_Ldap_Error Get a specific entry based on the DN
modify ( $entry, $data = [] ) : Horde_Ldap_Error | true Modify an ldapentry directly on the server
move ( string $uid, string $new ) : null Rename an object.
parse ( string $filter ) : array Parse LDAP filter.
parseSub ( string $filter ) : array Parse a LDAP subfilter.
schema ( )
search ( string $base = null, string $filter = null, string $params = [] ) : array Search for object data.

보호된 메소드들

메소드 설명
toStorage ( array $data ) : array Rewrite a data array to our internal storage format.

비공개 메소드들

메소드 설명
_checkBound ( ) : null Check if the current connection is bound.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( array $params, array $data )
$params array Connection parameters.
$data array Mockup LDAP data.

add() 공개 메소드

Add a new entryobject to a directory.
public add ( Horde_Ldap_Entry $entry ) : Horde_Ldap_Error | true
$entry Horde_Ldap_Entry Horde_Ldap_Entry
리턴 Horde_Ldap_Error | true Horde_Ldap_Error object or true

bind() 공개 메소드

Binds the LDAP connection with a specific user and pass.
public bind ( string $dn = '', string $pw = '' ) : null
$dn string DN to bind with
$pw string Password associated to this DN.
리턴 null

delete() 공개 메소드

Delete an object.
public delete ( string $uid ) : null
$uid string The UID of the object to be deleted.
리턴 null

doSearch() 공개 메소드

Perform the search.
public doSearch ( array $filter, array $attributes = null ) : array
$filter array Filter criteria-
$attributes array Restrict the search result to these attributes.
리턴 array A LDAP serach result.

getEntries() 공개 메소드

Return the entries of a result.
public getEntries ( array $result ) : mixed
$result array The LDAP search result.
리턴 mixed The entries of the result or false.

getEntry() 공개 메소드

Get a specific entry based on the DN
public getEntry ( string $dn, array $attr = [] ) : Horde_Ldap_Entry | Horde_Ldap_Error
$dn string DN of the entry that should be fetched
$attr array Array of Attributes to select. If ommitted, all attributes are fetched.
리턴 Horde_Ldap_Entry | Horde_Ldap_Error Reference to a Horde_Ldap_Entry object or Horde_Ldap_Error object

modify() 공개 메소드

Modify an ldapentry directly on the server
public modify ( $entry, $data = [] ) : Horde_Ldap_Error | true
리턴 Horde_Ldap_Error | true Horde_Ldap_Error object or true

move() 공개 메소드

Rename an object.
public move ( string $uid, string $new ) : null
$uid string The UID of the object to be renamed.
$new string The new UID of the object.
리턴 null

parse() 공개 메소드

Partially derived from Net_LDAP_Filter.
public parse ( string $filter ) : array
$filter string The filter string.
리턴 array An array of the parsed filter.

parseSub() 공개 메소드

Parse a LDAP subfilter.
public parseSub ( string $filter ) : array
$filter string The subfilter string.
리턴 array An array of the parsed subfilter.

schema() 공개 메소드

public schema ( )

toStorage() 보호된 메소드

Rewrite a data array to our internal storage format.
protected toStorage ( array $data ) : array
$data array The attributes of the object to be added/replaced.
리턴 array The transformed data set.