[ Index ] |
|
Code source de XOOPS 2.0.17.1 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Author: | Kazumi Ono <onokazu@xoops.org> |
Copyright: | copyright (c) 2000-2003 XOOPS.org |
Poids: | 442 lignes (16 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
XoopsComment:: (2 méthodes):
XoopsComment()
isRoot()
XoopsCommentHandler:: (14 méthodes):
create()
get()
insert()
delete()
getObjects()
getCount()
deleteAll()
getList()
getByItemId()
getCountByItemId()
getTopComments()
getThread()
updateByField()
deleteByModule()
Classe: XoopsCommentHandler - X-Ref
XOOPS comment handler class.create($isNew = true) X-Ref |
Create a {@link XoopsComment} param: bool $isNew Flag the object as "new"? return: object |
get($id) X-Ref |
Retrieve a {@link XoopsComment} param: int $id ID return: object {@link XoopsComment}, FALSE on fail |
insert(&$comment) X-Ref |
Write a comment to database param: object &$comment return: bool |
delete(&$comment) X-Ref |
Delete a {@link XoopsComment} from the database param: object &$comment return: bool |
getObjects($criteria = null, $id_as_key = false) X-Ref |
Get some {@link XoopsComment}s param: object $criteria param: bool $id_as_key Use IDs as keys into the array? return: array Array of {@link XoopsComment} objects |
getCount($criteria = null) X-Ref |
Count Comments param: object $criteria {@link CriteriaElement} return: int Count |
deleteAll($criteria = null) X-Ref |
Delete multiple comments param: object $criteria {@link CriteriaElement} return: bool |
getList($criteria = null) X-Ref |
Get a list of comments param: object $criteria {@link CriteriaElement} return: array Array of raw database records |
getByItemId($module_id, $item_id, $order = null, $status = null, $limit = null, $start = 0) X-Ref |
Retrieves comments for an item param: int $module_id Module ID param: int $item_id Item ID param: string $order Sort order param: int $status Status of the comment param: int $limit Max num of comments to retrieve param: int $start Start offset return: array Array of {@link XoopsComment} objects |
getCountByItemId($module_id, $item_id, $status = null) X-Ref |
Gets total number of comments for an item param: int $module_id Module ID param: int $item_id Item ID param: int $status Status of the comment return: array Array of {@link XoopsComment} objects |
getTopComments($module_id, $item_id, $order, $status = null) X-Ref |
Get the top {@link XoopsComment}s param: int $module_id param: int $item_id param: strint $order param: int $status return: array Array of {@link XoopsComment} objects |
getThread($comment_rootid, $comment_id, $status = null) X-Ref |
Retrieve a whole thread param: int $comment_rootid param: int $comment_id param: int $status return: array Array of {@link XoopsComment} objects |
updateByField(&$comment, $field_name, $field_value) X-Ref |
Update param: object &$comment {@link XoopsComment} object param: string $field_name Name of the field param: mixed $field_value Value to write return: bool |
deleteByModule($module_id) X-Ref |
Delete all comments for one whole module param: int $module_id ID of the module return: bool |
Généré le : Sun Nov 25 11:44:32 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |