PHP Class LdapTools\BatchModify\Batch

Author: Chad Sikorra ([email protected])
Afficher le fichier Open project: ldaptools/ldaptools Class Usage Examples

Protected Properties

Свойство Type Description
$attribute The attribute name the batch action will modify.
$modtype The batch modification type to perform.
$values The values for the batch action.

Méthodes publiques

Méthode Description
__construct ( integer $modtype, string $attribute, array $values = [] )
getAttribute ( ) : string Get the attribute for this batch.
getModType ( ) : integer Get the modtype for this batch.
getValues ( ) : array Get the values for this batch action.
isTypeAdd ( ) : boolean A convenience function to check if this batch type is an ADD action.
isTypeRemove ( ) : boolean A convenience function to check if this batch type is a REMOVE action.
isTypeRemoveAll ( ) : boolean A convenience function to check if this batch type is a REMOVE_ALL action.
isTypeReplace ( ) : boolean A convenience function to check if this batch type is a REPLACE action.
setAttribute ( string $attribute ) Set the attribute for this batch.
setModType ( integer $modtype ) Set the modtype for this batch.
setValues ( $values ) Set the values for this batch.
toArray ( ) : array Get the array representation of this batch action.

Méthodes protégées

Méthode Description
isType ( string $type ) : boolean Checks of this is a specific modtype.
resolve ( array $values ) : array Allows for an anonymous function to produce the final value.

Method Details

__construct() public méthode

public __construct ( integer $modtype, string $attribute, array $values = [] )
$modtype integer
$attribute string
$values array

getAttribute() public méthode

Get the attribute for this batch.
public getAttribute ( ) : string
Résultat string

getModType() public méthode

Get the modtype for this batch.
public getModType ( ) : integer
Résultat integer

getValues() public méthode

Get the values for this batch action.
public getValues ( ) : array
Résultat array

isType() protected méthode

Checks of this is a specific modtype.
protected isType ( string $type ) : boolean
$type string
Résultat boolean

isTypeAdd() public méthode

A convenience function to check if this batch type is an ADD action.
public isTypeAdd ( ) : boolean
Résultat boolean

isTypeRemove() public méthode

A convenience function to check if this batch type is a REMOVE action.
public isTypeRemove ( ) : boolean
Résultat boolean

isTypeRemoveAll() public méthode

A convenience function to check if this batch type is a REMOVE_ALL action.
public isTypeRemoveAll ( ) : boolean
Résultat boolean

isTypeReplace() public méthode

A convenience function to check if this batch type is a REPLACE action.
public isTypeReplace ( ) : boolean
Résultat boolean

resolve() protected méthode

Allows for an anonymous function to produce the final value.
protected resolve ( array $values ) : array
$values array
Résultat array

setAttribute() public méthode

Set the attribute for this batch.
public setAttribute ( string $attribute )
$attribute string

setModType() public méthode

Set the modtype for this batch.
public setModType ( integer $modtype )
$modtype integer

setValues() public méthode

Set the values for this batch.
public setValues ( $values )
$values

toArray() public méthode

Get the array representation of this batch action.
public toArray ( ) : array
Résultat array

Property Details

$attribute protected_oe property

The attribute name the batch action will modify.
protected $attribute

$modtype protected_oe property

The batch modification type to perform.
protected $modtype

$values protected_oe property

The values for the batch action.
protected $values