![]() |
API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|


Public Member Functions | |
| validateLinks () | |
| & | getByLink (CriteriaElement $criteria=null, $fields=null, $asObject=true, $field_link=null, $field_object=null) |
| getCountByLink (CriteriaElement $criteria=null) | |
| getCountsByLink (CriteriaElement $criteria=null) | |
| updateByLink ($data, CriteriaElement $criteria=null) | |
| deleteByLink (CriteriaElement $criteria=null) | |
Public Member Functions inherited from XoopsModelAbstract | |
| __construct ($args=null, $handler=null) | |
| setHandler ($handler) | |
| setVars ($args) | |
Additional Inherited Members | |
Data Fields inherited from XoopsModelAbstract | |
| $handler | |
Object joint handler class.
XoopsModelAbstract Usage of methods provided by XoopsModelJoint:
Step #1: set linked table and adjoint fields through XoopsPersistableObjectHandler: $handler->table_link = $handler->db->prefix("the_linked_table"); // full name of the linked table that is used for the query $handler->field_link = "the_linked_field"; // name of field in linked table that will be used to link the linked table with current table $handler->field_object = "the_object_field"; // name of field in current table that will be used to link the linked table with current table; linked field name will be used if the field name is not set Step #2: fetch data
| deleteByLink | ( | CriteriaElement | $criteria = null | ) |
Delete objects matching a condition against linked objects
| CriteriaElement | CriteriaCompo | $criteria | CriteriaElement to match |

| & getByLink | ( | CriteriaElement | $criteria = null, |
$fields = null, |
|||
$asObject = true, |
|||
$field_link = null, |
|||
$field_object = null |
|||
| ) |
get a list of objects matching a condition joint with another related object
| CriteriaElement | CriteriaCompo | $criteria | |
| array | $fields | variables to fetch |
| bool | $asObject | flag indicating as object, otherwise as array |
| string | $field_link | field of linked object for JOIN; deprecated, for backward compatibility |
| string | $field_object | field of current object for JOIN; deprecated, for backward compatibility |

| getCountByLink | ( | CriteriaElement | $criteria = null | ) |
Count of objects matching a condition
| CriteriaElement | CriteriaCompo | $criteria | CriteriaElement to match |

| getCountsByLink | ( | CriteriaElement | $criteria = null | ) |
array of count of objects matching a condition of, groupby linked object keyname
| CriteriaElement | CriteriaCompo | $criteria | CriteriaElement to match |

| updateByLink | ( | $data, | |
| CriteriaElement | $criteria = null |
||
| ) |
update objects matching a condition against linked objects
| array | $data | array of key => value |
| CriteriaElement | CriteriaCompo | $criteria | CriteriaElement to match |
| validateLinks | ( | ) |
Validate information for the link
@access private
