|
UNA
|
Public Member Functions | |
| __construct (&$oMainModule, &$oDb) | |
| runMigration () | |
| getTotalRecords () | |
| dropMID ($sIdentFieldName='', $sTableName='') | |
| removeContent () | |
| getFieldType ($sFieldName) | |
Protected Member Functions | |
| setResultStatus ($sStatus) | |
| getContentId ($iId) | |
| getProfileId ($iId) | |
| isModuleContentTransferred ($sModule) | |
| getAssocFields () | |
| isKeyPreKeyExits ($sName) | |
| transferCategory ($sName, $sPrefix, $sCategory, $iValue=0, $sData='') | |
| transferPreValues ($sName, $sTitle, $mixedValues, $bAdd=false) | |
| getPreValuesBy ($sName, $sField='Order', $sValue='LKey', $iStart=0) | |
| getDefaultLang ($bName=true) | |
| getLKeyTranslations ($LKey) | |
| transferTags ($iObjectId, $iNewObjectId, $sType, $sTableKeywords) | |
| transferComments ($iObject, $iEntryId, $sType='photos') | |
| createMIDField ($sIdentFieldName='', $sTableName='') | |
| getLastMIDField ($sIdentFieldName='', $sTableName='') | |
| isItemExisted ($iItemId, $sField='id', $sIdentFieldName='', $sTableName='') | |
| setMID ($iId, $iItemId, $sField='id', $sIdentFieldName='') | |
| getDefaultPrivacy ($iDolProfileId, $sModule, $sAction) | |
| getValidPrivacy ($iPrivacy) | |
| getPrivacy ($iDolProfileId, $iPrivacy, $sModule='', $sAction='', $iDefaultPrivacy=0) | |
Base class for all migration classes contains general variables and function for modules' migration classes
| BxDolMData::__construct | ( | & | $oMainModule, |
| & | $oDb ) |
Base class constructor
| ref | $oMainModule | main module |
| ref | $oDb | connect with Dolphin database |
Reimplemented in BxDolMBlogs, BxDolMChat, BxDolMConv, BxDolMEvents, BxDolMFiles, BxDolMForum, BxDolMGroups, BxDolMMarket, BxDolMMemLevels, BxDolMPhotoAlbums, BxDolMPhotos, BxDolMPolls, BxDolMProfiles, BxDolMQuotes, BxDolMShoutBox, BxDolMSimpleMessenger, BxDolMTimeline, BxDolMVideoAlbums, and BxDolMVideos.
|
protected |
Create migration field in main table for transferring content from Dolphin to UNA and contains id of the object in Dolphin
| string | $sIdentFieldName | |
| string | $sTableName | name of the table to add the index field |
| BxDolMData::dropMID | ( | $sIdentFieldName = '', | |
| $sTableName = '' ) |
Drop migration field from the table
| string | $sIdentFieldName | field name to store id from original table (in case if you don't want to use default field) |
| string | $sTableName | table name in which to create the field |
Reimplemented in BxDolMChat, BxDolMShoutBox, and BxDolMVideoAlbums.
|
protected |
Returns list of the fields which should be transferred to Persons module
|
protected |
Returns content id of transferred member from Dolphin
| int | $iId | Dolphin's profile ID |
|
protected |
Returns default language name/id
| boolean | $bName | return language name, otherwise id |
|
protected |
Returns last migration field value
| string | $sIdentFieldName | |
| string | $sTableName | name of the table to add the index field |
|
protected |
Returns translations for all existed languages on Dolphin by language key
| string | $LKey | language key |
|
protected |
Returns pre values array by list name in pairs format
| string | $sName | name of the list |
| string | $sField | array's index field name |
| string | $sValue | array's value field name |
| int | $iStart | - allows to set start value and get values above it only |
|
protected |
Returns person id of transferred member from Dolphin
| int | $iId | Dolphin's profile ID |
| BxDolMData::getTotalRecords | ( | ) |
Gets total records for transferring
Reimplemented in BxDolMBlogs, BxDolMChat, BxDolMConv, BxDolMEvents, BxDolMFiles, BxDolMForum, BxDolMGroups, BxDolMMarket, BxDolMMemLevels, BxDolMPhotoAlbums, BxDolMPhotos, BxDolMPolls, BxDolMProfiles, BxDolMProfilesFields, BxDolMQuotes, BxDolMShoutBox, BxDolMSimpleMessenger, BxDolMTimeline, BxDolMVideoAlbums, and BxDolMVideos.
|
protected |
Check if this record was already transferred
| int | $iItemId | object id in Dolphin |
| string | $sField | field name with id values in Dolphin |
| string | $sIdentFieldName | |
| string | $sTableName | name of the table to add the index field |
|
protected |
Check if the list already exists in una pre values list
| string | $sName | list name |
|
protected |
Check if the module was transfered
| string | $sModule | name from the list @uses BxDolMConfig::_aMigrationModules |
| BxDolMData::removeContent | ( | ) |
Removes all transferred content from UNA
Reimplemented in BxDolMBlogs, BxDolMChat, BxDolMConv, BxDolMEvents, BxDolMFiles, BxDolMForum, BxDolMGroups, BxDolMMarket, BxDolMMemLevels, BxDolMPhotoAlbums, BxDolMPhotos, BxDolMPolls, BxDolMProfiles, BxDolMProfilesFields, BxDolMQuotes, BxDolMShoutBox, BxDolMSimpleMessenger, BxDolMTimeline, BxDolMVideoAlbums, and BxDolMVideos.
| BxDolMData::runMigration | ( | ) |
Main migration function, executes required operations for transfer
Reimplemented in BxDolMBlogs, BxDolMChat, BxDolMConv, BxDolMEvents, BxDolMFiles, BxDolMForum, BxDolMGroups, BxDolMMarket, BxDolMMemLevels, BxDolMPhotoAlbums, BxDolMPhotos, BxDolMPolls, BxDolMProfiles, BxDolMProfilesFields, BxDolMQuotes, BxDolMShoutBox, BxDolMSimpleMessenger, BxDolMTimeline, BxDolMVideoAlbums, and BxDolMVideos.
|
protected |
Set value for migrated record to migration field
| int | $iId | object id in UNA |
| int | $iItemId | object id in Dolphin |
| string | $sField | id field name |
| string | $sIdentFieldName |
|
protected |
Set Migration Status
| string | $sStatus | message |
|
protected |
Adds category to existed list
| string | $sName | category title |
| string | $sPrefix | prefix for the module which should be used for new category (depends on module) |
| int | $sCategory | module's category's pre values Name |
Reimplemented in BxDolMBlogs, BxDolMEvents, BxDolMFiles, BxDolMForum, BxDolMGroups, BxDolMMarket, and BxDolMPolls.
|
protected |
Transfer comments for module's items
| int | $iObject | object ID in UNA |
| int | $iEntryId | object ID in Dolphin |
| string | $sType | module name for transfer @uses BxDolMConfig::_aMigrationModules |
|
protected |
Transfer fields lists with translations
| string | $sName | field name |
| string | $sTitle | translation |
| mixed | $mixedValues | contains name of the list which already exists or array values for transfer |
| bool | $bAdd | don't add value to already exited fields list |
|
protected |
Transfer Tags from the module, to meta
| int | $iObjectId | module's item ID in Dolphin |
| int | $iNewObjectId | module's item ID in UNA |
| int | $sType | module's prefix in Dolphin |
| int | $sTableKeywords | table name in UNA for tags migration |