/** * Class constructor; * * @param : $oMigrationModule (object) - object instance of migration class; * @param : $rOldDb (resourse) - connect to old dolphin's database; * @param : $oDolModule (object); * @return : void; */ function BxDataMigrationOrcaForum(&$oMigrationModule, &$rOldDb, $oDolModule = '', $isGroupForum = false) { parent::BxDataMigrationData($oMigrationModule, $rOldDb, $oDolModule); $this->isGroupForum = $isGroupForum; $this->sOldTablePrefix = !$this->isGroupForum ? 'pre_' : 'grp_'; $this->sNewTablePrefix = !$this->isGroupForum ? 'bx_' : 'bx_groups_'; }
/** * Class constructor; * * @param : $oMigrationModule (object) - object instance of migration class; * @param : $rOldDb (resourse) - connect to old dolphin's database; * @param : $oDolModule (object); * @return : void; */ function BxDataMigrationSounds(&$oMigrationModule, &$rOldDb, $oDolModule = '') { parent::BxDataMigrationData($oMigrationModule, $rOldDb, $oDolModule); $this->sNewAlbumNames = getParam('bx_sounds_profile_album_name'); $sMainPrefix = $oDolModule->_oConfig->getMainPrefix(); $this->sType = $sMainPrefix; $this->sTablePrefix = $sMainPrefix . '_'; }
/** * Class constructor; * * @param : $oMigrationModule (object) - object instance of migration class; * @param : $rOldDb (resourse) - connect to old dolphin's database; * @param : $oDolModule (object); * @return : void; */ function BxDataMigrationSharedPhotos(&$oMigrationModule, &$rOldDb, $oDolModule = '') { parent::BxDataMigrationData($oMigrationModule, $rOldDb, $oDolModule); $this->sType = 'bx_photos'; $this->sOldFilesPath = 'media/images/sharingImages/'; $this->aOldTables = array('main' => 'sharePhotoFiles', 'favorite' => 'sharePhotoFavorites', 'rate' => 'gphoto_rating', 'rate_track' => 'gphoto_voting_track', 'cmts' => 'CmtsSharedPhoto'); $this->sNewAlbumName = $oDolModule->_oConfig->getGlParam('profile_album_name'); $this->sNewFilesPath = 'modules/boonex/photos/data/files/'; $this->aNewSizes = array('icon' => array('width' => $oDolModule->_oConfig->getGlParam('icon_width'), 'height' => $oDolModule->_oConfig->getGlParam('icon_height'), 'postfix' => '_ri'), 'thumb' => array('width' => $oDolModule->_oConfig->getGlParam('thumb_width'), 'height' => $oDolModule->_oConfig->getGlParam('thumb_height'), 'postfix' => '_rt'), 'browse' => array('width' => $oDolModule->_oConfig->getGlParam('browse_width'), 'height' => $oDolModule->_oConfig->getGlParam('browse_height'), 'postfix' => '_t'), 'file' => array('width' => $oDolModule->_oConfig->getGlParam('file_width'), 'height' => $oDolModule->_oConfig->getGlParam('file_height'), 'postfix' => '_m')); }
/** * Class constructor; * * @param : $oMigrationModule (object) - object instance of migration class; * @param : $rOldDb (resourse) - connect to old dolphin's database; * @param : $oDolModule (object); * @return : void; */ function BxDataMigrationVideos(&$oMigrationModule, &$rOldDb, $oDolModule = '') { parent::BxDataMigrationData($oMigrationModule, $rOldDb, $oDolModule); $this->sType = 'bx_videos'; $this->sOldFilesPath = 'ray/modules/movie/files/'; $this->aOldFileTypes = array('.jpg', '.flv', '.mpg'); $this->aOldTables = array('main' => 'RayMovieFiles', 'favorite' => 'shareVideoFavorites', 'rate' => 'gvideo_rating', 'rate_track' => 'gvideo_voting_track', 'cmts' => 'CmtsSharedVideo'); $this->sNewAlbumName = $oDolModule->_oConfig->getGlParam('profile_album_name'); $this->sNewFilesPath = 'flash/modules/video/files/'; $this->aNewSizes = array('thumb' => array('width' => $oDolModule->_oConfig->getGlParam('browse_width'), 'height' => $oDolModule->_oConfig->getGlParam('browse_height'), 'postfix' => '_small.jpg'), 'file' => array('width' => $oDolModule->_oConfig->getGlParam('file_width'), 'height' => $oDolModule->_oConfig->getGlParam('file_height'), 'postfix' => '.mp4')); }
function BxDataMigrationPhotos(&$oMigrationModule, &$rOldDb, $oDolModule = '') { parent::BxDataMigrationData($oMigrationModule, $rOldDb, $oDolModule); $this->aPhotoObjects = array('profile_photos' => array('class' => 'BxDataMigrationProfilePhotos', 'file' => 'BxDataMigrationProfilePhotos.php'), 'shared_photos' => array('class' => 'BxDataMigrationSharedPhotos', 'file' => 'BxDataMigrationSharedPhotos.php')); }
/** * Class constructor; * * @param : $oMigrationModule (object) - object instance of migration class; * @param : $rOldDb (resourse) - connect to old dolphin's database; * @param : $oDolModule (object); * @return : void; */ function BxDataMigrationBlogs(&$oMigrationModule, &$rOldDb, $oDolModule = '') { parent::BxDataMigrationData($oMigrationModule, $rOldDb, $oDolModule); }
function BxDataMigrationArticles(&$oMigrationModule, &$rOldDb, $oDolModule = '') { parent::BxDataMigrationData($oMigrationModule, $rOldDb, $oDolModule); $this->_sType = 'bx_' . $this->oDolModule->_oConfig->getUri(); }
/** * Class constructor; * * @param : $oMigrationModule (object) - object instance of migration class; * @param : $rOldDb (resourse) - connect to old dolphin's database; * @param : $oDolModule (object); * @return : void; */ function BxDataMigrationProfilesCustomFields(&$oMigrationModule, &$rOldDb, $oDolModule = '') { parent::BxDataMigrationData($oMigrationModule, $rOldDb, $oDolModule); $this->aFiltered = array('PrimPhoto', 'Picture'); }
/** * Class constructor; * * @param : $oMigrationModule (object) - object instance of migration class; * @param : $rOldDb (resourse) - connect to old dolphin's database; * @param : $oDolModule (object); * @return : void; */ function BxDataMigrationProfiles(&$oMigrationModule, &$rOldDb, $oDolModule = '') { parent::BxDataMigrationData($oMigrationModule, $rOldDb, $oDolModule); $this->bAvatarInstalled = $this->oMigrationModule->_oDb->isModule('avatar') ? true : false; }