PHP Класс LdapTools\BatchModify\Batch

Автор: Chad Sikorra ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$attribute The attribute name the batch action will modify.
$modtype The batch modification type to perform.
$values The values for the batch action.

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

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

Защищенные методы

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

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

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

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

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

Get the attribute for this batch.
public getAttribute ( ) : string
Результат string

getModType() публичный метод

Get the modtype for this batch.
public getModType ( ) : integer
Результат integer

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

Get the values for this batch action.
public getValues ( ) : array
Результат array

isType() защищенный метод

Checks of this is a specific modtype.
protected isType ( string $type ) : boolean
$type string
Результат boolean

isTypeAdd() публичный метод

A convenience function to check if this batch type is an ADD action.
public isTypeAdd ( ) : boolean
Результат boolean

isTypeRemove() публичный метод

A convenience function to check if this batch type is a REMOVE action.
public isTypeRemove ( ) : boolean
Результат boolean

isTypeRemoveAll() публичный метод

A convenience function to check if this batch type is a REMOVE_ALL action.
public isTypeRemoveAll ( ) : boolean
Результат boolean

isTypeReplace() публичный метод

A convenience function to check if this batch type is a REPLACE action.
public isTypeReplace ( ) : boolean
Результат boolean

resolve() защищенный метод

Allows for an anonymous function to produce the final value.
protected resolve ( array $values ) : array
$values array
Результат array

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

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

setModType() публичный метод

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

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

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

toArray() публичный метод

Get the array representation of this batch action.
public toArray ( ) : array
Результат array

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

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

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

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

The batch modification type to perform.
protected $modtype

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

The values for the batch action.
protected $values