extends |
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
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
public
|
cleanOrphan(string $table_link = '', string $field_link = '', string $field_object = ''): bool
Clean orphan objects against linked objects
Clean orphan objects against linked objects Parameters
Returnstrue on success |
# | ||||||
public
|
synchronization(): bool
Synchronizing objects
Synchronizing objects Returnstrue on success |
# |
Methods inherited from XoopsModelAbstract |
---|
__construct(), setHandler(), setVars() |
Properties inherited from XoopsModelAbstract |
---|
$handler |