BxSEMigConfig.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup SocialEngineMigration SocialEngine Migration
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxSEMigConfig extends BxBaseModGeneralConfig {
  12. /**
  13. * @$_aMigrationModules modules's data for transferring array
  14. * @section comments Comments
  15. * @ref BxDolCmts
  16. */
  17. public $_aMigrationModules = array(
  18. 'profiles' => array(
  19. 'table_name' => 'users',
  20. 'migration_class' => 'BxSEMigProfiles',
  21. 'dependencies' => array(
  22. ),
  23. 'plugins' => array(
  24. 'bx_persons' => 'Persons',
  25. ),
  26. ),
  27. 'profile_fields' => array(
  28. 'table_name' => 'user_fields_meta',
  29. 'migration_class' => 'BxSEMigProfilesFields',
  30. 'dependencies' => array(
  31. 'profiles',
  32. ),
  33. 'plugins' => array(
  34. 'bx_persons' => 'Persons',
  35. ),
  36. ),
  37. 'blogs' => array(
  38. 'table_name' => 'blog_blogs',
  39. 'migration_class' => 'BxSEMigBlogs',
  40. 'dependencies' => array(
  41. 'profiles',
  42. ),
  43. 'plugins' => array(
  44. 'bx_persons' => 'Persons',
  45. 'bx_posts' => 'Posts'
  46. ),
  47. ),
  48. 'photos' => array(
  49. 'table_name' => 'album_albums',
  50. 'migration_class' => 'BxSEMigPhotoAlbums',
  51. 'dependencies' => array(
  52. 'profiles',
  53. ),
  54. 'plugins' => array(
  55. 'bx_persons' => 'Persons',
  56. 'bx_albums' => 'Albums'
  57. ),
  58. )
  59. );
  60. public function __construct($aModule){
  61. parent::__construct($aModule);
  62. $this -> CNF = array (
  63. 'ENGINE_V' => 'se_migration_version',
  64. );
  65. }
  66. public function getEngineVersionPrefix(){
  67. return getParam($this -> CNF['ENGINE_V']) . '_';
  68. }
  69. }
  70. /** @} */