PHP 클래스 LdapTools\Schema\LdapObjectSchema

저자: Chad Sikorra ([email protected])
상속: implements LdapTools\Cache\CacheableItemInterface
파일 보기 프로젝트 열기: ldaptools/ldaptools 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$attributeMap The map between LdapTools specific attribute names to what LDAP actually calls them.
$attributesToSelect An array of attribute names to select by default when using LdapQueryBuilder or a Repository.
$baseDn The BaseDN used for queries against this schema type.
$controls LdapTools\Connection\LdapControl[]
$converterMap An array of attribute keys and the converter names tied to them.
$converterOptions Any attribute converter options defined.
$defaultContainer The default ou/container where the object should reside in LDAP when created.
$defaultValues Default values for attributes upon creation.
$filter The operator representation of a filter to be used to select objects of this schema type.
$multivaluedAttributes Attributes that are defined as being multivalued.
$objectCategory The actual object category name in LDAP.
$objectClass The actual object class name in LDAP.
$objectType The LdapTools specific object type.
$repository The repository to use for this object.
$requiredAttributes These attributes are required when creating this object.
$schemaName The name of the schema this object is from.
$scope string | null
$usePaging boolean | null

공개 메소드들

메소드 설명
__construct ( string $schemaName, string $objectType )
getAttributeMap ( ) : array Get the map of names to actual LDAP attribute names.
getAttributeToLdap ( string $attribute ) : string Given an attribute name, this will get the attribute that LDAP is expecting for that name.
getAttributesToSelect ( ) : array Get the attributes that should be retrieved by default when using LdapQueryBuilder or a Repository.
getBaseDn ( ) : string Get the BaseDN used for queries against this schema type.
getCacheName ( )
getCacheType ( )
getControls ( ) : LdapControl[] Get the LDAP controls needed when querying for this operation.
getConverter ( string $attributeName ) : string Get the name of the converter for an attribute.
getConverterMap ( ) : array Get the attribute name to attribute converter map.
getConverterOptions ( ) : array Get the array of converter names and the options that will be passed to them.
getDefaultContainer ( ) : string Get the default ou/container used when creating this object.
getDefaultValues ( ) : array Get the default values when creating this object.
getFilter ( ) : BaseOperator Get the operator that will be used as a filter for querying LDAP for this object type.
getMultivaluedAttributes ( ) : array Get the attributes that are expected to be multivalued.
getNamesMappedToAttribute ( string $attribute ) : array Get all the possible schema names/alias' mapped to a LDAP attribute name. It's possible to have multiple different names mapped to one attribute in the case of different converters applied to the same value.
getObjectCategory ( ) : string Get the objectCategory that this schema object refers to.
getObjectClass ( ) : array Get the LDAP object class(es) for this object type.
getObjectType ( ) : string Get the LdapTools object type that this object refers to.
getRepository ( ) : string Get the fully qualified name of the repository class to use for this object.
getRequiredAttributes ( ) : array Get the required attributes when creating this object.
getSchemaName ( ) : string The name of the schema this object definition came from.
getScope ( ) : null | string Get the scope of the search for queries using this type.
getUsePaging ( ) : boolean | null Get whether paging should be used when querying LDAP for this type.
hasAttribute ( string $attribute ) : boolean Check for an attribute defined in the schema that maps to an LDAP attribute.
hasConverter ( string $attributeName ) : boolean Check if an attribute has a converter defined.
hasNamesMappedToAttribute ( string $attribute ) : boolean Check if a LDAP attribute has a schema name mapped to it.
isMultivaluedAttribute ( string $attribute ) : boolean Whether a specific attribute is defined as multivalued or not.
setAttributeMap ( array $attributeMap ) Set the map of names to actual LDAP attribute names.
setAttributesToSelect ( array $attributes ) Set the attributes that will be retrieved by default when using LdapQueryBuilder or a Repository.
setBaseDn ( string $baseDn ) Set the BaseDN used for queries against this schema type.
setControls ( variadic $controls ) Set the LDAP controls needed when querying for this operation.
setConverterMap ( array $converterMap ) Set the attribute name to attribute converter map.
setConverterOptions ( array $converterOptions ) Set any options to be passed to specific converters.
setDefaultContainer ( string $container ) Set the default ou/container when creating this object.
setDefaultValues ( array $defaultValues ) Set the default values when creating this object.
setFilter ( BaseOperator $filter ) Set the operator that will be used as a filter for querying LDAP for this object type.
setMultivaluedAttributes ( array $multivaluedAttributes ) Set the attributes that are expected to be multivalued.
setObjectCategory ( $objectCategory ) Set the objectCategory that this schema object refers to.
setObjectClass ( string | array $objectClass ) Set the LDAP object class(es) for this object type.
setObjectType ( string $objectType ) Set the LdapTools object type that this object refers to.
setRepository ( string $repository ) Set the fully qualified name of the repository class to use for this object.
setRequiredAttributes ( array $attributes ) Set the required attributes when creating this object.
setSchemaName ( string $schemaName ) The name of the schema this object definition came from.
setScope ( string | null $scope ) Set the scope of the search for queries using this type.
setUsePaging ( boolean $usePaging ) Set whether paging should be used when querying LDAP for this type.

메소드 상세

__construct() 공개 메소드

public __construct ( string $schemaName, string $objectType )
$schemaName string
$objectType string

getAttributeMap() 공개 메소드

Get the map of names to actual LDAP attribute names.
public getAttributeMap ( ) : array
리턴 array

getAttributeToLdap() 공개 메소드

Given an attribute name, this will get the attribute that LDAP is expecting for that name.
public getAttributeToLdap ( string $attribute ) : string
$attribute string
리턴 string

getAttributesToSelect() 공개 메소드

Get the attributes that should be retrieved by default when using LdapQueryBuilder or a Repository.
public getAttributesToSelect ( ) : array
리턴 array

getBaseDn() 공개 메소드

Get the BaseDN used for queries against this schema type.
public getBaseDn ( ) : string
리턴 string

getCacheName() 공개 메소드

public getCacheName ( )

getCacheType() 공개 정적인 메소드

public static getCacheType ( )

getControls() 공개 메소드

Get the LDAP controls needed when querying for this operation.
public getControls ( ) : LdapControl[]
리턴 LdapTools\Connection\LdapControl[]

getConverter() 공개 메소드

Get the name of the converter for an attribute.
public getConverter ( string $attributeName ) : string
$attributeName string
리턴 string

getConverterMap() 공개 메소드

Get the attribute name to attribute converter map.
public getConverterMap ( ) : array
리턴 array

getConverterOptions() 공개 메소드

Get the array of converter names and the options that will be passed to them.
public getConverterOptions ( ) : array
리턴 array

getDefaultContainer() 공개 메소드

Get the default ou/container used when creating this object.
public getDefaultContainer ( ) : string
리턴 string

getDefaultValues() 공개 메소드

Get the default values when creating this object.
public getDefaultValues ( ) : array
리턴 array

getFilter() 공개 메소드

Get the operator that will be used as a filter for querying LDAP for this object type.
public getFilter ( ) : BaseOperator
리턴 LdapTools\Query\Operator\BaseOperator

getMultivaluedAttributes() 공개 메소드

Get the attributes that are expected to be multivalued.
public getMultivaluedAttributes ( ) : array
리턴 array

getNamesMappedToAttribute() 공개 메소드

Get all the possible schema names/alias' mapped to a LDAP attribute name. It's possible to have multiple different names mapped to one attribute in the case of different converters applied to the same value.
public getNamesMappedToAttribute ( string $attribute ) : array
$attribute string
리턴 array

getObjectCategory() 공개 메소드

Get the objectCategory that this schema object refers to.
public getObjectCategory ( ) : string
리턴 string

getObjectClass() 공개 메소드

Get the LDAP object class(es) for this object type.
public getObjectClass ( ) : array
리턴 array

getObjectType() 공개 메소드

Get the LdapTools object type that this object refers to.
public getObjectType ( ) : string
리턴 string

getRepository() 공개 메소드

Get the fully qualified name of the repository class to use for this object.
public getRepository ( ) : string
리턴 string

getRequiredAttributes() 공개 메소드

Get the required attributes when creating this object.
public getRequiredAttributes ( ) : array
리턴 array

getSchemaName() 공개 메소드

The name of the schema this object definition came from.
public getSchemaName ( ) : string
리턴 string

getScope() 공개 메소드

Get the scope of the search for queries using this type.
public getScope ( ) : null | string
리턴 null | string

getUsePaging() 공개 메소드

Get whether paging should be used when querying LDAP for this type.
public getUsePaging ( ) : boolean | null
리턴 boolean | null

hasAttribute() 공개 메소드

Check for an attribute defined in the schema that maps to an LDAP attribute.
public hasAttribute ( string $attribute ) : boolean
$attribute string
리턴 boolean

hasConverter() 공개 메소드

Check if an attribute has a converter defined.
public hasConverter ( string $attributeName ) : boolean
$attributeName string
리턴 boolean

hasNamesMappedToAttribute() 공개 메소드

Check if a LDAP attribute has a schema name mapped to it.
public hasNamesMappedToAttribute ( string $attribute ) : boolean
$attribute string
리턴 boolean

isMultivaluedAttribute() 공개 메소드

Whether a specific attribute is defined as multivalued or not.
public isMultivaluedAttribute ( string $attribute ) : boolean
$attribute string
리턴 boolean

setAttributeMap() 공개 메소드

Set the map of names to actual LDAP attribute names.
public setAttributeMap ( array $attributeMap )
$attributeMap array

setAttributesToSelect() 공개 메소드

Set the attributes that will be retrieved by default when using LdapQueryBuilder or a Repository.
public setAttributesToSelect ( array $attributes )
$attributes array

setBaseDn() 공개 메소드

Set the BaseDN used for queries against this schema type.
public setBaseDn ( string $baseDn )
$baseDn string

setControls() 공개 메소드

Set the LDAP controls needed when querying for this operation.
public setControls ( variadic $controls )
$controls variadic

setConverterMap() 공개 메소드

Set the attribute name to attribute converter map.
public setConverterMap ( array $converterMap )
$converterMap array

setConverterOptions() 공개 메소드

Set any options to be passed to specific converters.
public setConverterOptions ( array $converterOptions )
$converterOptions array

setDefaultContainer() 공개 메소드

Set the default ou/container when creating this object.
public setDefaultContainer ( string $container )
$container string

setDefaultValues() 공개 메소드

Set the default values when creating this object.
public setDefaultValues ( array $defaultValues )
$defaultValues array

setFilter() 공개 메소드

Set the operator that will be used as a filter for querying LDAP for this object type.
public setFilter ( BaseOperator $filter )
$filter LdapTools\Query\Operator\BaseOperator

setMultivaluedAttributes() 공개 메소드

Set the attributes that are expected to be multivalued.
public setMultivaluedAttributes ( array $multivaluedAttributes )
$multivaluedAttributes array

setObjectCategory() 공개 메소드

Set the objectCategory that this schema object refers to.
public setObjectCategory ( $objectCategory )
$objectCategory

setObjectClass() 공개 메소드

Set the LDAP object class(es) for this object type.
public setObjectClass ( string | array $objectClass )
$objectClass string | array

setObjectType() 공개 메소드

Set the LdapTools object type that this object refers to.
public setObjectType ( string $objectType )
$objectType string

setRepository() 공개 메소드

Set the fully qualified name of the repository class to use for this object.
public setRepository ( string $repository )
$repository string

setRequiredAttributes() 공개 메소드

Set the required attributes when creating this object.
public setRequiredAttributes ( array $attributes )
$attributes array

setSchemaName() 공개 메소드

The name of the schema this object definition came from.
public setSchemaName ( string $schemaName )
$schemaName string

setScope() 공개 메소드

Set the scope of the search for queries using this type.
public setScope ( string | null $scope )
$scope string | null

setUsePaging() 공개 메소드

Set whether paging should be used when querying LDAP for this type.
public setUsePaging ( boolean $usePaging )
$usePaging boolean

프로퍼티 상세

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

The map between LdapTools specific attribute names to what LDAP actually calls them.
protected $attributeMap

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

An array of attribute names to select by default when using LdapQueryBuilder or a Repository.
protected $attributesToSelect

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

The BaseDN used for queries against this schema type.
protected $baseDn

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

protected LdapControl[],LdapTools\Connection $controls
리턴 LdapTools\Connection\LdapControl[]

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

An array of attribute keys and the converter names tied to them.
protected $converterMap

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

Any attribute converter options defined.
protected $converterOptions

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

The default ou/container where the object should reside in LDAP when created.
protected $defaultContainer

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

Default values for attributes upon creation.
protected $defaultValues

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

The operator representation of a filter to be used to select objects of this schema type.
protected $filter

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

Attributes that are defined as being multivalued.
protected $multivaluedAttributes

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

The actual object category name in LDAP.
protected $objectCategory

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

The actual object class name in LDAP.
protected $objectClass

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

The LdapTools specific object type.
protected $objectType

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

The repository to use for this object.
protected $repository

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

These attributes are required when creating this object.
protected $requiredAttributes

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

The name of the schema this object is from.
protected $schemaName

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

protected string|null $scope
리턴 string | null

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

protected bool|null $usePaging
리턴 boolean | null