XOOPS 2.5.6
Final
|
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) | |
XoopsObjectAbstract ($args=null, $handler=null) | |
Additional Inherited Members | |
Public Attributes inherited from XoopsModelAbstract | |
$handler | |
Object synchronization handler class.
XoopsObjectAbstract 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
XoopsModelSync::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 compat |
string | $field_link | field of linked object for JOIN; deprecated, for backward compat |
string | $field_object | field of current object for JOIN; deprecated, for backward compat |
for MySQL 4.1+
XoopsModelSync::synchronization | ( | ) |
Synchronizing objects