get() публичный статический Метод

Retrieve a registered attribute converter by name.
public static get ( $name ) : LdapTools\AttributeConverter\AttributeConverterInterface
$name
Результат LdapTools\AttributeConverter\AttributeConverterInterface
Пример #1
0
 /**
  * Get an instance of a converter with its options set.
  *
  * @param string $converterName The name of the converter from the schema.
  * @return AttributeConverterInterface
  */
 protected function getConverterWithOptions($converterName)
 {
     $converter = AttributeConverterFactory::get($converterName);
     if (isset($this->options[$converterName])) {
         $converter->setOptions($this->options[$converterName]);
     }
     if ($this->connection) {
         $converter->setLdapConnection($this->connection);
     }
     if ($this->dn !== null) {
         $converter->setDn($this->dn);
     }
     if ($converter instanceof OperationGeneratorInterface) {
         $converter->setOperation($this->operation);
     }
     $converter->setOperationType($this->type);
     return $converter;
 }