XOOPS 2.5.6
Final
|
Public Member Functions | |
& | create ($isNew=true) |
delete (&$comment) | |
deleteAll ($criteria=null) | |
deleteByModule ($module_id) | |
& | get ($id) |
getByItemId ($module_id, $item_id, $order=null, $status=null, $limit=null, $start=0) | |
getCount ($criteria=null) | |
getCountByItemId ($module_id, $item_id, $status=null) | |
getList ($criteria=null) | |
getObjects ($criteria=null, $id_as_key=false) | |
getThread ($comment_rootid, $comment_id, $status=null) | |
getTopComments ($module_id, $item_id, $order, $status=null) | |
insert (&$comment) | |
updateByField (&$comment, $field_name, $field_value) | |
Public Member Functions inherited from XoopsObjectHandler | |
& | create () |
delete (&$object) | |
& | get ($int_id) |
insert (&$object) | |
XoopsObjectHandler (&$db) | |
Additional Inherited Members | |
Public Attributes inherited from XoopsObjectHandler | |
$db | |
Definition at line 280 of file comment.php.
& XoopsCommentHandler::create | ( | $isNew = true | ) |
Create a XoopsComment
bool | $isNew | Flag the object as "new"? |
Definition at line 289 of file comment.php.
References $comment.
XoopsCommentHandler::delete | ( | & | $comment | ) |
Delete a XoopsComment from the database
object | &$comment |
: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5
Definition at line 372 of file comment.php.
XoopsCommentHandler::deleteAll | ( | $criteria = null | ) |
Delete multiple comments
object | $criteria | CriteriaElement |
Definition at line 451 of file comment.php.
References $criteria, $result, and $sql.
Referenced by deleteByModule().
XoopsCommentHandler::deleteByModule | ( | $module_id | ) |
Delete all comments for one whole module
int | $module_id | ID of the module |
Definition at line 591 of file comment.php.
References $module_id, and deleteAll().
& XoopsCommentHandler::get | ( | $id | ) |
Retrieve a XoopsComment
int | $id | ID |
Definition at line 305 of file comment.php.
XoopsCommentHandler::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 |
Definition at line 492 of file comment.php.
References $criteria, $limit, $module_id, $start, $status, and getObjects().
XoopsCommentHandler::getCount | ( | $criteria = null | ) |
Count Comments
object | $criteria | CriteriaElement |
Definition at line 431 of file comment.php.
References $criteria, $result, and $sql.
Referenced by getCountByItemId().
XoopsCommentHandler::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 518 of file comment.php.
References $criteria, $module_id, $status, and getCount().
XoopsCommentHandler::getList | ( | $criteria = null | ) |
Get a list of comments
object | $criteria | CriteriaElement |
Definition at line 470 of file comment.php.
References $comments, $criteria, $i, $ret, and getObjects().
XoopsCommentHandler::getObjects | ( | $criteria = null , |
|
$id_as_key = false |
|||
) |
Get some XoopsComments
object | $criteria | |
bool | $id_as_key | Use IDs as keys into the array? |
Definition at line 395 of file comment.php.
References $comment, $criteria, $limit, $result, $ret, $sql, and $start.
Referenced by getByItemId(), getList(), getThread(), and getTopComments().
XoopsCommentHandler::getThread | ( | $comment_rootid, | |
$comment_id, | |||
$status = null |
|||
) |
Retrieve a whole thread
int | $comment_rootid | |
int | $comment_id | |
int | $status |
Definition at line 559 of file comment.php.
References $criteria, $status, and getObjects().
XoopsCommentHandler::getTopComments | ( | $module_id, | |
$item_id, | |||
$order, | |||
$status = null |
|||
) |
Get the top XoopsComments
int | $module_id | |
int | $item_id | |
strint | $order | |
int | $status |
Definition at line 538 of file comment.php.
References $criteria, $module_id, $status, and getObjects().
XoopsCommentHandler::insert | ( | & | $comment | ) |
Write a comment to database
object | &$comment |
: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5
Definition at line 330 of file comment.php.
References $com_email, $com_icon, $com_id, $com_itemid, $com_modid, $com_pid, $com_rootid, $com_status, $com_text, $com_title, $com_url, $com_user, $comment, $dobr, $dohtml, $doimage, $dosmiley, $doxcode, $result, and $sql.
Referenced by updateByField().
XoopsCommentHandler::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 578 of file comment.php.
References $comment, and insert().