API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|
Public Member Functions | |
cleanOrphan ($table_link='', $field_link='', $field_object='') | |
synchronization () | |
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 synchronization handler class.
XoopsModelAbstract
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
cleanOrphan | ( | $table_link = '' , |
|
$field_link = '' , |
|||
$field_object = '' |
|||
) |
Clean orphan objects against linked objects
string | $table_link | table of linked object for JOIN; deprecated, for backward compatibility |
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 |
for MySQL 4.1+
synchronization | ( | ) |
Synchronizing objects