1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
deletestepper.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Bizproc\Worker\Document
;
4
5
use
Bitrix\Main
;
6
11
class
DeleteStepper
extends
Main\Update\Stepper
12
{
13
protected
static
$moduleId
=
'bizproc'
;
14
private
static
$delay = 0;
15
16
private
const
STEP_ROWS_LIMIT = 10;
17
18
public
function
execute
(
array
&
$option
)
19
{
20
$documentId = $this->
getOuterParams
();
21
$ids =
\CBPStateService::getIdsByDocument
($documentId, self::STEP_ROWS_LIMIT);
22
23
if
(empty($ids))
24
{
25
\CBPHistoryService::DeleteByDocument($documentId);
26
return
self::FINISH_EXECUTION;
27
}
28
29
foreach
($ids as $id)
30
{
31
\CBPDocument::killWorkflow($id,
false
);
32
}
33
34
return
self::CONTINUE_EXECUTION;
35
}
36
37
public
static
function
bindDocument
(
array
$documentId): void
38
{
39
$ids =
\CBPStateService::getIdsByDocument
($documentId, 1);
40
if
(empty($ids))
41
{
42
return
;
43
}
44
45
self::$delay += 60;
46
static::bind(self::$delay, $documentId);
47
}
48
}
Bitrix\Bizproc\Worker\Document\DeleteStepper
Определения
deletestepper.php:12
Bitrix\Bizproc\Worker\Document\DeleteStepper\bindDocument
static bindDocument(array $documentId)
Определения
deletestepper.php:37
Bitrix\Bizproc\Worker\Document\DeleteStepper\execute
execute(array &$option)
Определения
deletestepper.php:18
Bitrix\Bizproc\Worker\Document\DeleteStepper\$moduleId
static $moduleId
Определения
deletestepper.php:13
Bitrix\Main\Update\Stepper
Определения
stepper.php:29
Bitrix\Main\Update\Stepper\getOuterParams
getOuterParams()
Определения
stepper.php:212
CBPStateService\getIdsByDocument
static getIdsByDocument(array $documentId, int $limit=null)
Определения
stateservice.php:321
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Bizproc\Worker\Document
Определения
deletestepper.php:3
Bitrix\Main
$option
$option
Определения
options.php:1711
bitrix
modules
bizproc
lib
worker
document
deletestepper.php
Создано системой
1.14.0