PHP 클래스 LdapTools\Configuration

저자: Chad Sikorra ([email protected])
상속: use trait ConfigurationParseTrait
파일 보기 프로젝트 열기: ldaptools/ldaptools 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$config array
$domains DomainConfiguration objects in the form of 'domainName' => object.
$eventDispatcher The event dispatcher that should be used.
$logger The logger that should be used.
$yamlConfigMap Maps the config values to their array key values in this class.

공개 메소드들

메소드 설명
__construct ( variadic $domains )
addDomain ( variadic $domains ) Add domain configurations. Accepts an arbitrary amount of domain configurations.
getAttributeConverters ( ) : array Get the attribute converters that will be registered.
getCacheOptions ( ) : array Get the cache options for the cache type.
getCacheType ( ) : string Get the configured cache type.
getDefaultDomain ( ) : string Get the name of the default domain to be used when there are multiple domains.
getDomainConfiguration ( null | string $domain = null ) : DomainConfiguration[] | DomainConfiguration Get the DomainConfiguration for a specific domain, or an array of all DomainConfiguration objects if none is specified.
getEventDispatcher ( ) : LdapTools\Event\EventDispatcherInterface | null Get the explicitly set event dispatcher to be used.
getLogger ( ) : LdapTools\Log\LdapLoggerInterface | null Get the logger to be used.
getSchemaFolder ( ) : string Get the location where the schema definitions exist.
getSchemaFormat ( ) : string Get the schema definition format.
load ( string $file ) Load the LDAP configuration from a YAML file. See the 'resources/config' folder for an example.
loadFromArray ( array $config ) Load the configuration from an array of values. They should be in the same format/name as the YAML format.
setAttributeConverters ( array $attributeConverters ) Set attribute converters that should be registered. In the form:
setCacheOptions ( $options ) Set the caching options for the cache type.
setCacheType ( $type ) Set the cache type to use.
setDefaultDomain ( $domain ) Set the default domain that should be used by the LdapManager. In the absence of multiple domains, this does not have to be set.
setEventDispatcher ( LdapTools\Event\EventDispatcherInterface $eventDispatcher ) Set an event dispatcher, other than the default, to be used.
setLogger ( LdapTools\Log\LdapLoggerInterface $logger ) Set a logger to be used.
setSchemaFolder ( $folder ) Set the location where the schema definitions exist.
setSchemaFormat ( $type ) Set the schema definition format.

보호된 메소드들

메소드 설명
loadDomainConfiguration ( array $config ) Iterates through and loads the domain section of the configuration.

메소드 상세

__construct() 공개 메소드

public __construct ( variadic $domains )
$domains variadic

addDomain() 공개 메소드

Add domain configurations. Accepts an arbitrary amount of domain configurations.
public addDomain ( variadic $domains )
$domains variadic

getAttributeConverters() 공개 메소드

Get the attribute converters that will be registered.
public getAttributeConverters ( ) : array
리턴 array

getCacheOptions() 공개 메소드

Get the cache options for the cache type.
public getCacheOptions ( ) : array
리턴 array

getCacheType() 공개 메소드

Get the configured cache type.
public getCacheType ( ) : string
리턴 string

getDefaultDomain() 공개 메소드

Get the name of the default domain to be used when there are multiple domains.
public getDefaultDomain ( ) : string
리턴 string

getDomainConfiguration() 공개 메소드

Get the DomainConfiguration for a specific domain, or an array of all DomainConfiguration objects if none is specified.
public getDomainConfiguration ( null | string $domain = null ) : DomainConfiguration[] | DomainConfiguration
$domain null | string
리턴 DomainConfiguration[] | DomainConfiguration

getEventDispatcher() 공개 메소드

Get the explicitly set event dispatcher to be used.
public getEventDispatcher ( ) : LdapTools\Event\EventDispatcherInterface | null
리턴 LdapTools\Event\EventDispatcherInterface | null

getLogger() 공개 메소드

Get the logger to be used.
public getLogger ( ) : LdapTools\Log\LdapLoggerInterface | null
리턴 LdapTools\Log\LdapLoggerInterface | null

getSchemaFolder() 공개 메소드

Get the location where the schema definitions exist.
public getSchemaFolder ( ) : string
리턴 string

getSchemaFormat() 공개 메소드

Get the schema definition format.
public getSchemaFormat ( ) : string
리턴 string

load() 공개 메소드

Load the LDAP configuration from a YAML file. See the 'resources/config' folder for an example.
public load ( string $file )
$file string The path to the file.

loadDomainConfiguration() 보호된 메소드

Iterates through and loads the domain section of the configuration.
protected loadDomainConfiguration ( array $config )
$config array

loadFromArray() 공개 메소드

ie. [ 'general' => [ ... ], 'domains' => [ ... ] ]
public loadFromArray ( array $config )
$config array

setAttributeConverters() 공개 메소드

[ 'converter_name' => '\Full\Class\Name' ]
public setAttributeConverters ( array $attributeConverters )
$attributeConverters array

setCacheOptions() 공개 메소드

Set the caching options for the cache type.
public setCacheOptions ( $options )

setCacheType() 공개 메소드

Set the cache type to use.
public setCacheType ( $type )
$type

setDefaultDomain() 공개 메소드

Set the default domain that should be used by the LdapManager. In the absence of multiple domains, this does not have to be set.
public setDefaultDomain ( $domain )
$domain

setEventDispatcher() 공개 메소드

Set an event dispatcher, other than the default, to be used.
public setEventDispatcher ( LdapTools\Event\EventDispatcherInterface $eventDispatcher )
$eventDispatcher LdapTools\Event\EventDispatcherInterface

setLogger() 공개 메소드

Set a logger to be used.
public setLogger ( LdapTools\Log\LdapLoggerInterface $logger )
$logger LdapTools\Log\LdapLoggerInterface

setSchemaFolder() 공개 메소드

Set the location where the schema definitions exist.
public setSchemaFolder ( $folder )
$folder string The full path to the folder.

setSchemaFormat() 공개 메소드

Set the schema definition format.
public setSchemaFormat ( $type )
$type string The schema type (ie. yml).

프로퍼티 상세

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

protected array $config
리턴 array

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

DomainConfiguration objects in the form of 'domainName' => object.
protected $domains

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

The event dispatcher that should be used.
protected $eventDispatcher

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

The logger that should be used.
protected $logger

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

Maps the config values to their array key values in this class.
protected $yamlConfigMap