Class XoopsModelJoint
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
- XoopsModelAbstract
- XoopsModelJoint
Copyright: (c) 2000-2016 XOOPS Project (www.xoops.org)
License: GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Taiwen Jiang phppp@users.sourceforge.net
Located at lass/model/joint.php
public
|
|
public
array
&
|
#
getByLink(
get a list of objects matching a condition joint with another related object |
public
integer
|
|
public
integer
|
#
getCountsByLink(
array of count of objects matching a condition of, groupby linked object keyname |
public
integer
|
#
updateByLink( array $data,
update objects matching a condition against linked objects |
public
integer
|
#
deleteByLink(
Delete objects matching a condition against linked objects |
__construct(),
setHandler(),
setVars()
|
$handler
|