modtemplate.map.inc.php 4.7 KB

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