PHP Class LdapTools\Factory\AttributeConverterFactory

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

Protected Properties

Property Type Description
$converterMap The default converter name to class mapping.

Public Methods

Method Description
get ( $name ) : LdapTools\AttributeConverter\AttributeConverterInterface Retrieve a registered attribute converter by name.
register ( string $name, string $class ) Registers a converter so it can be retrieved by its name.

Protected Methods

Method Description
getInstanceOfConverter ( string $name ) : LdapTools\AttributeConverter\AttributeConverterInterface Load a specific converter if needed and send it back.

Method Details

get() public static method

Retrieve a registered attribute converter by name.
public static get ( $name ) : LdapTools\AttributeConverter\AttributeConverterInterface
$name
return LdapTools\AttributeConverter\AttributeConverterInterface

getInstanceOfConverter() protected static method

Load a specific converter if needed and send it back.
protected static getInstanceOfConverter ( string $name ) : LdapTools\AttributeConverter\AttributeConverterInterface
$name string
return LdapTools\AttributeConverter\AttributeConverterInterface

register() public static method

Registers a converter so it can be retrieved by its name.
public static register ( string $name, string $class )
$name string The actual name for the converter in the schema.
$class string The fully qualified class name (ie. '\Foo\Bar\Converter')

Property Details

$converterMap protected_oe static_oe property

The default converter name to class mapping.
protected static $converterMap