PHP Class LdapTools\AttributeConverter\ConvertExchangeProxyAddress

Author: Chad Sikorra ([email protected])
Inheritance: implements LdapTools\AttributeConverter\AttributeConverterInterface, use trait LdapTools\Utilities\ConverterUtilitiesTrait, use trait AttributeConverterTrait
Datei anzeigen Open project: ldaptools/ldaptools

Public Methods

Method Description
__construct ( )
fromLdap ( $value )
getShouldAggregateValues ( )
toLdap ( $value )

Protected Methods

Method Description
formatAddresses ( array $emailAddresses ) : array Given an array of email address determine what type they should be and prefix the email addresses with it.
getAddressesByType ( array $proxyAddresses, string $type ) : array Get all the addresses of a specific type from a standard proxyAddress array.
getDefaultAddressByType ( array $proxyAddresses, string $type ) : string Get the default email for a specific address type.
isDefaultValueAttribute ( ) : boolean Determine if the current attribute we are on is the default attribute for its type.
modifyAddressArray ( array $addresses ) Formats the addresses then modifies the last value based on the operation type.
modifyAddresses ( array $addresses ) Modifies an array of generic address types.
modifyDefaultAddress ( string $defaultAddress ) Modifies the existing list of addresses to set the default for a specific address type.
replaceAddressesOfType ( array $addresses, array $replaceWith ) : array Remove all addresses of a specific type and replace them with a specific set of addresses.

Method Details

__construct() public method

public __construct ( )

formatAddresses() protected method

Given an array of email address determine what type they should be and prefix the email addresses with it.
protected formatAddresses ( array $emailAddresses ) : array
$emailAddresses array
return array

fromLdap() public method

public fromLdap ( $value )

getAddressesByType() protected method

Get all the addresses of a specific type from a standard proxyAddress array.
protected getAddressesByType ( array $proxyAddresses, string $type ) : array
$proxyAddresses array
$type string
return array

getDefaultAddressByType() protected method

Get the default email for a specific address type.
protected getDefaultAddressByType ( array $proxyAddresses, string $type ) : string
$proxyAddresses array
$type string
return string

getShouldAggregateValues() public method

isDefaultValueAttribute() protected method

Determine if the current attribute we are on is the default attribute for its type.
protected isDefaultValueAttribute ( ) : boolean
return boolean

modifyAddressArray() protected method

Formats the addresses then modifies the last value based on the operation type.
protected modifyAddressArray ( array $addresses )
$addresses array

modifyAddresses() protected method

Modifies an array of generic address types.
protected modifyAddresses ( array $addresses )
$addresses array

modifyDefaultAddress() protected method

Modifies the existing list of addresses to set the default for a specific address type.
protected modifyDefaultAddress ( string $defaultAddress )
$defaultAddress string

replaceAddressesOfType() protected method

Remove all addresses of a specific type and replace them with a specific set of addresses.
protected replaceAddressesOfType ( array $addresses, array $replaceWith ) : array
$addresses array
$replaceWith array
return array

toLdap() public method

public toLdap ( $value )