См. определение в файле feed.php строка 10
◆ add()
Add a comment
- Аргументы
-
array | $params | Fields for new message to add in table b_forum_message. |
- Возвращает
- array|bool
См. определение в файле feed.php строка 98
◆ canAdd()
Returns true if entity allows adding
- Возвращает
- bool
См. определение в файле feed.php строка 28
◆ canDelete()
Returns true if entity allows deleting.
- Возвращает
- bool
См. определение в файле feed.php строка 64
◆ canDeleteComment()
canDeleteComment |
( |
|
$commentId | ) |
|
- Аргументы
-
integer | $commentId | Message ID in b_forum_message to delete. |
- Возвращает
- bool
См. определение в файле feed.php строка 73
◆ canEdit()
Returns true if entity allows editing
- Возвращает
- bool
См. определение в файле feed.php строка 46
◆ canEditComment()
canEditComment |
( |
|
$commentId | ) |
|
- Аргументы
-
integer | $commentId | Message ID in b_forum_message to edit. |
- Возвращает
- bool
См. определение в файле feed.php строка 55
◆ canEditOwn()
- Возвращает
- bool
См. определение в файле feed.php строка 88
◆ canModerate()
- Возвращает
- bool
См. определение в файле feed.php строка 81
◆ canRead()
Returns true if entity allows reading
- Возвращает
- bool
См. определение в файле feed.php строка 37
◆ delete()
Delete a comment
- Аргументы
-
- Возвращает
- array|bool
См. определение в файле feed.php строка 141
◆ edit()
edit |
( |
|
$id, |
|
|
array |
$params |
|
) |
| |
Edit a comment
- Аргументы
-
integer | $id | Message id. |
array | $params | Fields to edit message. |
- Возвращает
- array|bool
См. определение в файле feed.php строка 120
◆ getPermission()
Returns permission From list: A < E < I < M < Q < U < Y.
- Возвращает
- string
См. определение в файле feed.php строка 243
◆ moderate()
Moderate comment with id
- Аргументы
-
integer | $id | Message id. |
boolean | $show | State for moderating: true - show, false - hide. |
- Возвращает
- array|bool
См. определение в файле feed.php строка 163
◆ send()
send |
( |
|
$id, |
|
|
array |
$params |
|
) |
| |
Render comment through the component and send into pull
- Аргументы
-
integer | $id | Message id. |
array | $params | Params for component including. |
- Возвращает
- bool
См. определение в файле feed.php строка 184
◆ setEditOwn()
- Аргументы
-
boolean | $allow | True or false. |
- Возвращает
- $this
См. определение в файле feed.php строка 233
◆ 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 | $permission | A,E,I,M,Q,U,Y. |
- Возвращает
- $this
См. определение в файле feed.php строка 223
◆ ERROR_PARAMS_MESSAGE
const ERROR_PARAMS_MESSAGE = 'params0004' |
◆ ERROR_PERMISSION
const ERROR_PERMISSION = 'params0005' |