modmenu.map.inc.php 4.2 KB

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