Открытые члены | |
__construct ($source=null) | |
setMessageInfo (Message $message) | |
setMessageId (?int $messageId) | |
toRestFormat (array $option=[]) | |
getMessageId () | |
getPopupData (array $excludedList=[]) | |
![]() | |
toRestFormatIdOnly () | |
getId () | |
setId (int $id) | |
getPrimaryId () | |
setPrimaryId (int $primaryId) | |
getAuthorId () | |
setAuthorId (int $authorId) | |
getChatId () | |
setChatId (int $chatId) | |
getEntityId () | |
setEntityId (?int $entityId) | |
getDateCreate () | |
setDateCreate (DateTime $dateCreate) | |
getEntity () | |
setEntity (RestEntity $entity) | |
![]() | |
load ($source) | |
prepareFields () | |
getDataEntity () | |
save () | |
delete () | |
markChanged () | |
isChanged () | |
markDrop () | |
isDeleted () | |
fill (array $source) | |
toArray () | |
![]() | |
setRegistry (Registry $registry) | |
getRegistry () | |
Открытые статические члены | |
static | getDataClass () |
static | getEntityClassName () |
static | getRestEntityName () |
static | initByEntity (EO_LinkFavorite $entity) |
static | createFromMessage (Message $message, ?Context $context=null) |
static | getByMessageAndUserId (Message $message, int $userId) |
static | linkEntityToMessage (Entity $entity, Message $message) |
![]() | |
static | linkEntityToMessage (RestEntity $entity, Message $message) |
Защищенные статические члены | |
static | getEntityIdFieldName () |
![]() | |
static | mirrorDataEntityFields () |
Дополнительные унаследованные члены | |
![]() | |
int | $id = null |
int | $authorId |
int | $messageId = null |
int | $chatId |
int | $entityId |
DateTime | $dateCreate |
RestEntity | $entity |
@method Message getEntity()()
См. определение в файле FavoriteItem.php строка 19
__construct | ( | $source = null | ) |
См. определение в файле FavoriteItem.php строка 23
См. определение в файле FavoriteItem.php строка 65
|
static |
См. определение в файле FavoriteItem.php строка 79
|
static |
Returns ORM tablet class name.
Замещает ActiveRecord.
См. определение в файле FavoriteItem.php строка 33
|
static |
Переопределяет метод предка BaseLinkItem.
См. определение в файле FavoriteItem.php строка 43
|
staticprotected |
Переопределяет метод предка BaseLinkItem.
См. определение в файле FavoriteItem.php строка 38
getMessageId | ( | ) |
Переопределяет метод предка BaseLinkItem.
См. определение в файле FavoriteItem.php строка 133
getPopupData | ( | array | $excludedList = [] | ) |
Returns the data to be raised to the top of the REST response. Works on the principle of the composite pattern.
string[] | $excludedList |
Переопределяет метод предка BaseLinkItem.
См. определение в файле FavoriteItem.php строка 138
|
static |
Returns the name of the entity that will be used in the rest response
Замещает RestConvertible.
См. определение в файле FavoriteItem.php строка 48
|
static |
См. определение в файле FavoriteItem.php строка 53
См. определение в файле FavoriteItem.php строка 102
setMessageId | ( | ?int | $messageId | ) |
Переопределяет метод предка BaseLinkItem.
См. определение в файле FavoriteItem.php строка 114
setMessageInfo | ( | Message | $message | ) |
Associates the entity with the passed message by filling in the messageId, chatId and authorId
Message | $message |
Переопределяет метод предка BaseLinkItem.
См. определение в файле FavoriteItem.php строка 107
toRestFormat | ( | array | $option = [] | ) |
Returns an array in JSON like format to return the entity as a rest response.
array | $option |
Переопределяет метод предка BaseLinkItem.
См. определение в файле FavoriteItem.php строка 121