modmediasource.map.inc.php 3.4 KB

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