|
XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
| & | create ($isNew=true) |
| & | get ($id) |
| insert (&$comment) | |
| delete (&$comment) | |
| & | getObjects ($criteria=null, $id_as_key=false) |
| getCount ($criteria=null) | |
| deleteAll ($criteria=null) | |
| & | getList ($criteria=null) |
| & | getByItemId ($module_id, $item_id, $order=null, $status=null, $limit=null, $start=0) |
| & | getCountByItemId ($module_id, $item_id, $status=null) |
| & | getTopComments ($module_id, $item_id, $order, $status=null) |
| & | getThread ($comment_rootid, $comment_id, $status=null) |
| updateByField (&$comment, $field_name, $field_value) | |
| deleteByModule ($module_id) | |
| getChildObjects (&$comment) | |
| deleteWithChild (&$comment) | |
Public Member Functions inherited from XoopsObjectHandler | |
| __construct (&$db) | |
| & | create () |
Additional Inherited Members | |
Data Fields inherited from XoopsObjectHandler | |
| $db | |
Definition at line 110 of file comment.php.
| & create | ( | $isNew = true | ) |
Create a XoopsComment
| bool | $isNew | Flag the object as "new"? |
Definition at line 120 of file comment.php.
| delete | ( | & | $comment | ) |
Delete a XoopsComment from the database
| object | &$comment |
Reimplemented from XoopsObjectHandler.
Definition at line 220 of file comment.php.
| deleteAll | ( | $criteria = null | ) |
Delete multiple comments
| object | $criteria | CriteriaElement |
Definition at line 296 of file comment.php.
| deleteByModule | ( | $module_id | ) |
Delete all comments for one whole module
| int | $module_id | ID of the module |
Definition at line 438 of file comment.php.
| deleteWithChild | ( | & | $comment | ) |
Definition at line 481 of file comment.php.
| & get | ( | $id | ) |
Retrieve a XoopsComment
| int | $id | ID |
XoopsComment, FALSE on fail Reimplemented from XoopsObjectHandler.
Definition at line 136 of file comment.php.
| & getByItemId | ( | $module_id, | |
| $item_id, | |||
| $order = null, | |||
| $status = null, | |||
| $limit = null, | |||
| $start = 0 ) |
Retrieves comments for an item
| int | $module_id | Module ID |
| int | $item_id | Item ID |
| string | $order | Sort order |
| int | $status | Status of the comment |
| int | $limit | Max num of comments to retrieve |
| int | $start | Start offset |
XoopsComment objects Definition at line 337 of file comment.php.
| getChildObjects | ( | & | $comment | ) |
Change a value in multiple comments
| $comment |
Definition at line 464 of file comment.php.
| getCount | ( | $criteria = null | ) |
Count Comments
| object | $criteria | CriteriaElement |
Definition at line 276 of file comment.php.
| & getCountByItemId | ( | $module_id, | |
| $item_id, | |||
| $status = null ) |
Gets total number of comments for an item
| int | $module_id | Module ID |
| int | $item_id | Item ID |
| int | $status | Status of the comment |
Definition at line 363 of file comment.php.
| & getList | ( | $criteria = null | ) |
Get a list of comments
| object | $criteria | CriteriaElement |
Definition at line 315 of file comment.php.
| & getObjects | ( | $criteria = null, | |
| $id_as_key = false ) |
Get some XoopsComments
| object | $criteria | |
| bool | $id_as_key | Use IDs as keys into the array? |
XoopsComment objects Definition at line 240 of file comment.php.
| & getThread | ( | $comment_rootid, | |
| $comment_id, | |||
| $status = null ) |
Retrieve a whole thread
| int | $comment_rootid | |
| int | $comment_id | |
| int | $status |
XoopsComment objects Definition at line 406 of file comment.php.
| & getTopComments | ( | $module_id, | |
| $item_id, | |||
| $order, | |||
| $status = null ) |
Get the top XoopsComments
| int | $module_id | |
| int | $item_id | |
| strint | $order | |
| int | $status |
XoopsComment objects Definition at line 384 of file comment.php.
| insert | ( | & | $comment | ) |
Write a comment to database
| object | &$comment |
Reimplemented from XoopsObjectHandler.
Definition at line 161 of file comment.php.
| updateByField | ( | & | $comment, |
| $field_name, | |||
| $field_value ) |
Update
| object | &$comment | XoopsComment object |
| string | $field_name | Name of the field |
| mixed | $field_value | Value to write |
Definition at line 425 of file comment.php.