1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс ActionFactory

Открытые статические члены

static getAction (string $actionName, ?bool $undo=false)
static isActionExists (string $actionName)
static getActionClass (string $actionName, ?bool $undo=false)
static getDirectionName (?bool $undo=false)
static compareSteps (array $prevStep, array $nextStep)

Поля данных

const MULTIPLY_ACTION_NAME = 'MULTIPLY'

Защищенные данные

const UNDO = 'UNDO'
const REDO = 'REDO'
const ACTIONS
const COMPARE_METHOD = 'compareParams'

Подробное описание

Factory for create actions

См. определение в файле ActionFactory.php строка 32

Методы

◆ compareSteps()

compareSteps ( array $prevStep,
array $nextStep )
static

No need processing steps if there are equal. Compare for match it

Аргументы
array$prevSteparray of step data
array$nextSteparray of step data
Возвращает
bool true if steps are equal

См. определение в файле ActionFactory.php строка 194

◆ getAction()

getAction ( string $actionName,
?bool $undo = false )
static
Аргументы
string$actionName- just available actions
bool | null$undo- if need redo - false
Возвращает
BaseAction|null

См. определение в файле ActionFactory.php строка 134

◆ getActionClass()

getActionClass ( string $actionName,
?bool $undo = false )
static

Get action class by direction (undo or redo)

Аргументы
string$actionName
bool$undo- if need redo - false
Возвращает
string|null

См. определение в файле ActionFactory.php строка 165

◆ getDirectionName()

getDirectionName ( ?bool $undo = false)
static

Get name of direction by bool

Аргументы
bool | null$undodefault false (redo)
Возвращает
string

См. определение в файле ActionFactory.php строка 183

◆ isActionExists()

isActionExists ( string $actionName)
static

Check correctly action name

Аргументы
string$actionName
Возвращает
bool

См. определение в файле ActionFactory.php строка 154

Поля

◆ ACTIONS

const ACTIONS
protected

См. определение в файле ActionFactory.php строка 36

◆ COMPARE_METHOD

const COMPARE_METHOD = 'compareParams'
protected

См. определение в файле ActionFactory.php строка 127

◆ MULTIPLY_ACTION_NAME

const MULTIPLY_ACTION_NAME = 'MULTIPLY'

См. определение в файле ActionFactory.php строка 126

◆ REDO

const REDO = 'REDO'
protected

См. определение в файле ActionFactory.php строка 35

◆ UNDO

const UNDO = 'UNDO'
protected

См. определение в файле ActionFactory.php строка 34


Объявления и описания членов класса находятся в файле: