|
| create ($isNew=true) |
|
| get ($id) |
|
| insert (XoopsObject $comment) |
|
| delete (XoopsObject $comment) |
|
| getObjects (CriteriaElement $criteria=null, $id_as_key=false) |
|
| getCount (CriteriaElement $criteria=null) |
|
| deleteAll (CriteriaElement $criteria=null) |
|
| getList (CriteriaElement $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 (XoopsComment $comment, $field_name, $field_value) |
|
| deleteByModule ($module_id) |
|
Public Member Functions inherited from XoopsObjectHandler |
| __construct (XoopsDatabase $db) |
|
| XoopsObjectHandler ($db) |
|
| create () |
|
| get ($id) |
|
| insert (XoopsObject $object) |
|
| delete (XoopsObject $object) |
|
◆ create()
◆ delete()
◆ deleteAll()
Delete multiple comments
- Parameters
-
- Returns
- bool
◆ deleteByModule()
deleteByModule |
( |
|
$module_id | ) |
|
Delete all comments for one whole module
- Parameters
-
int | $module_id | ID of the module |
- Returns
- bool
◆ get()
◆ getByItemId()
getByItemId |
( |
|
$module_id, |
|
|
|
$item_id, |
|
|
|
$order = null , |
|
|
|
$status = null , |
|
|
|
$limit = null , |
|
|
|
$start = 0 |
|
) |
| |
Retrieves comments for an item
- Parameters
-
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 |
- Returns
- array Array of
XoopsComment
objects
◆ getCount()
Count Comments
- Parameters
-
- Returns
- int Count
◆ getCountByItemId()
getCountByItemId |
( |
|
$module_id, |
|
|
|
$item_id, |
|
|
|
$status = null |
|
) |
| |
Gets total number of comments for an item
- Parameters
-
int | $module_id | Module ID |
int | $item_id | Item ID |
int | $status | Status of the comment |
- Returns
- array Array of
XoopsComment
objects
◆ getList()
Get a list of comments
- Parameters
-
- Returns
- array Array of raw database records
◆ getObjects()
◆ getThread()
getThread |
( |
|
$comment_rootid, |
|
|
|
$comment_id, |
|
|
|
$status = null |
|
) |
| |
Retrieve a whole thread
- Parameters
-
int | $comment_rootid | |
int | $comment_id | |
int | $status | |
- Returns
- array Array of
XoopsComment
objects
◆ getTopComments()
getTopComments |
( |
|
$module_id, |
|
|
|
$item_id, |
|
|
|
$order, |
|
|
|
$status = null |
|
) |
| |
Get the top XoopsComment
s
- Parameters
-
int | $module_id | |
int | $item_id | |
string | $order | |
int | $status | |
- Returns
- array Array of
XoopsComment
objects
◆ insert()
Write a comment to database
- Parameters
-
- Returns
- bool true on success, otherwise false
Reimplemented from XoopsObjectHandler.
◆ updateByField()
updateByField |
( |
XoopsComment |
$comment, |
|
|
|
$field_name, |
|
|
|
$field_value |
|
) |
| |
Update
- Parameters
-
- Returns
- bool
The documentation for this class was generated from the following file: