modpluginevent.map.inc.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage sqlsrv
  5. */
  6. $xpdo_meta_map['modPluginEvent']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'site_plugin_events',
  10. 'extends' => 'xPDOObject',
  11. 'fields' =>
  12. array (
  13. 'pluginid' => 0,
  14. 'event' => '',
  15. 'priority' => 0,
  16. 'propertyset' => 0,
  17. ),
  18. 'fieldMeta' =>
  19. array (
  20. 'pluginid' =>
  21. array (
  22. 'dbtype' => 'int',
  23. 'phptype' => 'integer',
  24. 'null' => false,
  25. 'default' => 0,
  26. 'index' => 'pk',
  27. ),
  28. 'event' =>
  29. array (
  30. 'dbtype' => 'nvarchar',
  31. 'precision' => '255',
  32. 'phptype' => 'string',
  33. 'null' => false,
  34. 'default' => '',
  35. 'index' => 'pk',
  36. ),
  37. 'priority' =>
  38. array (
  39. 'dbtype' => 'int',
  40. 'phptype' => 'integer',
  41. 'null' => false,
  42. 'default' => 0,
  43. 'index' => 'index',
  44. ),
  45. 'propertyset' =>
  46. array (
  47. 'dbtype' => 'int',
  48. 'phptype' => 'integer',
  49. 'null' => false,
  50. 'default' => 0,
  51. 'index' => 'index',
  52. ),
  53. ),
  54. 'indexes' =>
  55. array (
  56. 'PRIMARY' =>
  57. array (
  58. 'alias' => 'PRIMARY',
  59. 'primary' => true,
  60. 'unique' => true,
  61. 'type' => 'BTREE',
  62. 'columns' =>
  63. array (
  64. 'pluginid' =>
  65. array (
  66. 'length' => '',
  67. 'collation' => 'A',
  68. 'null' => false,
  69. ),
  70. 'event' =>
  71. array (
  72. 'length' => '',
  73. 'collation' => 'A',
  74. 'null' => false,
  75. ),
  76. ),
  77. ),
  78. 'priority' =>
  79. array (
  80. 'alias' => 'priority',
  81. 'primary' => false,
  82. 'unique' => false,
  83. 'type' => 'BTREE',
  84. 'columns' =>
  85. array (
  86. 'priority' =>
  87. array (
  88. 'length' => '',
  89. 'collation' => 'A',
  90. 'null' => false,
  91. ),
  92. ),
  93. ),
  94. ),
  95. 'aggregates' =>
  96. array (
  97. 'Plugin' =>
  98. array (
  99. 'class' => 'modPlugin',
  100. 'local' => 'pluginid',
  101. 'foreign' => 'id',
  102. 'cardinality' => 'one',
  103. 'owner' => 'foreign',
  104. ),
  105. 'Event' =>
  106. array (
  107. 'class' => 'modEvent',
  108. 'local' => 'event',
  109. 'foreign' => 'name',
  110. 'cardinality' => 'one',
  111. 'owner' => 'foreign',
  112. ),
  113. 'PropertySet' =>
  114. array (
  115. 'class' => 'modPropertySet',
  116. 'local' => 'propertyset',
  117. 'foreign' => 'id',
  118. 'cardinality' => 'one',
  119. 'owner' => 'foreign',
  120. ),
  121. ),
  122. );