| [ Index ] | PHP Cross Reference of Unnamed Project | 
[Source view] [Print] [Project Stats]
Functions and classes for comments management
| Copyright: | 2010 Dongsheng Cai {@link http://dongsheng.org} | 
| License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | 
| File Size: | 220 lines (8 kb) | 
| Included or required: | 0 times | 
| Referenced: | 1 time | 
| Includes or requires: | 0 files | 
comment_manager:: (7 methods):
  __construct()
  get_comments()
  setup_course()
  setup_plugin()
  print_comments()
  delete_comment()
  delete_comments()
Class: comment_manager - X-Ref
comment_manager is helper class to manage moodle comments in admin page (Reports->Comments)| __construct() X-Ref | 
| Constructs the comment_manage object | 
| get_comments($page) X-Ref | 
| Return comments by pages param: int $page return: array An array of comments | 
| setup_course($courseid) X-Ref | 
| Records the course object param: int $courseid | 
| setup_plugin($comment) X-Ref | 
| Sets up the module or block information for a comment param: stdClass $comment return: bool | 
| print_comments($page = 0) X-Ref | 
| Print comments param: int $page return: bool return false if no comments available | 
| delete_comment($commentid) X-Ref | 
| Delete a comment param: int $commentid return: bool | 
| delete_comments($list) X-Ref | 
| Delete comments param: string $list A list of comment ids separated by hyphens return: bool | 
| Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |