Class Joint
Object joint handler class.
- Xoops\Core\Kernel\XoopsModelAbstract
- Xoops\Core\Kernel\Model\Joint
Package: Xoops\Core\Kernel
Category: Xoops\Core\Kernel\Model\Joint
Copyright: 2000-2015 XOOPS Project (http://xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Taiwen Jiang phppp@users.sourceforge.net
Since:
2.3.0
Usage of methods provided by XoopsModelJoint:
Step #1: set linked table and joint fields through XoopsPersistableObjectHandler: $handler->table_link = $handler->db2->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
Link: http://xoops.org
Located at oops_lib/Xoops/Core/Kernel/Model/Joint.php
public
false|array
|
#
getByLink(
get a list of objects matching a condition joint with another related object |
public
false|integer
|
#
getCountByLink(
Count of objects matching a condition |
public
false|integer
|
#
getCountsByLink(
array of count of objects matching a condition of, groupby linked object keyname |
public
false|integer
|
#
updateByLink( array $data,
update objects matching a condition against linked objects |
public
false|integer
|
#
deleteByLink(
Delete objects matching a condition against linked objects |
setHandler(),
setVars()
|
$handler
|