Bitrix API

Presenter

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'

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'

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 ];

Return values
array<string|int, mixed>

        
On this page

Search results