Moodle  2.2.1
http://www.collinsharper.com
comment_manager Class Reference

Public Member Functions

 __construct ()
 get_comments ($page)
 print_comments ($page=0)
 delete_comment ($commentid)
 delete_comments ($list)

Detailed Description

Definition at line 25 of file locallib.php.


Constructor & Destructor Documentation

Constructs the comment_manage object

Definition at line 36 of file locallib.php.


Member Function Documentation

delete_comment ( commentid)

Delete a comment

Parameters:
int$commentid
Returns:
bool

Definition at line 187 of file locallib.php.

delete_comments ( list)

Delete comments

Parameters:
string$listA list of comment ids separated by hyphens
Returns:
bool

Definition at line 201 of file locallib.php.

get_comments ( page)

Return comments by pages

moodle_database $DB

Parameters:
int$page
Returns:
array An array of comments

Definition at line 48 of file locallib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

print_comments ( page = 0)

Print comments

Parameters:
int$page
Returns:
boolean return false if no comments available

Definition at line 141 of file locallib.php.

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations