moddashboardwidget.map.inc.php 3.3 KB

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