Public Member Functions | |
export ($iProfileId) | |
exportFiles ($iProfileId) | |
exportSQL ($iProfileId) | |
Static Public Member Functions | |
static | getObjectInstance ($sObject) |
static & | getSystems () |
static | generateAllExports ($iProfileId) |
static | sendEmailNotification ($aProfile, $sFilename) |
static | createZip ($iProfileId, $aExports) |
Protected Member Functions | |
__construct ($aSystem) | |
_getFiles ($sTableName, $aFields, $iProfileId) | |
_getRows ($sTableName, $mixedCond, $iProfileId) | |
_getQuery ($sTableName, $mixedCond, $iProfileId) | |
_getFilePath ($sTableName, $sField, $sFileName, $sPrefix, $sExt) | |
_getFilesFromStmt ($sTableName, $oStmt, $aFields) | |
_getRowsFromStmt ($sTableName, $oStmt) | |
Protected Attributes | |
$_aSystem = array () | |
current export system array More... | |
$_oQuery = null | |
$_aTables = array() | |
array of tables for export, where key is table name and value can be string with condition (example: a = 'b') or array with full query (example: SELECT * FROM a WHERE b = 'c'). '{profile_id}' replacement marker can be used in condition or query More... | |
$_sFilesBaseDir = '' | |
base dir for files More... | |
$_aTablesWithFiles = array() | |
array of tables with files, where key is table name and value is array of fields, where key is field name and values are files prefixes More... | |
Base class for export user data
To add export to your module you need to add a record to 'sys_objects_exports' table and custom class:
id - autoincremented id for internal usage object - your unique module name, with vendor prefix, lowercase and spaces are underscored title - title of the export, or short description class_name - your custom class name class_file - file where your class_name is stored order - order in which this sitemap is generated active - is object active, allowed values 0 or 1
You can refer to Cheetah modules for sample records in this table and sample classes.
When writing export queries, make sure that data which isn't belonging to the exported user is anomyzed.
Definition at line 28 of file ChWsbExport.php.
|
protected |
Reimplemented in ChWmapExport, ChWallExport, ChVideosExport, ChStoreExport, ChSpyExport, ChSoundsExport, ChSitesExport, ChSimpleMessengerExport, ChShoutBoxExport, ChProfileCustomizeExport, ChPollExport, ChPhotosExport, ChPmtExport, ChNewsExport, ChGroupsExport, ChForumExport, ChFilesExport, ChFdbExport, ChFaceBookConnectExport, ChEventsExport, ChCRSSExport, ChDolphConExport, ChBlogsExport, ChAvaExport, ChArlExport, ChAdsExport, ChWsbExportProfile, and ChWsbExportFlash.
Definition at line 36 of file ChWsbExport.php.
|
protected |
Reimplemented in ChStoreExport, ChProfileCustomizeExport, ChGroupsExport, ChForumExport, ChEventsExport, and ChWsbExportFlash.
Definition at line 227 of file ChWsbExport.php.
|
protected |
Definition at line 200 of file ChWsbExport.php.
|
protected |
Definition at line 232 of file ChWsbExport.php.
|
protected |
Definition at line 215 of file ChWsbExport.php.
|
protected |
Definition at line 208 of file ChWsbExport.php.
|
protected |
Definition at line 254 of file ChWsbExport.php.
|
static |
Definition at line 121 of file ChWsbExport.php.
ChWsbExport::export | ( | $iProfileId | ) |
Generate export for current object and profile
$iProfileId | - profile ID to export data for |
Definition at line 166 of file ChWsbExport.php.
ChWsbExport::exportFiles | ( | $iProfileId | ) |
Generate files export for current object and profile
$iProfileId | - profile ID to export data for |
Definition at line 179 of file ChWsbExport.php.
ChWsbExport::exportSQL | ( | $iProfileId | ) |
Generate SQL export for current object and profile
$iProfileId | - profile ID to export data for |
Definition at line 192 of file ChWsbExport.php.
|
static |
get all modules exports
Definition at line 83 of file ChWsbExport.php.
|
static |
Get export object instance by object name
$sObject | object name |
Definition at line 47 of file ChWsbExport.php.
|
static |
get all systems
Definition at line 74 of file ChWsbExport.php.
|
static |
Definition at line 111 of file ChWsbExport.php.
|
protected |
current export system array
Definition at line 30 of file ChWsbExport.php.
|
protected |
array of tables for export, where key is table name and value can be string with condition (example: a
= 'b') or array with full query (example: SELECT * FROM a
WHERE b
= 'c'). '{profile_id}' replacement marker can be used in condition or query
Definition at line 32 of file ChWsbExport.php.
|
protected |
array of tables with files, where key is table name and value is array of fields, where key is field name and values are files prefixes
Definition at line 34 of file ChWsbExport.php.
|
protected |
Definition at line 31 of file ChWsbExport.php.
|
protected |
base dir for files
Definition at line 33 of file ChWsbExport.php.