PHP 클래스 Horde_Ldap_Schema, horde

This class takes a Subschema entry, parses this information and makes it available in an array. Most of the code has been inspired by perl-ldap( http://perl-ldap.sourceforge.net). You will find portions of their implementation in here. Copyright 2009 Jan Wagner, Benedikt Hallinger Copyright 2010-2016 Horde LLC (http://www.horde.org/)
저자: Jan Wagner ([email protected])
저자: Benedikt Hallinger ([email protected])
저자: Jan Schneider ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$types array Map of entry types to LDAP attributes of subschema entry.

보호된 프로퍼티들

프로퍼티 타입 설명
$_attributeTypes array Array of entries belonging to this type
$_dITContentRules
$_dITStructureRules
$_initialized boolean Whether the schema is initialized.
$_ldapSyntaxes
$_matchingRuleUse
$_matchingRules
$_nameForms
$_objectClasses
$_oids array Hash of all fetched OIDs.

공개 메소드들

메소드 설명
__construct ( Horde_Ldap $ldap, string $dn = null ) Constructor.
get ( string $type, string $name ) : mixed Returns a specific entry.
getAll ( string $type ) : array Returns a hash of entries for the given type.
isBinary ( string $attribute ) : boolean Returns wether a attribute syntax is binary or not.
may ( string $oc, boolean $checksup = false ) : array Fetches attributes that MAY be present in the given objectclass.
must ( string $oc, boolean $checksup = false ) : array Fetches attributes that MUST be present in the given objectclass.
parse ( Horde_Ldap_Entry $entry ) Parses the schema of the given subschema entry.
superclass ( string $oc ) : array Returns the name(s) of the immediate superclass(es).

보호된 메소드들

메소드 설명
_getAttr ( string $oc, string $attr ) : array Fetches the given attribute from the given objectclass.
_parse_entry ( string $value ) : array Parses an attribute value into a schema entry.
_tokenize ( string $value ) : array Tokenizes the given value into an array of tokens.

메소드 상세

__construct() 공개 메소드

Fetches the Schema from an LDAP connection.
public __construct ( Horde_Ldap $ldap, string $dn = null )
$ldap Horde_Ldap LDAP connection.
$dn string Subschema entry DN.

_getAttr() 보호된 메소드

Fetches the given attribute from the given objectclass.
protected _getAttr ( string $oc, string $attr ) : array
$oc string Name or OID of objectclass.
$attr string Name of attribute to fetch.
리턴 array The attribute.

_parse_entry() 보호된 메소드

Parses an attribute value into a schema entry.
protected _parse_entry ( string $value ) : array
$value string Attribute value.
리턴 array Schema entry array.

_tokenize() 보호된 메소드

Tokenizes the given value into an array of tokens.
protected _tokenize ( string $value ) : array
$value string String to parse.
리턴 array Array of tokens.

get() 공개 메소드

Returns a specific entry.
public get ( string $type, string $name ) : mixed
$type string Type of name.
$name string Name or OID to fetch.
리턴 mixed

getAll() 공개 메소드

Types may be: objectclasses, attributes, ditcontentrules, ditstructurerules, matchingrules, matchingruleuses, nameforms, syntaxes.
public getAll ( string $type ) : array
$type string Type to fetch.
리턴 array

isBinary() 공개 메소드

This method is used by Horde_Ldap_Entry to decide which PHP function needs to be used to fetch the value in the proper format (e.g. binary or string).
public isBinary ( string $attribute ) : boolean
$attribute string The name of the attribute (eg.: 'sn').
리턴 boolean True if the attribute is a binary type.

may() 공개 메소드

Fetches attributes that MAY be present in the given objectclass.
public may ( string $oc, boolean $checksup = false ) : array
$oc string Name or OID of objectclass.
$checksup boolean Check all superiour objectclasses too?
리턴 array Array with attributes.

must() 공개 메소드

Fetches attributes that MUST be present in the given objectclass.
public must ( string $oc, boolean $checksup = false ) : array
$oc string Name or OID of objectclass.
$checksup boolean Check all superiour objectclasses too?
리턴 array Array with attributes.

parse() 공개 메소드

Parses the schema of the given subschema entry.
public parse ( Horde_Ldap_Entry $entry )
$entry Horde_Ldap_Entry Subschema entry.

superclass() 공개 메소드

Returns the name(s) of the immediate superclass(es).
public superclass ( string $oc ) : array
$oc string Name or OID of objectclass.
리턴 array

프로퍼티 상세

$_attributeTypes 보호되어 있는 프로퍼티

Array of entries belonging to this type
protected array $_attributeTypes
리턴 array

$_dITContentRules 보호되어 있는 프로퍼티

protected $_dITContentRules

$_dITStructureRules 보호되어 있는 프로퍼티

protected $_dITStructureRules

$_initialized 보호되어 있는 프로퍼티

Whether the schema is initialized.
protected bool $_initialized
리턴 boolean

$_ldapSyntaxes 보호되어 있는 프로퍼티

protected $_ldapSyntaxes

$_matchingRuleUse 보호되어 있는 프로퍼티

protected $_matchingRuleUse

$_matchingRules 보호되어 있는 프로퍼티

protected $_matchingRules

$_nameForms 보호되어 있는 프로퍼티

protected $_nameForms

$_objectClasses 보호되어 있는 프로퍼티

protected $_objectClasses

$_oids 보호되어 있는 프로퍼티

Hash of all fetched OIDs.
protected array $_oids
리턴 array

$types 공개적으로 프로퍼티

Map of entry types to LDAP attributes of subschema entry.
public array $types
리턴 array