|
| | 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) |
| |
Fonctions membres publiques hérités de XoopsObjectHandler |
| | __construct (XoopsDatabase $db) |
| |
| | XoopsObjectHandler ($db) |
| |
| | create () |
| |
◆ create()
◆ delete()
◆ deleteAll()
Delete multiple comments
- Paramètres
-
- Renvoie
- bool
◆ deleteByModule()
| deleteByModule |
( |
|
$module_id | ) |
|
Delete all comments for one whole module
- Paramètres
-
| int | $module_id | ID of the module |
- Renvoie
- bool
◆ get()
◆ getByItemId()
| getByItemId |
( |
|
$module_id, |
|
|
|
$item_id, |
|
|
|
$order = null, |
|
|
|
$status = null, |
|
|
|
$limit = null, |
|
|
|
$start = 0 |
|
) |
| |
Retrieves comments for an item
- Paramètres
-
| 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 |
- Renvoie
- array Array of XoopsComment objects
◆ getCount()
Count Comments
- Paramètres
-
- Renvoie
- int Count
◆ getCountByItemId()
| getCountByItemId |
( |
|
$module_id, |
|
|
|
$item_id, |
|
|
|
$status = null |
|
) |
| |
Gets total number of comments for an item
- Paramètres
-
| int | $module_id | Module ID |
| int | $item_id | Item ID |
| int | $status | Status of the comment |
- Renvoie
- array Array of XoopsComment objects
◆ getList()
Get a list of comments
- Paramètres
-
- Renvoie
- array Array of raw database records
◆ getObjects()
◆ getThread()
| getThread |
( |
|
$comment_rootid, |
|
|
|
$comment_id, |
|
|
|
$status = null |
|
) |
| |
Retrieve a whole thread
- Paramètres
-
| int | $comment_rootid | |
| int | $comment_id | |
| int | $status | |
- Renvoie
- array Array of XoopsComment objects
◆ getTopComments()
| getTopComments |
( |
|
$module_id, |
|
|
|
$item_id, |
|
|
|
$order, |
|
|
|
$status = null |
|
) |
| |
Get the top XoopsComments
- Paramètres
-
| int | $module_id | |
| int | $item_id | |
| string | $order | |
| int | $status | |
- Renvoie
- array Array of XoopsComment objects
◆ insert()
Write a comment to database
- Paramètres
-
- Renvoie
- bool true on success, otherwise false
Réimplémentée à partir de XoopsObjectHandler.
◆ updateByField()
| updateByField |
( |
XoopsComment |
$comment, |
|
|
|
$field_name, |
|
|
|
$field_value |
|
) |
| |
Update
- Paramètres
-
- Renvoie
- bool
La documentation de cette classe a été générée à partir du fichier suivant :