Documentation

Settings

Methods


This class is a standard storage for flags and [link=13977672]context[/link] for managing the process of [link=14005980]executed operations[/link].

Method Description Available from version
public function getContext(): Context
Get context.
public function setContext(Context $context): self
Set context.
public function disableAllChecks(): self
This method call is similar to methods disableCheckWorkflows(), disableCheckAccess(), disableCheckFields(), disableCheckRequiredUserFields().
enableAutomation / disableAutomation / isAutomationEnabled
Manages workflow launch.
enableBizProc / disableBizProc / isBizProcEnabled
Manages workflow template launch.
enableCheckAccess / disableCheckAccess / isCheckAccessEnabled
Manages access permission check.
isCheckFieldsEnabled / enableCheckFields / disableCheckFields
Manages completed fields and required fields check.
enableCheckRequiredUserFields / disableCheckRequiredUserFields / isCheckRequiredUserFields
Manages required fields check.
enableFieldProcession / disableFieldProcession / isFieldProcessionEnabled
Manages checks and updates, associated [link=13986312]fields logic[/link].
enableSaveToHistory / disableSaveToHistory / isSaveToHistoryEnabled
Manages history entries.
enableBeforeSaveActions / disableBeforeSaveActions / isBeforeSaveActionsEnabled
Manages additional actions before saving.
enableAfterSaveActions / disableAfterSaveActions / isAfterSaveActionsEnabled
Manages additional actions after saving.
enableCheckWorkflows / disableCheckWorkflows / isCheckWorkflowsEnabled
Manages launched workflows check.

Example


use Bitrix\Crm\Service;

$entityTypeId = 128;

$factory = Service\Container::getInstance()->getFactory($entityTypeId);

$item = $factory->createItem();
$item->setStageId('D128_3:CLIENT');

$operation = $factory->getAddOperation($item);

$operation->getSettings()->disableAllCheks();
© «Bitrix24», 2001-2024
Up