Class XoopsModelSync
Usage of methods provided by XoopsModelSync:
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: perform query
- XoopsModelAbstract
- XoopsModelSync
Package: kernel\model
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/sync.php
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/sync.php
public
boolean
|
#
cleanOrphan( string $table_link = '', string $field_link = '', string $field_object = '' )
Clean orphan objects against linked objects |
public
boolean
|
__construct(),
setHandler(),
setVars()
|
$handler
|