PHP Class Adldap\Objects\BatchModification

Afficher le fichier Open project: adldap2/adldap2 Class Usage Examples

Protected Properties

Свойство Type Description
$attribute integer | string The attribute of the modification.
$original null The original value of the attribute before modification.
$type integer The modtype integer of the batch modification.
$values array The values of the modification.

Méthodes publiques

Méthode Description
__construct ( null | string $attribute = null, null | integer $type = null, array $values = [] ) Constructor.
build ( ) : BatchModification Builds the type of modification automatically based on the current and original values.
get ( ) : array | null Returns the built batch modification array.
getAttribute ( ) : string Returns the attribute of the modification.
getOriginal ( ) : mixed Returns the original value of the attribute before modification.
getType ( ) : integer Returns the type of the modification.
getValues ( ) : array Returns the values of the modification.
setAttribute ( string $attribute ) : BatchModification Sets the attribute of the modification.
setOriginal ( null $original = null ) Sets the original value of the attribute before modification.
setType ( integer $type ) : BatchModification Sets the type of the modification.
setValues ( array $values = [] ) : BatchModification Sets the values of the modification.

Method Details

__construct() public méthode

Constructor.
public __construct ( null | string $attribute = null, null | integer $type = null, array $values = [] )
$attribute null | string
$type null | integer
$values array

build() public méthode

Builds the type of modification automatically based on the current and original values.
public build ( ) : BatchModification
Résultat BatchModification

get() public méthode

Returns the built batch modification array.
public get ( ) : array | null
Résultat array | null

getAttribute() public méthode

Returns the attribute of the modification.
public getAttribute ( ) : string
Résultat string

getOriginal() public méthode

Returns the original value of the attribute before modification.
public getOriginal ( ) : mixed
Résultat mixed

getType() public méthode

Returns the type of the modification.
public getType ( ) : integer
Résultat integer

getValues() public méthode

Returns the values of the modification.
public getValues ( ) : array
Résultat array

setAttribute() public méthode

Sets the attribute of the modification.
public setAttribute ( string $attribute ) : BatchModification
$attribute string
Résultat BatchModification

setOriginal() public méthode

Sets the original value of the attribute before modification.
public setOriginal ( null $original = null )
$original null

setType() public méthode

Sets the type of the modification.
public setType ( integer $type ) : BatchModification
$type integer
Résultat BatchModification

setValues() public méthode

Sets the values of the modification.
public setValues ( array $values = [] ) : BatchModification
$values array
Résultat BatchModification

Property Details

$attribute protected_oe property

The attribute of the modification.
protected int|string $attribute
Résultat integer | string

$original protected_oe property

The original value of the attribute before modification.
protected null $original
Résultat null

$type protected_oe property

The modtype integer of the batch modification.
protected int $type
Résultat integer

$values protected_oe property

The values of the modification.
protected array $values
Résultat array