PHP Class LdapTools\AttributeConverter\ConvertGPLink

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

Protected Properties

Property Type Description
$gpoLinks The GPOLinks to go to LDAP are stored here, as the last value must be a conversion of this.

Public Methods

Method Description
__construct ( )
fromLdap ( $gpLink )
getShouldAggregateValues ( )
toLdap ( $gpoLinks )

Protected Methods

Method Description
createOrModifyGPOLinks ( array $gpoLinks ) : string
explodeGPOLinkString ( string $gpLink ) : string[] Given a gPLink value, pick out all the GPO DNs and return them as an array.
getGPOLinkArray ( array $gpoInfo ) : GPOLink[]
getGPOLinkDN ( GPOLink $gpoLink ) : string
getValuesForAttribute ( array $values, string $toQuery, string $toSelect ) : array Given an array of values and the attribute to query, get the values as represent by the attribute to select.
implodeGPOLinks ( array $gpoLinks ) : string Given an array of GPOLink objects, transform them back into a single gpLink string.
modifyGPOLinks ( array $GPOs ) Modify the current GPO links based on value modifications requested.
modifyMultivaluedAttribute ( array $values, array $newValues ) : array Modifies a multivalued attribute array based off the original values, the new values, and the modification type.
removeGPOLinksFromArray ( array $values, array $toRemove ) : GPOLink[]
validateGPOLinks ( array $GPOs )

Method Details

__construct() public method

public __construct ( )

explodeGPOLinkString() protected method

Given a gPLink value, pick out all the GPO DNs and return them as an array.
protected explodeGPOLinkString ( string $gpLink ) : string[]
$gpLink string
return string[]

fromLdap() public method

public fromLdap ( $gpLink )

getGPOLinkArray() protected method

protected getGPOLinkArray ( array $gpoInfo ) : GPOLink[]
$gpoInfo array
return LdapTools\Utilities\GPOLink[]

getGPOLinkDN() protected method

protected getGPOLinkDN ( GPOLink $gpoLink ) : string
$gpoLink LdapTools\Utilities\GPOLink
return string

getShouldAggregateValues() public method

getValuesForAttribute() protected method

Given an array of values and the attribute to query, get the values as represent by the attribute to select.
protected getValuesForAttribute ( array $values, string $toQuery, string $toSelect ) : array
$values array
$toQuery string
$toSelect string
return array

modifyMultivaluedAttribute() protected method

Modifies a multivalued attribute array based off the original values, the new values, and the modification type.
protected modifyMultivaluedAttribute ( array $values, array $newValues ) : array
$values array
$newValues array
return array

removeGPOLinksFromArray() protected method

protected removeGPOLinksFromArray ( array $values, array $toRemove ) : GPOLink[]
$values array
$toRemove array
return LdapTools\Utilities\GPOLink[]

toLdap() public method

public toLdap ( $gpoLinks )

Property Details