PHP Class LdapTools\AttributeConverter\ConvertGPLink

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

Protected Properties

Свойство Type Description
$gpoLinks The GPOLinks to go to LDAP are stored here, as the last value must be a conversion of this.

Méthodes publiques

Méthode Description
__construct ( )
fromLdap ( $gpLink )
getShouldAggregateValues ( )
toLdap ( $gpoLinks )

Méthodes protégées

Méthode 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 méthode

public __construct ( )

explodeGPOLinkString() protected méthode

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

fromLdap() public méthode

public fromLdap ( $gpLink )

getGPOLinkArray() protected méthode

protected getGPOLinkArray ( array $gpoInfo ) : GPOLink[]
$gpoInfo array
Résultat LdapTools\Utilities\GPOLink[]

getGPOLinkDN() protected méthode

protected getGPOLinkDN ( GPOLink $gpoLink ) : string
$gpoLink LdapTools\Utilities\GPOLink
Résultat string

getShouldAggregateValues() public méthode

getValuesForAttribute() protected méthode

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
Résultat array

modifyMultivaluedAttribute() protected méthode

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
Résultat array

removeGPOLinksFromArray() protected méthode

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

toLdap() public méthode

public toLdap ( $gpoLinks )

Property Details