PHP Class Horde_Kolab_Server_Structure_Ldap, horde

Inheritance: extends Horde_Kolab_Server_Structure_Base
Datei anzeigen Open project: horde/horde Class Usage Examples

Public Methods

Method Description
determineType ( string $guid ) : string Determine the type of an object by its tree position and other parameters.
generateServerGuid ( string $type, string $id, array $info ) : string Generates a GUID for the given information.
getExternalAttribute ( $name, Horde_Kolab_Server_Object_Interface $object )
getSearchOperations ( ) : array Returns the set of search operations supported by this object type.
getSupportedObjects ( ) : array Returns the set of objects supported by this structure.
mapExternalToInternalAttribute ( string $external ) : string Maps the external attribute name to its internal counterpart.
mapExternalToInternalAttributes ( array $external ) : string Maps the external attribute names to their internal counterparts.

Protected Methods

Method Description
_determineType ( string $guid, array $ocs ) : string Determine the type of an object by its tree position and other parameters.
getObjectClasses ( string $guid ) : array Get the LDAP object classes for the given GUID.

Private Methods

Method Description
_mapExternalToInternal ( string $external ) : string Maps the external attribute name to its internal counterpart(s).

Method Details

_determineType() protected method

Determine the type of an object by its tree position and other parameters.
protected _determineType ( string $guid, array $ocs ) : string
$guid string The GUID of the object to examine.
$ocs array The object classes of the object to examine.
return string The class name of the corresponding object type.

determineType() public method

Determine the type of an object by its tree position and other parameters.
public determineType ( string $guid ) : string
$guid string The GUID of the object to examine.
return string The class name of the corresponding object type.

generateServerGuid() public method

Generates a GUID for the given information.
public generateServerGuid ( string $type, string $id, array $info ) : string
$type string The class name of the object to create.
$id string The id of the object.
$info array Any additional information about the object to create.
return string The GUID.

getExternalAttribute() public method

public getExternalAttribute ( $name, Horde_Kolab_Server_Object_Interface $object )
$object Horde_Kolab_Server_Object_Interface

getObjectClasses() protected method

This is meant to be a shortcut for the structure handler. It should be used when determining the object type.
protected getObjectClasses ( string $guid ) : array
$guid string GUID of the object.
return array An array of object classes.

getSearchOperations() public method

Returns the set of search operations supported by this object type.
public getSearchOperations ( ) : array
return array An array of supported search operations.

getSupportedObjects() public method

Returns the set of objects supported by this structure.
public getSupportedObjects ( ) : array
return array An array of supported objects.

mapExternalToInternalAttribute() public method

Maps the external attribute name to its internal counterpart.
public mapExternalToInternalAttribute ( string $external ) : string
$external string The external attribute name.
return string The internal attribute name.

mapExternalToInternalAttributes() public method

Maps the external attribute names to their internal counterparts.
public mapExternalToInternalAttributes ( array $external ) : string
$external array The external attribute names.
return string The internal attribute names.