Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс ViewItem
+ Граф наследования:ViewItem:

Открытые члены

 __construct (int $id, int $messageId, int $userId, DateTime $dateView)
 
 getPopupData (array $excludedList=[])
 
 getId ()
 
 getMessageId ()
 
 getDateView ()
 
 getUserId ()
 
 toRestFormat (array $option=[])
 

Открытые статические члены

static getRestEntityName ()
 

Защищенные данные

int $id
 
int $messageId
 
DateTime $dateView
 
int $userId
 

Подробное описание

См. определение в файле ViewItem.php строка 12

Конструктор(ы)

◆ __construct()

__construct ( int $id,
int $messageId,
int $userId,
DateTime $dateView )

См. определение в файле ViewItem.php строка 21

Методы

◆ getDateView()

getDateView ( )

См. определение в файле ViewItem.php строка 44

◆ getId()

getId ( )

Returns the id of the entity

Возвращает
int|null

Замещает Entity.

См. определение в файле ViewItem.php строка 34

◆ getMessageId()

getMessageId ( )

См. определение в файле ViewItem.php строка 39

◆ getPopupData()

getPopupData ( array $excludedList = [])

Returns the data to be raised to the top of the REST response. Works on the principle of the composite pattern.

См. также
RestAdapter::toRestFormat()
Аргументы
string[]$excludedList
Возвращает
PopupData

Замещает PopupDataAggregatable.

См. определение в файле ViewItem.php строка 29

◆ getRestEntityName()

static getRestEntityName ( )
static

Returns the name of the entity that will be used in the rest response

Возвращает
string

Замещает RestConvertible.

См. определение в файле ViewItem.php строка 54

◆ getUserId()

getUserId ( )

См. определение в файле ViewItem.php строка 49

◆ toRestFormat()

toRestFormat ( array $option = [])

Returns an array in JSON like format to return the entity as a rest response.

Аргументы
array$option
Возвращает
array

Замещает RestConvertible.

См. определение в файле ViewItem.php строка 59

Данные класса

◆ $dateView

DateTime $dateView
protected

См. определение в файле ViewItem.php строка 18

◆ $id

int $id
protected

См. определение в файле ViewItem.php строка 16

◆ $messageId

int $messageId
protected

См. определение в файле ViewItem.php строка 17

◆ $userId

int $userId
protected

См. определение в файле ViewItem.php строка 19