modmediasourceelement.map.inc.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage sources.sqlsrv
  5. */
  6. $xpdo_meta_map['modMediaSourceElement']= array (
  7. 'package' => 'modx.sources',
  8. 'version' => '1.1',
  9. 'table' => 'media_sources_tvs',
  10. 'extends' => 'xPDOObject',
  11. 'fields' =>
  12. array (
  13. 'source' => 0,
  14. 'object' => 0,
  15. 'object_class' => 'modTemplateVar',
  16. 'context_key' => 'web',
  17. ),
  18. 'fieldMeta' =>
  19. array (
  20. 'source' =>
  21. array (
  22. 'dbtype' => 'int',
  23. 'phptype' => 'integer',
  24. 'null' => false,
  25. 'default' => 0,
  26. 'index' => 'pk',
  27. ),
  28. 'object' =>
  29. array (
  30. 'dbtype' => 'int',
  31. 'phptype' => 'integer',
  32. 'null' => false,
  33. 'default' => 0,
  34. 'index' => 'pk',
  35. ),
  36. 'object_class' =>
  37. array (
  38. 'dbtype' => 'nvarchar',
  39. 'precision' => '100',
  40. 'phptype' => 'string',
  41. 'null' => false,
  42. 'default' => 'modTemplateVar',
  43. 'index' => 'pk',
  44. ),
  45. 'context_key' =>
  46. array (
  47. 'dbtype' => 'nvarchar',
  48. 'precision' => '100',
  49. 'phptype' => 'string',
  50. 'null' => false,
  51. 'default' => 'web',
  52. 'index' => 'pk',
  53. ),
  54. ),
  55. 'indexes' =>
  56. array (
  57. 'PRIMARY' =>
  58. array (
  59. 'alias' => 'PRIMARY',
  60. 'primary' => true,
  61. 'unique' => true,
  62. 'type' => 'BTREE',
  63. 'columns' =>
  64. array (
  65. 'source' =>
  66. array (
  67. 'length' => '',
  68. 'collation' => 'A',
  69. 'null' => false,
  70. ),
  71. 'object' =>
  72. array (
  73. 'length' => '',
  74. 'collation' => 'A',
  75. 'null' => false,
  76. ),
  77. 'object_class' =>
  78. array (
  79. 'length' => '',
  80. 'collation' => 'A',
  81. 'null' => false,
  82. ),
  83. 'context_key' =>
  84. array (
  85. 'length' => '',
  86. 'collation' => 'A',
  87. 'null' => false,
  88. ),
  89. ),
  90. ),
  91. ),
  92. 'aggregates' =>
  93. array (
  94. 'Source' =>
  95. array (
  96. 'class' => 'sources.modMediaSource',
  97. 'local' => 'source',
  98. 'foreign' => 'id',
  99. 'cardinality' => 'one',
  100. 'owner' => 'foreign',
  101. ),
  102. 'Element' =>
  103. array (
  104. 'class' => 'modElement',
  105. 'local' => 'object',
  106. 'foreign' => 'id',
  107. 'cardinality' => 'one',
  108. 'owner' => 'foreign',
  109. ),
  110. 'Context' =>
  111. array (
  112. 'class' => 'modContext',
  113. 'local' => 'context_key',
  114. 'foreign' => 'key',
  115. 'cardinality' => 'one',
  116. 'owner' => 'foreign',
  117. ),
  118. ),
  119. );