modresource.map.inc.php 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage mysql
  5. */
  6. $xpdo_meta_map['modResource']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'site_content',
  10. 'extends' => 'modAccessibleSimpleObject',
  11. 'inherit' => 'single',
  12. 'tableMeta' =>
  13. array (
  14. 'engine' => 'InnoDB',
  15. ),
  16. 'fields' =>
  17. array (
  18. 'type' => 'document',
  19. 'contentType' => 'text/html',
  20. 'pagetitle' => '',
  21. 'longtitle' => '',
  22. 'description' => '',
  23. 'alias' => '',
  24. 'alias_visible' => 1,
  25. 'link_attributes' => '',
  26. 'published' => 0,
  27. 'pub_date' => 0,
  28. 'unpub_date' => 0,
  29. 'parent' => 0,
  30. 'isfolder' => 0,
  31. 'introtext' => NULL,
  32. 'content' => NULL,
  33. 'richtext' => 1,
  34. 'template' => 0,
  35. 'menuindex' => 0,
  36. 'searchable' => 1,
  37. 'cacheable' => 1,
  38. 'createdby' => 0,
  39. 'createdon' => 0,
  40. 'editedby' => 0,
  41. 'editedon' => 0,
  42. 'deleted' => 0,
  43. 'deletedon' => 0,
  44. 'deletedby' => 0,
  45. 'publishedon' => 0,
  46. 'publishedby' => 0,
  47. 'menutitle' => '',
  48. 'donthit' => 0,
  49. 'privateweb' => 0,
  50. 'privatemgr' => 0,
  51. 'content_dispo' => 0,
  52. 'hidemenu' => 0,
  53. 'class_key' => 'modDocument',
  54. 'context_key' => 'web',
  55. 'content_type' => 1,
  56. 'uri' => NULL,
  57. 'uri_override' => 0,
  58. 'hide_children_in_tree' => 0,
  59. 'show_in_tree' => 1,
  60. 'properties' => NULL,
  61. ),
  62. 'fieldMeta' =>
  63. array (
  64. 'type' =>
  65. array (
  66. 'dbtype' => 'varchar',
  67. 'precision' => '20',
  68. 'phptype' => 'string',
  69. 'null' => false,
  70. 'default' => 'document',
  71. ),
  72. 'contentType' =>
  73. array (
  74. 'dbtype' => 'varchar',
  75. 'precision' => '50',
  76. 'phptype' => 'string',
  77. 'null' => false,
  78. 'default' => 'text/html',
  79. ),
  80. 'pagetitle' =>
  81. array (
  82. 'dbtype' => 'varchar',
  83. 'precision' => '191',
  84. 'phptype' => 'string',
  85. 'null' => false,
  86. 'default' => '',
  87. 'index' => 'fulltext',
  88. 'indexgrp' => 'content_ft_idx',
  89. ),
  90. 'longtitle' =>
  91. array (
  92. 'dbtype' => 'varchar',
  93. 'precision' => '191',
  94. 'phptype' => 'string',
  95. 'null' => false,
  96. 'default' => '',
  97. 'index' => 'fulltext',
  98. 'indexgrp' => 'content_ft_idx',
  99. ),
  100. 'description' =>
  101. array (
  102. 'dbtype' => 'text',
  103. 'phptype' => 'string',
  104. 'null' => false,
  105. 'default' => '',
  106. 'index' => 'fulltext',
  107. 'indexgrp' => 'content_ft_idx',
  108. ),
  109. 'alias' =>
  110. array (
  111. 'dbtype' => 'varchar',
  112. 'precision' => '191',
  113. 'phptype' => 'string',
  114. 'null' => true,
  115. 'default' => '',
  116. 'index' => 'index',
  117. ),
  118. 'alias_visible' =>
  119. array (
  120. 'dbtype' => 'tinyint',
  121. 'precision' => '1',
  122. 'attributes' => 'unsigned',
  123. 'phptype' => 'boolean',
  124. 'null' => false,
  125. 'default' => 1,
  126. ),
  127. 'link_attributes' =>
  128. array (
  129. 'dbtype' => 'varchar',
  130. 'precision' => '191',
  131. 'phptype' => 'string',
  132. 'null' => false,
  133. 'default' => '',
  134. ),
  135. 'published' =>
  136. array (
  137. 'dbtype' => 'tinyint',
  138. 'precision' => '1',
  139. 'attributes' => 'unsigned',
  140. 'phptype' => 'boolean',
  141. 'null' => false,
  142. 'default' => 0,
  143. 'index' => 'index',
  144. ),
  145. 'pub_date' =>
  146. array (
  147. 'dbtype' => 'int',
  148. 'precision' => '20',
  149. 'phptype' => 'timestamp',
  150. 'null' => false,
  151. 'default' => 0,
  152. 'index' => 'index',
  153. ),
  154. 'unpub_date' =>
  155. array (
  156. 'dbtype' => 'int',
  157. 'precision' => '20',
  158. 'phptype' => 'timestamp',
  159. 'null' => false,
  160. 'default' => 0,
  161. 'index' => 'index',
  162. ),
  163. 'parent' =>
  164. array (
  165. 'dbtype' => 'int',
  166. 'precision' => '10',
  167. 'phptype' => 'integer',
  168. 'null' => false,
  169. 'default' => 0,
  170. 'index' => 'index',
  171. ),
  172. 'isfolder' =>
  173. array (
  174. 'dbtype' => 'tinyint',
  175. 'precision' => '1',
  176. 'attributes' => 'unsigned',
  177. 'phptype' => 'boolean',
  178. 'null' => false,
  179. 'default' => 0,
  180. 'index' => 'index',
  181. ),
  182. 'introtext' =>
  183. array (
  184. 'dbtype' => 'text',
  185. 'phptype' => 'string',
  186. 'index' => 'fulltext',
  187. 'indexgrp' => 'content_ft_idx',
  188. ),
  189. 'content' =>
  190. array (
  191. 'dbtype' => 'mediumtext',
  192. 'phptype' => 'string',
  193. 'index' => 'fulltext',
  194. 'indexgrp' => 'content_ft_idx',
  195. ),
  196. 'richtext' =>
  197. array (
  198. 'dbtype' => 'tinyint',
  199. 'precision' => '1',
  200. 'attributes' => 'unsigned',
  201. 'phptype' => 'boolean',
  202. 'null' => false,
  203. 'default' => 1,
  204. ),
  205. 'template' =>
  206. array (
  207. 'dbtype' => 'int',
  208. 'precision' => '10',
  209. 'phptype' => 'integer',
  210. 'null' => false,
  211. 'default' => 0,
  212. 'index' => 'index',
  213. ),
  214. 'menuindex' =>
  215. array (
  216. 'dbtype' => 'int',
  217. 'precision' => '10',
  218. 'phptype' => 'integer',
  219. 'null' => false,
  220. 'default' => 0,
  221. 'index' => 'index',
  222. ),
  223. 'searchable' =>
  224. array (
  225. 'dbtype' => 'tinyint',
  226. 'precision' => '1',
  227. 'attributes' => 'unsigned',
  228. 'phptype' => 'boolean',
  229. 'null' => false,
  230. 'default' => 1,
  231. 'index' => 'index',
  232. ),
  233. 'cacheable' =>
  234. array (
  235. 'dbtype' => 'tinyint',
  236. 'precision' => '1',
  237. 'attributes' => 'unsigned',
  238. 'phptype' => 'boolean',
  239. 'null' => false,
  240. 'default' => 1,
  241. 'index' => 'index',
  242. ),
  243. 'createdby' =>
  244. array (
  245. 'dbtype' => 'int',
  246. 'precision' => '10',
  247. 'phptype' => 'integer',
  248. 'null' => false,
  249. 'default' => 0,
  250. ),
  251. 'createdon' =>
  252. array (
  253. 'dbtype' => 'int',
  254. 'precision' => '20',
  255. 'phptype' => 'timestamp',
  256. 'null' => false,
  257. 'default' => 0,
  258. ),
  259. 'editedby' =>
  260. array (
  261. 'dbtype' => 'int',
  262. 'precision' => '10',
  263. 'phptype' => 'integer',
  264. 'null' => false,
  265. 'default' => 0,
  266. ),
  267. 'editedon' =>
  268. array (
  269. 'dbtype' => 'int',
  270. 'precision' => '20',
  271. 'phptype' => 'timestamp',
  272. 'null' => false,
  273. 'default' => 0,
  274. ),
  275. 'deleted' =>
  276. array (
  277. 'dbtype' => 'tinyint',
  278. 'precision' => '1',
  279. 'attributes' => 'unsigned',
  280. 'phptype' => 'boolean',
  281. 'null' => false,
  282. 'default' => 0,
  283. ),
  284. 'deletedon' =>
  285. array (
  286. 'dbtype' => 'int',
  287. 'precision' => '20',
  288. 'phptype' => 'timestamp',
  289. 'null' => false,
  290. 'default' => 0,
  291. ),
  292. 'deletedby' =>
  293. array (
  294. 'dbtype' => 'int',
  295. 'precision' => '10',
  296. 'phptype' => 'integer',
  297. 'null' => false,
  298. 'default' => 0,
  299. ),
  300. 'publishedon' =>
  301. array (
  302. 'dbtype' => 'int',
  303. 'precision' => '20',
  304. 'phptype' => 'timestamp',
  305. 'null' => false,
  306. 'default' => 0,
  307. ),
  308. 'publishedby' =>
  309. array (
  310. 'dbtype' => 'int',
  311. 'precision' => '10',
  312. 'phptype' => 'integer',
  313. 'null' => false,
  314. 'default' => 0,
  315. ),
  316. 'menutitle' =>
  317. array (
  318. 'dbtype' => 'varchar',
  319. 'precision' => '191',
  320. 'phptype' => 'string',
  321. 'null' => false,
  322. 'default' => '',
  323. ),
  324. 'donthit' =>
  325. array (
  326. 'dbtype' => 'tinyint',
  327. 'precision' => '1',
  328. 'attributes' => 'unsigned',
  329. 'phptype' => 'boolean',
  330. 'null' => false,
  331. 'default' => 0,
  332. ),
  333. 'privateweb' =>
  334. array (
  335. 'dbtype' => 'tinyint',
  336. 'precision' => '1',
  337. 'attributes' => 'unsigned',
  338. 'phptype' => 'boolean',
  339. 'null' => false,
  340. 'default' => 0,
  341. ),
  342. 'privatemgr' =>
  343. array (
  344. 'dbtype' => 'tinyint',
  345. 'precision' => '1',
  346. 'attributes' => 'unsigned',
  347. 'phptype' => 'boolean',
  348. 'null' => false,
  349. 'default' => 0,
  350. ),
  351. 'content_dispo' =>
  352. array (
  353. 'dbtype' => 'tinyint',
  354. 'precision' => '1',
  355. 'phptype' => 'integer',
  356. 'null' => false,
  357. 'default' => 0,
  358. ),
  359. 'hidemenu' =>
  360. array (
  361. 'dbtype' => 'tinyint',
  362. 'precision' => '1',
  363. 'attributes' => 'unsigned',
  364. 'phptype' => 'boolean',
  365. 'null' => false,
  366. 'default' => 0,
  367. 'index' => 'index',
  368. ),
  369. 'class_key' =>
  370. array (
  371. 'dbtype' => 'varchar',
  372. 'precision' => '100',
  373. 'phptype' => 'string',
  374. 'null' => false,
  375. 'default' => 'modDocument',
  376. 'index' => 'index',
  377. ),
  378. 'context_key' =>
  379. array (
  380. 'dbtype' => 'varchar',
  381. 'precision' => '100',
  382. 'phptype' => 'string',
  383. 'null' => false,
  384. 'default' => 'web',
  385. 'index' => 'index',
  386. ),
  387. 'content_type' =>
  388. array (
  389. 'dbtype' => 'int',
  390. 'precision' => '11',
  391. 'attributes' => 'unsigned',
  392. 'phptype' => 'integer',
  393. 'null' => false,
  394. 'default' => 1,
  395. ),
  396. 'uri' =>
  397. array (
  398. 'dbtype' => 'text',
  399. 'phptype' => 'string',
  400. 'null' => true,
  401. 'index' => 'index',
  402. ),
  403. 'uri_override' =>
  404. array (
  405. 'dbtype' => 'tinyint',
  406. 'precision' => '1',
  407. 'phptype' => 'integer',
  408. 'null' => false,
  409. 'default' => 0,
  410. 'index' => 'index',
  411. ),
  412. 'hide_children_in_tree' =>
  413. array (
  414. 'dbtype' => 'tinyint',
  415. 'precision' => '1',
  416. 'phptype' => 'integer',
  417. 'null' => false,
  418. 'default' => 0,
  419. 'index' => 'index',
  420. ),
  421. 'show_in_tree' =>
  422. array (
  423. 'dbtype' => 'tinyint',
  424. 'precision' => '1',
  425. 'phptype' => 'integer',
  426. 'null' => false,
  427. 'default' => 1,
  428. 'index' => 'index',
  429. ),
  430. 'properties' =>
  431. array (
  432. 'dbtype' => 'mediumtext',
  433. 'phptype' => 'json',
  434. 'null' => true,
  435. ),
  436. ),
  437. 'indexes' =>
  438. array (
  439. 'alias' =>
  440. array (
  441. 'alias' => 'alias',
  442. 'primary' => false,
  443. 'unique' => false,
  444. 'type' => 'BTREE',
  445. 'columns' =>
  446. array (
  447. 'alias' =>
  448. array (
  449. 'length' => '',
  450. 'collation' => 'A',
  451. 'null' => true,
  452. ),
  453. ),
  454. ),
  455. 'published' =>
  456. array (
  457. 'alias' => 'published',
  458. 'primary' => false,
  459. 'unique' => false,
  460. 'type' => 'BTREE',
  461. 'columns' =>
  462. array (
  463. 'published' =>
  464. array (
  465. 'length' => '',
  466. 'collation' => 'A',
  467. 'null' => false,
  468. ),
  469. ),
  470. ),
  471. 'pub_date' =>
  472. array (
  473. 'alias' => 'pub_date',
  474. 'primary' => false,
  475. 'unique' => false,
  476. 'type' => 'BTREE',
  477. 'columns' =>
  478. array (
  479. 'pub_date' =>
  480. array (
  481. 'length' => '',
  482. 'collation' => 'A',
  483. 'null' => false,
  484. ),
  485. ),
  486. ),
  487. 'unpub_date' =>
  488. array (
  489. 'alias' => 'unpub_date',
  490. 'primary' => false,
  491. 'unique' => false,
  492. 'type' => 'BTREE',
  493. 'columns' =>
  494. array (
  495. 'unpub_date' =>
  496. array (
  497. 'length' => '',
  498. 'collation' => 'A',
  499. 'null' => false,
  500. ),
  501. ),
  502. ),
  503. 'parent' =>
  504. array (
  505. 'alias' => 'parent',
  506. 'primary' => false,
  507. 'unique' => false,
  508. 'type' => 'BTREE',
  509. 'columns' =>
  510. array (
  511. 'parent' =>
  512. array (
  513. 'length' => '',
  514. 'collation' => 'A',
  515. 'null' => false,
  516. ),
  517. ),
  518. ),
  519. 'isfolder' =>
  520. array (
  521. 'alias' => 'isfolder',
  522. 'primary' => false,
  523. 'unique' => false,
  524. 'type' => 'BTREE',
  525. 'columns' =>
  526. array (
  527. 'isfolder' =>
  528. array (
  529. 'length' => '',
  530. 'collation' => 'A',
  531. 'null' => false,
  532. ),
  533. ),
  534. ),
  535. 'template' =>
  536. array (
  537. 'alias' => 'template',
  538. 'primary' => false,
  539. 'unique' => false,
  540. 'type' => 'BTREE',
  541. 'columns' =>
  542. array (
  543. 'template' =>
  544. array (
  545. 'length' => '',
  546. 'collation' => 'A',
  547. 'null' => false,
  548. ),
  549. ),
  550. ),
  551. 'menuindex' =>
  552. array (
  553. 'alias' => 'menuindex',
  554. 'primary' => false,
  555. 'unique' => false,
  556. 'type' => 'BTREE',
  557. 'columns' =>
  558. array (
  559. 'menuindex' =>
  560. array (
  561. 'length' => '',
  562. 'collation' => 'A',
  563. 'null' => false,
  564. ),
  565. ),
  566. ),
  567. 'searchable' =>
  568. array (
  569. 'alias' => 'searchable',
  570. 'primary' => false,
  571. 'unique' => false,
  572. 'type' => 'BTREE',
  573. 'columns' =>
  574. array (
  575. 'searchable' =>
  576. array (
  577. 'length' => '',
  578. 'collation' => 'A',
  579. 'null' => false,
  580. ),
  581. ),
  582. ),
  583. 'cacheable' =>
  584. array (
  585. 'alias' => 'cacheable',
  586. 'primary' => false,
  587. 'unique' => false,
  588. 'type' => 'BTREE',
  589. 'columns' =>
  590. array (
  591. 'cacheable' =>
  592. array (
  593. 'length' => '',
  594. 'collation' => 'A',
  595. 'null' => false,
  596. ),
  597. ),
  598. ),
  599. 'hidemenu' =>
  600. array (
  601. 'alias' => 'hidemenu',
  602. 'primary' => false,
  603. 'unique' => false,
  604. 'type' => 'BTREE',
  605. 'columns' =>
  606. array (
  607. 'hidemenu' =>
  608. array (
  609. 'length' => '',
  610. 'collation' => 'A',
  611. 'null' => false,
  612. ),
  613. ),
  614. ),
  615. 'class_key' =>
  616. array (
  617. 'alias' => 'class_key',
  618. 'primary' => false,
  619. 'unique' => false,
  620. 'type' => 'BTREE',
  621. 'columns' =>
  622. array (
  623. 'class_key' =>
  624. array (
  625. 'length' => '',
  626. 'collation' => 'A',
  627. 'null' => false,
  628. ),
  629. ),
  630. ),
  631. 'context_key' =>
  632. array (
  633. 'alias' => 'context_key',
  634. 'primary' => false,
  635. 'unique' => false,
  636. 'type' => 'BTREE',
  637. 'columns' =>
  638. array (
  639. 'context_key' =>
  640. array (
  641. 'length' => '',
  642. 'collation' => 'A',
  643. 'null' => false,
  644. ),
  645. ),
  646. ),
  647. 'uri' =>
  648. array (
  649. 'alias' => 'uri',
  650. 'primary' => false,
  651. 'unique' => false,
  652. 'type' => 'BTREE',
  653. 'columns' =>
  654. array (
  655. 'uri' =>
  656. array (
  657. 'length' => '191',
  658. 'collation' => 'A',
  659. 'null' => true,
  660. ),
  661. ),
  662. ),
  663. 'uri_override' =>
  664. array (
  665. 'alias' => 'uri_override',
  666. 'primary' => false,
  667. 'unique' => false,
  668. 'type' => 'BTREE',
  669. 'columns' =>
  670. array (
  671. 'uri_override' =>
  672. array (
  673. 'length' => '',
  674. 'collation' => 'A',
  675. 'null' => false,
  676. ),
  677. ),
  678. ),
  679. 'hide_children_in_tree' =>
  680. array (
  681. 'alias' => 'hide_children_in_tree',
  682. 'primary' => false,
  683. 'unique' => false,
  684. 'type' => 'BTREE',
  685. 'columns' =>
  686. array (
  687. 'hide_children_in_tree' =>
  688. array (
  689. 'length' => '',
  690. 'collation' => 'A',
  691. 'null' => false,
  692. ),
  693. ),
  694. ),
  695. 'show_in_tree' =>
  696. array (
  697. 'alias' => 'show_in_tree',
  698. 'primary' => false,
  699. 'unique' => false,
  700. 'type' => 'BTREE',
  701. 'columns' =>
  702. array (
  703. 'show_in_tree' =>
  704. array (
  705. 'length' => '',
  706. 'collation' => 'A',
  707. 'null' => false,
  708. ),
  709. ),
  710. ),
  711. 'content_ft_idx' =>
  712. array (
  713. 'alias' => 'content_ft_idx',
  714. 'primary' => false,
  715. 'unique' => false,
  716. 'type' => 'FULLTEXT',
  717. 'columns' =>
  718. array (
  719. 'pagetitle' =>
  720. array (
  721. 'length' => '',
  722. 'collation' => 'A',
  723. 'null' => false,
  724. ),
  725. 'longtitle' =>
  726. array (
  727. 'length' => '',
  728. 'collation' => 'A',
  729. 'null' => false,
  730. ),
  731. 'description' =>
  732. array (
  733. 'length' => '',
  734. 'collation' => 'A',
  735. 'null' => false,
  736. ),
  737. 'introtext' =>
  738. array (
  739. 'length' => '',
  740. 'collation' => 'A',
  741. 'null' => true,
  742. ),
  743. 'content' =>
  744. array (
  745. 'length' => '',
  746. 'collation' => 'A',
  747. 'null' => true,
  748. ),
  749. ),
  750. ),
  751. 'cache_refresh_idx' =>
  752. array (
  753. 'alias' => 'cache_refresh_index',
  754. 'primary' => false,
  755. 'unique' => false,
  756. 'type' => 'BTREE',
  757. 'columns' =>
  758. array (
  759. 'parent' =>
  760. array (
  761. 'length' => '',
  762. 'collation' => 'A',
  763. 'null' => false,
  764. ),
  765. 'menuindex' =>
  766. array (
  767. 'length' => '',
  768. 'collation' => 'A',
  769. 'null' => false,
  770. ),
  771. 'id' =>
  772. array (
  773. 'length' => '',
  774. 'collation' => 'A',
  775. 'null' => false,
  776. ),
  777. ),
  778. ),
  779. ),
  780. 'composites' =>
  781. array (
  782. 'Children' =>
  783. array (
  784. 'class' => 'modResource',
  785. 'local' => 'id',
  786. 'foreign' => 'parent',
  787. 'cardinality' => 'many',
  788. 'owner' => 'local',
  789. ),
  790. 'TemplateVarResources' =>
  791. array (
  792. 'class' => 'modTemplateVarResource',
  793. 'local' => 'id',
  794. 'foreign' => 'contentid',
  795. 'cardinality' => 'many',
  796. 'owner' => 'local',
  797. ),
  798. 'ResourceGroupResources' =>
  799. array (
  800. 'class' => 'modResourceGroupResource',
  801. 'local' => 'id',
  802. 'foreign' => 'document',
  803. 'cardinality' => 'many',
  804. 'owner' => 'local',
  805. ),
  806. 'Acls' =>
  807. array (
  808. 'class' => 'modAccessResource',
  809. 'local' => 'id',
  810. 'foreign' => 'target',
  811. 'owner' => 'local',
  812. 'cardinality' => 'many',
  813. ),
  814. 'ContextResources' =>
  815. array (
  816. 'class' => 'modContextResource',
  817. 'local' => 'id',
  818. 'foreign' => 'resource',
  819. 'cardinality' => 'many',
  820. 'owner' => 'local',
  821. ),
  822. ),
  823. 'aggregates' =>
  824. array (
  825. 'Parent' =>
  826. array (
  827. 'class' => 'modResource',
  828. 'local' => 'parent',
  829. 'foreign' => 'id',
  830. 'cardinality' => 'one',
  831. 'owner' => 'foreign',
  832. ),
  833. 'CreatedBy' =>
  834. array (
  835. 'class' => 'modUser',
  836. 'local' => 'createdby',
  837. 'foreign' => 'id',
  838. 'cardinality' => 'one',
  839. 'owner' => 'foreign',
  840. ),
  841. 'EditedBy' =>
  842. array (
  843. 'class' => 'modUser',
  844. 'local' => 'editedby',
  845. 'foreign' => 'id',
  846. 'cardinality' => 'one',
  847. 'owner' => 'foreign',
  848. ),
  849. 'DeletedBy' =>
  850. array (
  851. 'class' => 'modUser',
  852. 'local' => 'deletedby',
  853. 'foreign' => 'id',
  854. 'cardinality' => 'one',
  855. 'owner' => 'foreign',
  856. ),
  857. 'PublishedBy' =>
  858. array (
  859. 'class' => 'modUser',
  860. 'local' => 'publishedby',
  861. 'foreign' => 'id',
  862. 'cardinality' => 'one',
  863. 'owner' => 'foreign',
  864. ),
  865. 'Template' =>
  866. array (
  867. 'class' => 'modTemplate',
  868. 'local' => 'template',
  869. 'foreign' => 'id',
  870. 'cardinality' => 'one',
  871. 'owner' => 'foreign',
  872. ),
  873. 'TemplateVars' =>
  874. array (
  875. 'class' => 'modTemplateVar',
  876. 'local' => 'id:template',
  877. 'foreign' => 'contentid:templateid',
  878. 'cardinality' => 'many',
  879. 'owner' => 'local',
  880. ),
  881. 'TemplateVarTemplates' =>
  882. array (
  883. 'class' => 'modTemplateVarTemplate',
  884. 'local' => 'template',
  885. 'foreign' => 'templateid',
  886. 'cardinality' => 'many',
  887. 'owner' => 'local',
  888. ),
  889. 'ContentType' =>
  890. array (
  891. 'class' => 'modContentType',
  892. 'local' => 'content_type',
  893. 'foreign' => 'id',
  894. 'owner' => 'foreign',
  895. 'cardinality' => 'one',
  896. ),
  897. 'Context' =>
  898. array (
  899. 'class' => 'modContext',
  900. 'local' => 'context_key',
  901. 'foreign' => 'key',
  902. 'owner' => 'foreign',
  903. 'cardinality' => 'one',
  904. ),
  905. ),
  906. );