UNA
Loading...
Searching...
No Matches
BxDolMForum Class Reference
Inheritance diagram for BxDolMForum:
BxDolMData

Public Member Functions

 __construct (&$oMigrationModule, &$oDb)
 
 getTotalRecords ()
 
 runMigration ()
 
 removeContent ()
 
- Public Member Functions inherited from BxDolMData
 dropMID ($sIdentFieldName='', $sTableName='')
 
 getFieldType ($sFieldName)
 

Protected Member Functions

 transferMessages ($iEntryId, $iTopicId)
 
 transferCategory ($sTitle, $sPrefix='bx_forum', $sCategory='bx_forum_cats', $iValue=0, $sData='')
 
- Protected Member Functions inherited from BxDolMData
 setResultStatus ($sStatus)
 
 getContentId ($iId)
 
 getProfileId ($iId)
 
 isModuleContentTransferred ($sModule)
 
 getAssocFields ()
 
 isKeyPreKeyExits ($sName)
 
 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)
 

Additional Inherited Members

- Protected Attributes inherited from BxDolMData
 $_oMainModule
 
 $_mDb
 
 $_sPrefix
 
 $_oDb
 
 $_sModuleName = ''
 
 $_sTableWithTransKey
 
 $_iTransferred = 0
 
 $_oLanguage = null
 
 $_aLanguages = array()
 
 $_sImagePhotoFiles = ''
 
 $_sTransferFieldIdent = 'mig_id'
 
 $_aSysProfiles = array()
 

Constructor & Destructor Documentation

◆ __construct()

BxDolMForum::__construct ( & $oMainModule,
& $oDb )

Base class constructor

Parameters
ref$oMainModulemain module
ref$oDbconnect with Dolphin database
Returns
void

Reimplemented from BxDolMData.

Member Function Documentation

◆ getTotalRecords()

BxDolMForum::getTotalRecords ( )

Gets total records for transferring

Returns
boolean

Reimplemented from BxDolMData.

◆ removeContent()

BxDolMForum::removeContent ( )

Removes all transferred content from UNA

Returns
void

Reimplemented from BxDolMData.

◆ runMigration()

BxDolMForum::runMigration ( )

Main migration function, executes required operations for transfer

Returns
boolean

Reimplemented from BxDolMData.

◆ transferCategory()

BxDolMForum::transferCategory ( $sName,
$sPrefix = 'bx_forum',
$sCategory = 'bx_forum_cats',
$iValue = 0,
$sData = '' )
protected

Adds category to existed list

Parameters
string$sNamecategory title
string$sPrefixprefix for the module which should be used for new category (depends on module)
int$sCategorymodule's category's pre values Name
Returns
string value of the added category

Reimplemented from BxDolMData.

◆ transferMessages()

BxDolMForum::transferMessages ( $iEntryId,
$iTopicId )
protected

Transfer Forum posts

Parameters
int$iEntryIdUNA forum ID
int$iTopicIdDolphin topic id
Returns
array first message, transferred posts number, last replay profile id, last replay time

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