modmenu.map.inc.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage sqlsrv
  5. */
  6. $xpdo_meta_map['modMenu']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'menus',
  10. 'extends' => 'modAccessibleObject',
  11. 'fields' =>
  12. array (
  13. 'text' => '',
  14. 'parent' => '',
  15. 'action' => '',
  16. 'description' => '',
  17. 'icon' => '',
  18. 'menuindex' => 0,
  19. 'params' => '',
  20. 'handler' => '',
  21. 'permissions' => '',
  22. 'namespace' => 'core',
  23. ),
  24. 'fieldMeta' =>
  25. array (
  26. 'text' =>
  27. array (
  28. 'dbtype' => 'nvarchar',
  29. 'precision' => '255',
  30. 'phptype' => 'string',
  31. 'null' => false,
  32. 'default' => '',
  33. 'index' => 'pk',
  34. ),
  35. 'parent' =>
  36. array (
  37. 'dbtype' => 'nvarchar',
  38. 'precision' => '255',
  39. 'phptype' => 'string',
  40. 'null' => false,
  41. 'default' => '',
  42. 'index' => 'index',
  43. ),
  44. 'action' =>
  45. array (
  46. 'dbtype' => 'nvarchar',
  47. 'precision' => '255',
  48. 'phptype' => 'string',
  49. 'null' => false,
  50. 'default' => '',
  51. 'index' => 'index',
  52. ),
  53. 'description' =>
  54. array (
  55. 'dbtype' => 'nvarchar',
  56. 'precision' => '255',
  57. 'phptype' => 'string',
  58. 'null' => false,
  59. 'default' => '',
  60. ),
  61. 'icon' =>
  62. array (
  63. 'dbtype' => 'nvarchar',
  64. 'precision' => '255',
  65. 'phptype' => 'string',
  66. 'null' => false,
  67. 'default' => '',
  68. ),
  69. 'menuindex' =>
  70. array (
  71. 'dbtype' => 'int',
  72. 'phptype' => 'integer',
  73. 'null' => false,
  74. 'default' => 0,
  75. ),
  76. 'params' =>
  77. array (
  78. 'dbtype' => 'nvarchar',
  79. 'precision' => 'max',
  80. 'phptype' => 'string',
  81. 'null' => false,
  82. 'default' => '',
  83. ),
  84. 'handler' =>
  85. array (
  86. 'dbtype' => 'nvarchar',
  87. 'precision' => 'max',
  88. 'phptype' => 'string',
  89. 'null' => false,
  90. 'default' => '',
  91. ),
  92. 'permissions' =>
  93. array (
  94. 'dbtype' => 'nvarchar',
  95. 'precision' => 'max',
  96. 'phptype' => 'string',
  97. 'null' => false,
  98. 'default' => '',
  99. ),
  100. 'namespace' =>
  101. array (
  102. 'dbtype' => 'nvarchar',
  103. 'precision' => '100',
  104. 'phptype' => 'string',
  105. 'null' => false,
  106. 'default' => 'core',
  107. 'index' => 'index',
  108. ),
  109. ),
  110. 'indexes' =>
  111. array (
  112. 'PRIMARY' =>
  113. array (
  114. 'alias' => 'PRIMARY',
  115. 'primary' => true,
  116. 'unique' => true,
  117. 'type' => 'BTREE',
  118. 'columns' =>
  119. array (
  120. 'text' =>
  121. array (
  122. 'length' => '',
  123. 'collation' => 'A',
  124. 'null' => false,
  125. ),
  126. ),
  127. ),
  128. 'parent' =>
  129. array (
  130. 'alias' => 'parent',
  131. 'primary' => false,
  132. 'unique' => false,
  133. 'type' => 'BTREE',
  134. 'columns' =>
  135. array (
  136. 'parent' =>
  137. array (
  138. 'length' => '',
  139. 'collation' => 'A',
  140. 'null' => false,
  141. ),
  142. ),
  143. ),
  144. 'action' =>
  145. array (
  146. 'alias' => 'action',
  147. 'primary' => false,
  148. 'unique' => false,
  149. 'type' => 'BTREE',
  150. 'columns' =>
  151. array (
  152. 'action' =>
  153. array (
  154. 'length' => '',
  155. 'collation' => 'A',
  156. 'null' => false,
  157. ),
  158. ),
  159. ),
  160. 'namespace' =>
  161. array (
  162. 'alias' => 'namespace',
  163. 'primary' => false,
  164. 'unique' => false,
  165. 'type' => 'BTREE',
  166. 'columns' =>
  167. array (
  168. 'namespace' =>
  169. array (
  170. 'length' => '',
  171. 'collation' => 'A',
  172. 'null' => false,
  173. ),
  174. ),
  175. ),
  176. ),
  177. 'composites' =>
  178. array (
  179. 'Acls' =>
  180. array (
  181. 'class' => 'modAccessMenu',
  182. 'local' => 'text',
  183. 'foreign' => 'target',
  184. 'owner' => 'local',
  185. 'cardinality' => 'many',
  186. ),
  187. ),
  188. 'aggregates' =>
  189. array (
  190. 'Action' =>
  191. array (
  192. 'class' => 'modAction',
  193. 'local' => 'action',
  194. 'foreign' => 'id',
  195. 'owner' => 'foreign',
  196. 'cardinality' => 'one',
  197. ),
  198. 'Parent' =>
  199. array (
  200. 'class' => 'modMenu',
  201. 'local' => 'parent',
  202. 'foreign' => 'text',
  203. 'owner' => 'foreign',
  204. 'cardinality' => 'one',
  205. ),
  206. 'Children' =>
  207. array (
  208. 'class' => 'modMenu',
  209. 'local' => 'text',
  210. 'foreign' => 'parent',
  211. 'owner' => 'local',
  212. 'cardinality' => 'many',
  213. ),
  214. ),
  215. );