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

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

 moveEventCommentsToNewXmlId (string $newEntityXmlId)
 canAdd ()
 canRead ()
 canEdit ()
 canEditComment ($commentId)
 canDelete ()
 canDeleteComment ($commentId)
 canModerate ()
 canEditOwn ()
 add (array $params)
 addComment (array $params)
 addServiceComment (array $data, int $serviceType=Service\Manager::TYPE_FORUM_DEFAULT, ?array $serviceData=null)
 edit ($id, array $params)
 delete ($id)
 moderate ($id, $show)
 send ($id, array $params)
 setPermission ($permission)
 setEditOwn ($allow)
 getPermission ()
Открытые члены унаследованные от BaseObject
 __construct ($forumId, $entity, $userId=null)
 getEntity ()
 getTopic ()
 hasErrors ()
 getErrors ()
 getForum ()
 setForumFields (array $params)
 getUser ()
 getUserUnreadMessageId ()
 setUserAsRead ()
 setUserLocation ()
 getApplication ()

Поля данных

const ERROR_PARAMS_MESSAGE = 'params0004'
const ERROR_PERMISSION = 'params0005'
Поля данных унаследованные от BaseObject
const ERROR_PARAMS_FORUM_ID = 'params0001'
const ERROR_PARAMS_TOPIC_ID = 'params0002'
const ERROR_PARAMS_ENTITY_ID = 'params0003'

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

Защищенные члены унаследованные от BaseObject
 setEntity (array $id)
 setTopic ()
 setForum ($id)
 setUser ($userId)
 getUserName ($userId)
Защищенные статические члены унаследованные от BaseObject
static checkForumId (&$forumId)
Защищенные данные унаследованные от BaseObject
 $user
 $entity
 $forum
 $topic
 $errorCollection

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

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

Методы

◆ add()

add ( array $params)

Add a comment like from a person

Аргументы
array$paramsFields for new message to add in table b_forum_message.
Возвращает
array|bool

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

◆ addComment()

addComment ( array $params)

Add a comment in general

Аргументы
array$paramsFields for new message to add in table b_forum_message.
Возвращает
array|null

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

◆ addServiceComment()

addServiceComment ( array $data,
int $serviceType = Service\Manager::TYPE_FORUM_DEFAULT,
?array $serviceData = null )

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

◆ canAdd()

canAdd ( )

Returns true if entity allows adding

Возвращает
bool

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

◆ canDelete()

canDelete ( )

Returns true if entity allows deleting.

Возвращает
bool

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

◆ canDeleteComment()

canDeleteComment ( $commentId)
Аргументы
integer$commentIdMessage ID in b_forum_message to delete.
Возвращает
bool

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

◆ canEdit()

canEdit ( )

Returns true if entity allows editing

Возвращает
bool

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

◆ canEditComment()

canEditComment ( $commentId)
Аргументы
integer$commentIdMessage ID in b_forum_message to edit.
Возвращает
bool

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

◆ canEditOwn()

canEditOwn ( )
Возвращает
bool

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

◆ canModerate()

canModerate ( )
Возвращает
bool

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

◆ canRead()

canRead ( )

Returns true if entity allows reading

Возвращает
bool

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

◆ delete()

delete ( $id)

Delete a comment

Аргументы
integer$idMessage id.
Возвращает
array|bool

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

◆ edit()

edit ( $id,
array $params )

Edit a comment

Аргументы
integer$idMessage id.
array$paramsFields to edit message.
Возвращает
array|bool

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

◆ getPermission()

getPermission ( )

Returns permission From list: A < E < I < M < Q < U < Y.

Возвращает
string

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

◆ moderate()

moderate ( $id,
$show )

Moderate comment with id

Аргументы
integer$idMessage id.
boolean$showState for moderating: true - show, false - hide.
Возвращает
array|bool

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

◆ moveEventCommentsToNewXmlId()

moveEventCommentsToNewXmlId ( string $newEntityXmlId)

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

◆ send()

send ( $id,
array $params )

Render comment through the component and send into pull

Аргументы
integer$idMessage id.
array$paramsParams for component including.
Возвращает
bool

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

◆ setEditOwn()

setEditOwn ( $allow)
Аргументы
boolean$allowTrue or false.
Возвращает
$this

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

◆ setPermission()

setPermission ( $permission)

Mainly this function for forum entity. In this case params have to from the list: A < E < I < M < Q < U < Y A - NO ACCESS E - READ I - ANSWER M - NEW TOPIC Q - MODERATE U - EDIT Y - FULL_ACCESS

Аргументы
string$permissionA,E,I,M,Q,U,Y.
Возвращает
$this

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

Поля

◆ ERROR_PARAMS_MESSAGE

const ERROR_PARAMS_MESSAGE = 'params0004'

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

◆ ERROR_PERMISSION

const ERROR_PERMISSION = 'params0005'

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


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/forum/lib/comments/feed.php