comment_manager is helper class to manage moodle comments in admin page (Reports->Comments)
More...
comment_manager is helper class to manage moodle comments in admin page (Reports->Comments)
- Copyright
- 2010 Dongsheng Cai http://dongsheng.org
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ delete_comment()
comment_manager::delete_comment |
( |
|
$commentid | ) |
|
Delete a comment.
- Parameters
-
- Return values
-
◆ delete_comments()
comment_manager::delete_comments |
( |
|
$list | ) |
|
Delete comments.
- Parameters
-
string | $list | A list of comment ids separated by hyphens |
- Return values
-
◆ get_comments()
Return comments by pages.
$DB
- Parameters
-
- Return values
-
array | An array of comments |
◆ get_component_comments_since()
comment_manager::get_component_comments_since |
( |
|
$course, |
|
|
|
$context, |
|
|
|
$component, |
|
|
|
$since, |
|
|
|
$cm = null |
|
) |
| |
Get comments created since a given time.
- Parameters
-
stdClass | $course | course object |
stdClass | $context | context object |
string | $component | component name |
int | $since | the time to check |
stdClass | $cm | course module object |
- Return values
-
array | list of comments db records since the given timelimit |
- Since
- Moodle 3.2
◆ print_comments()
comment_manager::print_comments |
( |
|
$page = 0 | ) |
|
Print comments.
- Parameters
-
- Return values
-
bool | return false if no comments available |
The documentation for this class was generated from the following file: