NodeAttributes extends Stepper
Class Stepper
Table of Contents
Constants
- CONTINUE_EXECUTING = true
- CONTINUE_EXECUTION = true
- DELAY_COEFFICIENT = 0.5
- FINISH_EXECUTION = false
- OPTION_NAME = 'blocks_attrs_update'
- OPTION_STATUS_NAME = 'blocks_attrs_update_status'
- STEP_PORTION = 1
- STOP_EXECUTING = false
- THRESHOLD_TIME = 20.0
Methods
- __destruct() : mixed
- bind() : void
- Adds agent for current class.
- bindClass() : void
- Adds agent for class $className for $moduleId module. Example for updater: \Bitrix\Main\Stepper::bindClass('\Bitrix\SomeModule\SomeClass', 'somemodule').
- checkRequest() : void
- Just method to check request.
- createInstance() : Stepper
- Just a fabric method.
- disableBlockDelete() : EventResult
- Before delete block handler.
- disablePublication() : EventResult
- Before publication landing handler.
- execAgent() : string
- Executes an agent.
- execute() : bool
- Executes some action, and if return value is false, agent will be deleted.
- getHtml() : string
- Returns HTML to show updates.
- getModuleId() : string
- Wrap-function to get moduleId.
- getOuterParams() : array<string|int, mixed>
- getTitle() : mixed
- makeArguments() : string
- It is possible to pass only integer and string values for now. But you can make your own method or extend this one.
- removeCustomEvents() : mixed
- If agent not exist - we must broke events, to preserve infinity blocking publication and delete
- setOuterParams() : void
- updateFormDomain() : mixed
- Set data for NodeUpdater to updating form domain
- updateFormDomainByConnector() : mixed
- Update form domain, when updated b24 connector
Constants
CONTINUE_EXECUTING
public
mixed
CONTINUE_EXECUTING
= true
CONTINUE_EXECUTION
public
mixed
CONTINUE_EXECUTION
= true
DELAY_COEFFICIENT
public
mixed
DELAY_COEFFICIENT
= 0.5
FINISH_EXECUTION
public
mixed
FINISH_EXECUTION
= false
OPTION_NAME
public
mixed
OPTION_NAME
= 'blocks_attrs_update'
OPTION_STATUS_NAME
public
mixed
OPTION_STATUS_NAME
= 'blocks_attrs_update_status'
STEP_PORTION
public
mixed
STEP_PORTION
= 1
STOP_EXECUTING
public
mixed
STOP_EXECUTING
= false
THRESHOLD_TIME
public
mixed
THRESHOLD_TIME
= 20.0
Methods
__destruct()
public
__destruct() : mixed
Does nothing.
bind()
Adds agent for current class.
public
static bind([int $delay = 300 ][, array<string|int, mixed> $withArguments = [] ]) : void
Parameters
- $delay : int = 300
-
Delay for running agent
- $withArguments : array<string|int, mixed> = []
-
Data that will available in $stepper->outerParams
bindClass()
Adds agent for class $className for $moduleId module. Example for updater: \Bitrix\Main\Stepper::bindClass('\Bitrix\SomeModule\SomeClass', 'somemodule').
public
static bindClass(string $className, string $moduleId[, int $delay = 300 ][, array<string|int, mixed> $withArguments = [] ]) : void
Parameters
- $className : string
-
Class like \Bitrix\SomeModule\SomeClass extends Stepper.
- $moduleId : string
-
Module ID like somemodule.
- $delay : int = 300
-
Delay for running agent
- $withArguments : array<string|int, mixed> = []
checkRequest()
Just method to check request.
public
static checkRequest() : void
createInstance()
Just a fabric method.
public
static createInstance() : Stepper
Return values
StepperdisableBlockDelete()
Before delete block handler.
public
static disableBlockDelete(Event $event) : EventResult
Parameters
- $event : Event
-
Event instance.
Return values
EventResultdisablePublication()
Before publication landing handler.
public
static disablePublication(Event $event) : EventResult
Parameters
- $event : Event
-
Event instance.
Return values
EventResultexecAgent()
Executes an agent.
public
static execAgent() : string
Return values
stringexecute()
Executes some action, and if return value is false, agent will be deleted.
public
execute(array<string|int, mixed> &$result) : bool
Parameters
- $result : array<string|int, mixed>
Return values
boolgetHtml()
Returns HTML to show updates.
public
static getHtml([array<string|int, mixed>|string $ids = [] ][, string $title = "" ]) : string
Parameters
- $ids : array<string|int, mixed>|string = []
- $title : string = ""
Return values
stringgetModuleId()
Wrap-function to get moduleId.
public
static getModuleId() : string
Return values
stringgetOuterParams()
public
getOuterParams() : array<string|int, mixed>
Return values
array<string|int, mixed>getTitle()
public
static getTitle() : mixed
makeArguments()
It is possible to pass only integer and string values for now. But you can make your own method or extend this one.
public
static makeArguments([array<string|int, mixed> $arguments = [] ]) : string
Parameters
- $arguments : array<string|int, mixed> = []
Return values
stringremoveCustomEvents()
If agent not exist - we must broke events, to preserve infinity blocking publication and delete
public
static removeCustomEvents() : mixed
setOuterParams()
public
setOuterParams(array<string|int, mixed> $outerParams) : void
Parameters
- $outerParams : array<string|int, mixed>
updateFormDomain()
Set data for NodeUpdater to updating form domain
public
static updateFormDomain([array<string|int, mixed> $domains = array() ]) : mixed
Parameters
- $domains : array<string|int, mixed> = array()
updateFormDomainByConnector()
Update form domain, when updated b24 connector
public
static updateFormDomainByConnector(Event $event) : mixed
Parameters
- $event : Event