SignDocumentLog extends SignDocument
Class Presenter
This class is used for generating history data model in timeline controllers. Implements the pattern 'Bridge'
Abstraction - Presenter Implementation - @see \Bitrix\Crm\Timeline\HistoryDataModel\EntityImplementation
This base class is used as 'null-object', therefore it is not abstract
Table of Contents
Constants
- CREATED_TIME_FORMAT = 'Y-m-d H:i:s'
- DOCUMENT_DATA_KEY = 'DOCUMENT_DATA'
- MESSAGE_DATA_KEY = 'MESSAGE_DATA'
Methods
- __construct() : mixed
- Presenter constructor.
- prepareHistoryDataModel() : array<string|int, mixed>
- Prepare HistoryDataModel for specific event type and entity type
Constants
CREATED_TIME_FORMAT
public
mixed
CREATED_TIME_FORMAT
= 'Y-m-d H:i:s'
DOCUMENT_DATA_KEY
public
mixed
DOCUMENT_DATA_KEY
= 'DOCUMENT_DATA'
MESSAGE_DATA_KEY
public
mixed
MESSAGE_DATA_KEY
= 'MESSAGE_DATA'
Methods
__construct()
Presenter constructor.
public
__construct(EntityImplementation $entityImplementation) : mixed
Parameters
- $entityImplementation : EntityImplementation
-
- entity specific object that is used for customizing data model for a specified entity type
prepareHistoryDataModel()
Prepare HistoryDataModel for specific event type and entity type
public
prepareHistoryDataModel(array<string|int, mixed> $data[, array<string|int, mixed>|null $options = null ]) : array<string|int, mixed>
Parameters
- $data : array<string|int, mixed>
- $options : array<string|int, mixed>|null = null
-
= [ 'ENABLE_USER_INFO' => false, // prepare detailed author info (link, image, name). Disabled by default ];