modelement.map.inc.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage sqlsrv
  5. */
  6. $xpdo_meta_map['modElement']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'site_element',
  10. 'extends' => 'modAccessibleSimpleObject',
  11. 'fields' =>
  12. array (
  13. 'source' => 0,
  14. 'property_preprocess' => 0,
  15. ),
  16. 'fieldMeta' =>
  17. array (
  18. 'source' =>
  19. array (
  20. 'dbtype' => 'int',
  21. 'phptype' => 'integer',
  22. 'null' => false,
  23. 'default' => 0,
  24. 'index' => 'fk',
  25. ),
  26. 'property_preprocess' =>
  27. array (
  28. 'dbtype' => 'bit',
  29. 'phptype' => 'boolean',
  30. 'null' => false,
  31. 'default' => 0,
  32. ),
  33. ),
  34. 'composites' =>
  35. array (
  36. 'Acls' =>
  37. array (
  38. 'class' => 'modAccessElement',
  39. 'local' => 'id',
  40. 'foreign' => 'target',
  41. 'owner' => 'local',
  42. 'cardinality' => 'many',
  43. ),
  44. ),
  45. 'aggregates' =>
  46. array (
  47. 'CategoryAcls' =>
  48. array (
  49. 'class' => 'modAccessCategory',
  50. 'local' => 'category',
  51. 'foreign' => 'target',
  52. 'owner' => 'local',
  53. 'cardinality' => 'many',
  54. ),
  55. 'Source' =>
  56. array (
  57. 'class' => 'sources.modMediaSource',
  58. 'local' => 'source',
  59. 'foreign' => 'id',
  60. 'owner' => 'foreign',
  61. 'cardinality' => 'one',
  62. ),
  63. ),
  64. );