PHP Класс Adldap\Objects\BatchModification

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

build() публичный Метод

Builds the type of modification automatically based on the current and original values.
public build ( ) : BatchModification
Результат BatchModification

get() публичный Метод

Returns the built batch modification array.
public get ( ) : array | null
Результат array | null

getAttribute() публичный Метод

Returns the attribute of the modification.
public getAttribute ( ) : string
Результат string

getOriginal() публичный Метод

Returns the original value of the attribute before modification.
public getOriginal ( ) : mixed
Результат mixed

getType() публичный Метод

Returns the type of the modification.
public getType ( ) : integer
Результат integer

getValues() публичный Метод

Returns the values of the modification.
public getValues ( ) : array
Результат array

setAttribute() публичный Метод

Sets the attribute of the modification.
public setAttribute ( string $attribute ) : BatchModification
$attribute string
Результат BatchModification

setOriginal() публичный Метод

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

setType() публичный Метод

Sets the type of the modification.
public setType ( integer $type ) : BatchModification
$type integer
Результат BatchModification

setValues() публичный Метод

Sets the values of the modification.
public setValues ( array $values = [] ) : BatchModification
$values array
Результат BatchModification

Описание свойств

$attribute защищенное свойство

The attribute of the modification.
protected int|string $attribute
Результат integer | string

$original защищенное свойство

The original value of the attribute before modification.
protected null $original
Результат null

$type защищенное свойство

The modtype integer of the batch modification.
protected int $type
Результат integer

$values защищенное свойство

The values of the modification.
protected array $values
Результат array