XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
XoopsModelSync Class Reference
Inheritance diagram for XoopsModelSync:
Inheritance graph

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
 

Detailed Description

Object synchronization handler class.

Author
Taiwen Jiang phppp.nosp@m.@use.nosp@m.rs.so.nosp@m.urce.nosp@m.forge.nosp@m..net

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

Definition at line 39 of file sync.php.

Member Function Documentation

XoopsModelSync::cleanOrphan (   $table_link = '',
  $field_link = '',
  $field_object = '' 
)

Clean orphan objects against linked objects

Parameters
string$table_linktable of linked object for JOIN; deprecated, for backward compat
string$field_linkfield of linked object for JOIN; deprecated, for backward compat
string$field_objectfield of current object for JOIN; deprecated, for backward compat
Returns
bool true on success

for MySQL 4.1+

Definition at line 49 of file sync.php.

References $result, and $sql.

XoopsModelSync::synchronization ( )

Synchronizing objects

Deprecated:
Returns
bool true on success

Definition at line 90 of file sync.php.


The documentation for this class was generated from the following file: