1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс ViewItem
Граф наследования:ViewItem:
RestEntity PopupDataAggregatable Entity RestConvertible

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

 __construct (int $id, int $messageId, int $userId, DateTime $dateView)
 getPopupData (array $excludedList=[])
 getId ()
 getMessageId ()
 getDateView ()
 getUserId ()
 toRestFormat (array $option=[])
Открытые члены унаследованные от Entity
 initializeField ($fieldName, $fieldInfo)
 reinitialize ($className)
 postInitialize ()
 getObjectClass ()
 getObjectClassName ()
 getCollectionClass ()
 getCollectionClassName ()
 createObject ($setDefaultValues=true)
 createCollection ()
 wakeUpObject ($row)
 wakeUpCollection ($rows)
 addField ($fieldInfo, $fieldName=null)
 getReferencesCountTo ($refEntityName)
 getReferencesTo ($refEntityName)
 getFields ()
 getField ($name)
 hasField ($name)
 getScalarFields ()
 getUField ($name)
 getName ()
 getFullName ()
 getNamespace ()
 getModule ()
 getDataClass ()
 getDBTableName ()
 getPrimary ()
 getPrimaryArray ()
 getAutoIncrement ()
 isUts ()
 isUtm ()
 getUfId ()
 setDefaultScope ($query)
 getCode ()
 getLangCode ()
 getTitle ()
 __clone ()
 createDbTable ()
 readFromCache ($ttl, $cacheId, $countTotal=false)
 writeToCache (Main\DB\Result $result, $cacheId, $countTotal=false)
 getCacheTtl ($ttl)
 cleanCache ()
 enableFullTextIndex ($field, $mode=true)
 fullTextIndexEnabled ($field)

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

static getRestEntityName ()
Открытые статические члены унаследованные от Entity
static get ($entityName)
static has ($entityName)
static getInstance ($entityName)
static getDefaultObjectClassName ($entityName)
static getDefaultCollectionClassName ($entityName)
static isExists ($name)
static normalizeEntityClass ($entityName)
static getEntityClassParts ($class)
static camel2snake ($str)
static snake2camel ($str)
static normalizeName ($entityName)
static compileObjectClass ($dataClass)
static compileCollectionClass ($dataClass)
static destroy ($entity)
static onUserTypeChange ($userfield, $id=null)

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

int $id
int $messageId
DateTime $dateView
int $userId
Защищенные данные унаследованные от Entity
 $className
 $module
 $name
 $connectionName
 $dbTableName
 $primary
 $autoIncrement
 $uf_id
 $isUts
 $isUtm
 $fields
 $fieldsMap
 $u_fields
 $code
 $references
 $isClone = false

Дополнительные унаследованные члены

Поля данных унаследованные от Entity
const DEFAULT_OBJECT_PREFIX = 'EO_'
Защищенные члены унаследованные от Entity
 appendField (Field $field)
 getCacheDir ()
Статические защищенные данные унаследованные от Entity
static $instances
static $ufIdIndex = []

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

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

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

◆ __construct()

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

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

Методы

◆ getDateView()

getDateView ( )

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

◆ getId()

getId ( )

См. определение в файле 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()

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|null

Замещает 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


Объявления и описания членов класса находятся в файле: