modmediasource.map.inc.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage sources.mysql
  5. */
  6. $xpdo_meta_map['modMediaSource']= array (
  7. 'package' => 'modx.sources',
  8. 'version' => '1.1',
  9. 'table' => 'media_sources',
  10. 'extends' => 'modAccessibleObject',
  11. 'tableMeta' =>
  12. array (
  13. 'engine' => 'InnoDB',
  14. ),
  15. 'fields' =>
  16. array (
  17. 'name' => '',
  18. 'description' => NULL,
  19. 'class_key' => 'sources.modFileMediaSource',
  20. 'properties' => NULL,
  21. 'is_stream' => 1,
  22. ),
  23. 'fieldMeta' =>
  24. array (
  25. 'name' =>
  26. array (
  27. 'dbtype' => 'varchar',
  28. 'precision' => '191',
  29. 'phptype' => 'string',
  30. 'null' => false,
  31. 'default' => '',
  32. 'index' => 'index',
  33. ),
  34. 'description' =>
  35. array (
  36. 'dbtype' => 'text',
  37. 'phptype' => 'string',
  38. 'null' => true,
  39. ),
  40. 'class_key' =>
  41. array (
  42. 'dbtype' => 'varchar',
  43. 'precision' => '100',
  44. 'phptype' => 'string',
  45. 'null' => false,
  46. 'default' => 'sources.modFileMediaSource',
  47. 'index' => 'index',
  48. ),
  49. 'properties' =>
  50. array (
  51. 'dbtype' => 'mediumtext',
  52. 'phptype' => 'array',
  53. 'null' => true,
  54. ),
  55. 'is_stream' =>
  56. array (
  57. 'dbtype' => 'tinyint',
  58. 'precision' => '1',
  59. 'attributes' => 'unsigned',
  60. 'phptype' => 'boolean',
  61. 'null' => false,
  62. 'default' => 1,
  63. 'index' => 'index',
  64. ),
  65. ),
  66. 'indexes' =>
  67. array (
  68. 'name' =>
  69. array (
  70. 'alias' => 'name',
  71. 'primary' => false,
  72. 'unique' => false,
  73. 'type' => 'BTREE',
  74. 'columns' =>
  75. array (
  76. 'name' =>
  77. array (
  78. 'length' => '',
  79. 'collation' => 'A',
  80. 'null' => false,
  81. ),
  82. ),
  83. ),
  84. 'class_key' =>
  85. array (
  86. 'alias' => 'class_key',
  87. 'primary' => false,
  88. 'unique' => false,
  89. 'type' => 'BTREE',
  90. 'columns' =>
  91. array (
  92. 'class_key' =>
  93. array (
  94. 'length' => '',
  95. 'collation' => 'A',
  96. 'null' => false,
  97. ),
  98. ),
  99. ),
  100. 'is_stream' =>
  101. array (
  102. 'alias' => 'is_stream',
  103. 'primary' => false,
  104. 'unique' => false,
  105. 'type' => 'BTREE',
  106. 'columns' =>
  107. array (
  108. 'is_stream' =>
  109. array (
  110. 'length' => '',
  111. 'collation' => 'A',
  112. 'null' => false,
  113. ),
  114. ),
  115. ),
  116. ),
  117. 'composites' =>
  118. array (
  119. 'SourceElement' =>
  120. array (
  121. 'class' => 'sources.modMediaSourceElement',
  122. 'local' => 'id',
  123. 'foreign' => 'source',
  124. 'cardinality' => 'one',
  125. 'owner' => 'local',
  126. ),
  127. ),
  128. 'aggregates' =>
  129. array (
  130. 'Chunks' =>
  131. array (
  132. 'class' => 'modChunk',
  133. 'local' => 'id',
  134. 'foreign' => 'source',
  135. 'cardinality' => 'many',
  136. 'owner' => 'local',
  137. ),
  138. 'Plugins' =>
  139. array (
  140. 'class' => 'modPlugin',
  141. 'local' => 'id',
  142. 'foreign' => 'source',
  143. 'cardinality' => 'many',
  144. 'owner' => 'local',
  145. ),
  146. 'Snippets' =>
  147. array (
  148. 'class' => 'modSnippet',
  149. 'local' => 'id',
  150. 'foreign' => 'source',
  151. 'cardinality' => 'many',
  152. 'owner' => 'local',
  153. ),
  154. 'Templates' =>
  155. array (
  156. 'class' => 'modTemplate',
  157. 'local' => 'id',
  158. 'foreign' => 'source',
  159. 'cardinality' => 'many',
  160. 'owner' => 'local',
  161. ),
  162. 'TemplateVars' =>
  163. array (
  164. 'class' => 'modTemplateVar',
  165. 'local' => 'id',
  166. 'foreign' => 'source',
  167. 'cardinality' => 'many',
  168. 'owner' => 'local',
  169. ),
  170. ),
  171. );