External comment API functions.
More...
◆ add_comments()
static core_comment_external::add_comments |
( |
| $comments | ) |
|
|
static |
Add a comment or comments.
- Parameters
-
array | $comments | the array of comments to create. |
- Return values
-
array | the array containing those comments created. |
- Exceptions
-
- Since
- Moodle 3.8
◆ add_comments_parameters()
static core_comment_external::add_comments_parameters |
( |
| ) |
|
|
static |
Returns description of method parameters for the add_comments method.
- Return values
-
external_function_parameters | |
- Since
- Moodle 3.8
◆ add_comments_returns()
static core_comment_external::add_comments_returns |
( |
| ) |
|
|
static |
Returns description of method result value for the add_comments method.
- Return values
-
- Since
- Moodle 3.8
◆ delete_comments()
static core_comment_external::delete_comments |
( |
array | $comments | ) |
|
|
static |
Deletes a comment or comments.
- Parameters
-
array | $comments | array of comment ids to be deleted |
- Return values
-
- Exceptions
-
- Since
- Moodle 3.8
◆ delete_comments_parameters()
static core_comment_external::delete_comments_parameters |
( |
| ) |
|
|
static |
Returns description of method parameters for the delete_comments() method.
- Return values
-
external_function_parameters | |
- Since
- Moodle 3.8
◆ delete_comments_returns()
static core_comment_external::delete_comments_returns |
( |
| ) |
|
|
static |
◆ get_comment_structure()
static core_comment_external::get_comment_structure |
( |
| ) |
|
|
staticprotected |
Helper to get the structure of a single comment.
- Return values
-
external_single_structure | the comment structure. |
◆ get_comments()
static core_comment_external::get_comments |
( |
| $contextlevel, |
|
|
| $instanceid, |
|
|
| $component, |
|
|
| $itemid, |
|
|
| $area = '', |
|
|
| $page = 0, |
|
|
| $sortdirection = 'DESC' ) |
|
static |
Return a list of comments.
- Parameters
-
string | $contextlevel | ('system, course, user', etc..) |
int | $instanceid | |
string | $component | the name of the component |
int | $itemid | the item id |
string | $area | comment area |
int | $page | page number |
string | $sortdirection | sort direction |
- Return values
-
array | of comments and warnings |
- Since
- Moodle 2.9
◆ get_comments_parameters()
static core_comment_external::get_comments_parameters |
( |
| ) |
|
|
static |
Returns description of method parameters.
- Return values
-
external_function_parameters | |
- Since
- Moodle 2.9
◆ get_comments_returns()
static core_comment_external::get_comments_returns |
( |
| ) |
|
|
static |
Returns description of method result value.
- Return values
-
- Since
- Moodle 2.9
The documentation for this class was generated from the following file:
- comment/classes/external.php