PHP Class LdapTools\Factory\LdapObjectSchemaFactory

Author: Chad Sikorra ([email protected])
Datei anzeigen Open project: ldaptools/ldaptools Class Usage Examples

Protected Properties

Property Type Description
$cache The caching mechanism.
$dispatcher LdapTools\Event\EventDispatcherInterface
$parser The parser for the schema files.

Public Methods

Method Description
__construct ( LdapTools\Cache\CacheInterface $cache, LdapTools\Schema\Parser\SchemaParserInterface $parser, LdapTools\Event\EventDispatcherInterface $dispatcher )
get ( string $schemaName, string $objectType ) : LdapObjectSchema Get the LdapObjectSchema for a specific schema name and object type.

Protected Methods

Method Description
shouldBuildCacheItem ( string $schemaName, string $cacheItem ) : boolean Whether or not the item needs to be parsed and cached.

Method Details

__construct() public method

public __construct ( LdapTools\Cache\CacheInterface $cache, LdapTools\Schema\Parser\SchemaParserInterface $parser, LdapTools\Event\EventDispatcherInterface $dispatcher )
$cache LdapTools\Cache\CacheInterface
$parser LdapTools\Schema\Parser\SchemaParserInterface
$dispatcher LdapTools\Event\EventDispatcherInterface

get() public method

Get the LdapObjectSchema for a specific schema name and object type.
public get ( string $schemaName, string $objectType ) : LdapObjectSchema
$schemaName string
$objectType string
return LdapTools\Schema\LdapObjectSchema

shouldBuildCacheItem() protected method

Whether or not the item needs to be parsed and cached.
protected shouldBuildCacheItem ( string $schemaName, string $cacheItem ) : boolean
$schemaName string
$cacheItem string
return boolean

Property Details

$cache protected_oe property

The caching mechanism.
protected $cache

$dispatcher protected_oe property

protected EventDispatcherInterface,LdapTools\Event $dispatcher
return LdapTools\Event\EventDispatcherInterface

$parser protected_oe property

The parser for the schema files.
protected $parser