1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
filltypeswithsettingsvaluesstepper.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Bizproc\Worker\Template
;
4
5
use Bitrix\Bizproc\WorkflowTemplateTable;
6
use
Bitrix\Main
;
7
8
class
FillTypesWithSettingsValuesStepper
extends
Main\Update\Stepper
9
{
10
protected
static
$moduleId
=
'bizproc'
;
11
private
const
STEP_ROWS_LIMIT = 100;
12
13
public
function
execute
(
array
&
$option
)
14
{
15
$lastId
= (int)($this->
getOuterParams
()[0] ?? 0);
16
$newLastId =
null
;
17
18
$result
= \CBPWorkflowTemplateLoader::getList(
19
[
'ID'
=>
'ASC'
],
20
[
'>ID'
=>
$lastId
],
21
false
,
22
[
'nTopCount'
=> self::STEP_ROWS_LIMIT],
23
[
'ID'
,
'AUTO_EXECUTE'
,
'TEMPLATE'
,
'MODULE_ID'
,
'ENTITY'
,
'DOCUMENT_TYPE'
]
24
);
25
26
$loader = \CBPWorkflowTemplateLoader::GetLoader();
27
28
while
($row =
$result
->fetch())
29
{
30
try
31
{
32
$newLastId = (int)$row[
'ID'
];
33
$loader->getTemplateType($row);
34
$loader->setTemplateType($row);
35
36
WorkflowTemplateTable::update(
37
$row[
'ID'
],
38
[
'TYPE'
=> $row[
'TYPE'
]],
39
);
40
}
41
catch
(\Throwable $e)
42
{
43
44
}
45
}
46
47
if
($newLastId && $newLastId !==
$lastId
)
48
{
49
$this->
setOuterParams
([$newLastId]);
50
51
return
self::CONTINUE_EXECUTION;
52
}
53
54
return
self::FINISH_EXECUTION;
55
}
56
}
Bitrix\Bizproc\Worker\Template\FillTypesWithSettingsValuesStepper
Определения
filltypeswithsettingsvaluesstepper.php:9
Bitrix\Bizproc\Worker\Template\FillTypesWithSettingsValuesStepper\execute
execute(array &$option)
Определения
filltypeswithsettingsvaluesstepper.php:13
Bitrix\Bizproc\Worker\Template\FillTypesWithSettingsValuesStepper\$moduleId
static $moduleId
Определения
filltypeswithsettingsvaluesstepper.php:10
Bitrix\Main\Update\Stepper
Определения
stepper.php:29
Bitrix\Main\Update\Stepper\getOuterParams
getOuterParams()
Определения
stepper.php:212
Bitrix\Main\Update\Stepper\setOuterParams
setOuterParams(array $outerParams)
Определения
stepper.php:207
$lastId
if(!\Bitrix\Main\Loader::includeModule('clouds')) $lastId
Определения
sync.php:68
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$result
$result
Определения
get_property_values.php:14
Bitrix\Bizproc\Worker\Template
Определения
filltypeswithsettingsvaluesstepper.php:3
Bitrix\Main
$option
$option
Определения
options.php:1711
bitrix
modules
bizproc
lib
worker
template
filltypeswithsettingsvaluesstepper.php
Создано системой
1.14.0