Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
IProvider.php
1<?php
2
4
6
15interface IProvider
16{
20 public static function getModuleId(): string;
21
26 public static function getContractorByDocumentId(int $documentId): ?IContractor;
27
28 // region Documents grid
29
33 public static function getDocumentsGridFilterFields(): array;
34
39 public static function isDocumentsGridFilterFieldSupported(string $fieldId): bool;
40
45 public static function getDocumentsGridFilterFieldData(string $fieldId): array;
46
51 public static function setDocumentsGridFilter(array &$filter): void;
52
53 // endregion
54
55 // region Document card
56
60 public static function getEditorFieldType(): string;
61
65 public static function getEditorFieldData(): array;
66
71 public static function getEditorEntityData(int $documentId): array;
72
77 public static function processDocumentCardAjaxActions(string $action): void;
78
82 public static function onAfterDocumentDelete(int $documentId): void;
83
88 public static function onBeforeDocumentSave(array $fields): Result;
89
95 public static function onAfterDocumentSaveSuccess(int $documentId, Result $result, array $options = []): void;
96
102 public static function onAfterDocumentSaveFailure(?int $documentId, Result $result, array $options = []): void;
103
109 public static function onAfterDocumentSaveSuccessForMobile(int $documentId, array $data): void;
110
111 // endregion
112}
static onAfterDocumentSaveSuccessForMobile(int $documentId, array $data)
static onAfterDocumentSaveFailure(?int $documentId, Result $result, array $options=[])
static onAfterDocumentSaveSuccess(int $documentId, Result $result, array $options=[])
static isDocumentsGridFilterFieldSupported(string $fieldId)
static getDocumentsGridFilterFieldData(string $fieldId)
static getContractorByDocumentId(int $documentId)
static processDocumentCardAjaxActions(string $action)