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

Открытые типы

enum  Reason : string { STRUCTURE = 'STRUCTURE' }

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

 __construct ($source=null)
 getPrimaryId ()
 setPrimaryId (int $primaryId)
 getUser ()
 getChat ()
 fillRestriction (bool $hideHistory, Chat $chat)
 prepareFields ()
 toRestFormat (array $option=[])
 getId ()
 setId (?int $id)
 getChatId ()
 setChatId (?int $chatId)
 getMessageType ()
 setMessageType (?string $messageType)
 getUserId ()
 setUserId (?int $userId)
 getStartId ()
 setStartId (?int $startId)
 getUnreadId ()
 setUnreadId (?int $unreadId)
 getLastId ()
 setLastId (?int $lastId)
 getLastSendId ()
 setLastSendId (?int $lastSendId)
 getLastSendMessageId ()
 setLastSendMessageId (?int $lastSendMessageId)
 getLastFileId ()
 setLastFileId (?int $lastFileId)
 getLastRead ()
 setLastRead (?DateTime $lastRead)
 getStatus ()
 setStatus (?int $status)
 getCallStatus ()
 setCallStatus (?int $callStatus)
 getMessageStatus ()
 setMessageStatus (?string $messageStatus)
 getNotifyBlock ()
 setNotifyBlock (?bool $notifyBlock)
 getManager ()
 setManager (?bool $manager)
 getCounter ()
 setCounter (?int $counter)
 getStartCounter ()
 setStartCounter (?int $startCounter)
 getReason ()
 setReason (Reason $reason)
 prepareReasonForLoad (string $reason)
 prepareReasonForSave (Reason $reason)
 isHidden ()
 markAsHidden (?bool $isHidden)
 getRole ()
 markAsFake ()
Открытые члены унаследованные от RegistryEntry
 setRegistry (Registry $registry)
 getRegistry ()
Открытые члены унаследованные от ActiveRecord
 load ($source)
 getDataEntity ()
 save ()
 delete ()
 markChanged ()
 isChanged ()
 markDrop ()
 isDeleted ()
 fill (array $source)
 toArray (bool $recursive)
Открытые члены унаследованные от 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 ()
 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 getDataClass ()
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)

Защищенные статические члены

static mirrorDataEntityFields ()

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

int $id = null
int $chatId = null
string $messageType = null
int $userId = null
int $startId = null
int $unreadId = null
int $lastId = null
int $lastSendId = null
int $lastSendMessageId = null
int $lastFileId = null
DateTime $lastRead = null
int $status = null
int $callStatus = null
string $messageStatus = null
bool $notifyBlock = null
bool $manager = null
int $counter = null
int $startCounter = null
User $user = null
Reason $reason = Reason::DEFAULT
bool $isHidden = null
bool $isFake = false
Защищенные данные унаследованные от 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 = []

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

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

Перечисления

◆ Reason

enum Reason : string
Элементы перечислений
STRUCTURE 

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

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

◆ __construct()

__construct ( $source = null)

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

Методы

◆ fillRestriction()

fillRestriction ( bool $hideHistory,
Chat $chat )

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

◆ getCallStatus()

getCallStatus ( )

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

◆ getChat()

getChat ( )

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

◆ getChatId()

getChatId ( )

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

◆ getCounter()

getCounter ( )

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

◆ getDataClass()

getDataClass ( )
static

Returns ORM tablet class name.

Возвращает
string

Замещает ActiveRecord.

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

◆ getId()

getId ( )

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

◆ getLastFileId()

getLastFileId ( )

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

◆ getLastId()

getLastId ( )

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

◆ getLastRead()

getLastRead ( )

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

◆ getLastSendId()

getLastSendId ( )

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

◆ getLastSendMessageId()

getLastSendMessageId ( )

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

◆ getManager()

getManager ( )

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

◆ getMessageStatus()

getMessageStatus ( )

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

◆ getMessageType()

getMessageType ( )

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

◆ getNotifyBlock()

getNotifyBlock ( )

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

◆ getPrimaryId()

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

Замещает ActiveRecord.

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

◆ getReason()

getReason ( )

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

◆ getRestEntityName()

getRestEntityName ( )
static

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

Возвращает
string

Замещает RestConvertible.

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

◆ getRole()

getRole ( )

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

◆ getStartCounter()

getStartCounter ( )

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

◆ getStartId()

getStartId ( )

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

◆ getStatus()

getStatus ( )

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

◆ getUnreadId()

getUnreadId ( )

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

◆ getUser()

getUser ( )

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

◆ getUserId()

getUserId ( )

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

◆ isHidden()

isHidden ( )

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

◆ markAsFake()

markAsFake ( )

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

◆ markAsHidden()

markAsHidden ( ?bool $isHidden)

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

◆ mirrorDataEntityFields()

mirrorDataEntityFields ( )
staticprotected
Возвращает
array<array>
См. также
Relation::setId
Relation::getId
Relation::setChatId
Relation::getChatId
Relation::setMessageType
Relation::getMessageType
Relation::setUserId
Relation::getUserId
Relation::setStartId
Relation::getStartId
Relation::setUnreadId
Relation::getUnreadId
Relation::setLastId
Relation::getLastId
Relation::setLastSendId
Relation::getLastSendId
Relation::setLastSendMessageId
Relation::getLastSendMessageId
Relation::setLastFileId
Relation::getLastFileId
Relation::setLastReadInternal
Relation::getLastRead
Relation::setStatus
Relation::getStatus
Relation::setCallStatus
Relation::getCallStatus
Relation::setMessageStatus
Relation::getMessageStatus
Relation::setNotifyBlock
Relation::getNotifyBlock
Relation::setManager
Relation::getManager
Relation::setCounter
Relation::getCounter
Relation::setStartCounter
Relation::getStartCounter
Relation::setReason
Relation::getReason
Relation::prepareReasonForLoad
Relation::prepareReasonForSave
Relation::markAsHidden
Relation::isHidden

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

◆ prepareFields()

prepareFields ( )

Fills and prepares the fields of the data entity.

Возвращает
Result

Замещает ActiveRecord.

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

◆ prepareReasonForLoad()

prepareReasonForLoad ( string $reason)

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

◆ prepareReasonForSave()

prepareReasonForSave ( Reason $reason)

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

◆ setCallStatus()

setCallStatus ( ?int $callStatus)

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

◆ setChatId()

setChatId ( ?int $chatId)

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

◆ setCounter()

setCounter ( ?int $counter)

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

◆ setId()

setId ( ?int $id)

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

◆ setLastFileId()

setLastFileId ( ?int $lastFileId)

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

◆ setLastId()

setLastId ( ?int $lastId)

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

◆ setLastRead()

setLastRead ( ?DateTime $lastRead)

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

◆ setLastSendId()

setLastSendId ( ?int $lastSendId)

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

◆ setLastSendMessageId()

setLastSendMessageId ( ?int $lastSendMessageId)

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

◆ setManager()

setManager ( ?bool $manager)

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

◆ setMessageStatus()

setMessageStatus ( ?string $messageStatus)

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

◆ setMessageType()

setMessageType ( ?string $messageType)

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

◆ setNotifyBlock()

setNotifyBlock ( ?bool $notifyBlock)

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

◆ setPrimaryId()

setPrimaryId ( int $primaryId)
Аргументы
int$primaryId
Возвращает
self

Замещает ActiveRecord.

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

◆ setReason()

setReason ( Reason $reason)

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

◆ setStartCounter()

setStartCounter ( ?int $startCounter)

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

◆ setStartId()

setStartId ( ?int $startId)

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

◆ setStatus()

setStatus ( ?int $status)

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

◆ setUnreadId()

setUnreadId ( ?int $unreadId)

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

◆ setUserId()

setUserId ( ?int $userId)

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

◆ toRestFormat()

toRestFormat ( array $option = [])

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

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

Замещает RestConvertible.

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

Поля

◆ $callStatus

int $callStatus = null
protected

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

◆ $chatId

int $chatId = null
protected

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

◆ $counter

int $counter = null
protected

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

◆ $id

int $id = null
protected

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

◆ $isFake

bool $isFake = false
protected

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

◆ $isHidden

bool $isHidden = null
protected

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

◆ $lastFileId

int $lastFileId = null
protected

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

◆ $lastId

int $lastId = null
protected

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

◆ $lastRead

DateTime $lastRead = null
protected

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

◆ $lastSendId

int $lastSendId = null
protected

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

◆ $lastSendMessageId

int $lastSendMessageId = null
protected

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

◆ $manager

bool $manager = null
protected

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

◆ $messageStatus

string $messageStatus = null
protected

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

◆ $messageType

string $messageType = null
protected

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

◆ $notifyBlock

bool $notifyBlock = null
protected

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

◆ $reason

Reason $reason = Reason::DEFAULT
protected

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

◆ $startCounter

int $startCounter = null
protected

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

◆ $startId

int $startId = null
protected

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

◆ $status

int $status = null
protected

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

◆ $unreadId

int $unreadId = null
protected

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

◆ $user

User $user = null
protected

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

◆ $userId

int $userId = null
protected

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


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