API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|
Public Member Functions | |
create ($isNew=true) | |
get ($id) | |
insert (XoopsObject $pm, $force=false) | |
delete (XoopsObject $pm) | |
getObjects (CriteriaElement $criteria=null, $id_as_key=false) | |
getCount (CriteriaElement $criteria=null) | |
setRead (XoopsPrivmessage $pm) | |
Public Member Functions inherited from XoopsObjectHandler | |
__construct (XoopsDatabase $db) | |
XoopsObjectHandler ($db) | |
create () | |
get ($id) | |
insert (XoopsObject $object) | |
delete (XoopsObject $object) | |
Additional Inherited Members | |
Data Fields inherited from XoopsObjectHandler | |
$db | |
create | ( | $isNew = true | ) |
delete | ( | XoopsObject | $pm | ) |
Delete from the database
XoopsPrivmessage | $pm | XoopsPrivmessage object |
Reimplemented from XoopsObjectHandler.
get | ( | $id | ) |
Load a XoopsPrivmessage
object
int | $id | ID of the message |
Reimplemented from XoopsObjectHandler.
getCount | ( | CriteriaElement | $criteria = null | ) |
Count message
CriteriaElement | CriteriaCompo | $criteria | = null CriteriaElement object |
getObjects | ( | CriteriaElement | $criteria = null , |
$id_as_key = false |
|||
) |
Load messages from the database
CriteriaElement | CriteriaCompo | $criteria | CriteriaElement object |
bool | $id_as_key | use ID as key into the array? |
XoopsPrivmessage
objects insert | ( | XoopsObject | $pm, |
$force = false |
|||
) |
Insert a message in the database
XoopsPrivmessage | $pm | XoopsPrivmessage object |
bool | $force | flag to force the query execution skip request method check, which might be required in some situations |
XoopsObject | XoopsPrivmessage | $pm | a XoopsMembership object |
setRead | ( | XoopsPrivmessage | $pm | ) |
Mark a message as read
XoopsPrivmessage | $pm | XoopsPrivmessage object |
@TODO: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5