modresource.map.inc.php 17 KB

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