| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906 |
- <?php
- /**
- * @package modx
- * @subpackage mysql
- */
- $xpdo_meta_map['modResource']= array (
- 'package' => 'modx',
- 'version' => '1.1',
- 'table' => 'site_content',
- 'extends' => 'modAccessibleSimpleObject',
- 'inherit' => 'single',
- 'tableMeta' =>
- array (
- 'engine' => 'InnoDB',
- ),
- 'fields' =>
- array (
- 'type' => 'document',
- 'contentType' => 'text/html',
- 'pagetitle' => '',
- 'longtitle' => '',
- 'description' => '',
- 'alias' => '',
- 'alias_visible' => 1,
- 'link_attributes' => '',
- 'published' => 0,
- 'pub_date' => 0,
- 'unpub_date' => 0,
- 'parent' => 0,
- 'isfolder' => 0,
- 'introtext' => NULL,
- 'content' => NULL,
- 'richtext' => 1,
- 'template' => 0,
- 'menuindex' => 0,
- 'searchable' => 1,
- 'cacheable' => 1,
- 'createdby' => 0,
- 'createdon' => 0,
- 'editedby' => 0,
- 'editedon' => 0,
- 'deleted' => 0,
- 'deletedon' => 0,
- 'deletedby' => 0,
- 'publishedon' => 0,
- 'publishedby' => 0,
- 'menutitle' => '',
- 'donthit' => 0,
- 'privateweb' => 0,
- 'privatemgr' => 0,
- 'content_dispo' => 0,
- 'hidemenu' => 0,
- 'class_key' => 'modDocument',
- 'context_key' => 'web',
- 'content_type' => 1,
- 'uri' => NULL,
- 'uri_override' => 0,
- 'hide_children_in_tree' => 0,
- 'show_in_tree' => 1,
- 'properties' => NULL,
- ),
- 'fieldMeta' =>
- array (
- 'type' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '20',
- 'phptype' => 'string',
- 'null' => false,
- 'default' => 'document',
- ),
- 'contentType' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '50',
- 'phptype' => 'string',
- 'null' => false,
- 'default' => 'text/html',
- ),
- 'pagetitle' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '191',
- 'phptype' => 'string',
- 'null' => false,
- 'default' => '',
- 'index' => 'fulltext',
- 'indexgrp' => 'content_ft_idx',
- ),
- 'longtitle' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '191',
- 'phptype' => 'string',
- 'null' => false,
- 'default' => '',
- 'index' => 'fulltext',
- 'indexgrp' => 'content_ft_idx',
- ),
- 'description' =>
- array (
- 'dbtype' => 'text',
- 'phptype' => 'string',
- 'null' => false,
- 'default' => '',
- 'index' => 'fulltext',
- 'indexgrp' => 'content_ft_idx',
- ),
- 'alias' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '191',
- 'phptype' => 'string',
- 'null' => true,
- 'default' => '',
- 'index' => 'index',
- ),
- 'alias_visible' =>
- array (
- 'dbtype' => 'tinyint',
- 'precision' => '1',
- 'attributes' => 'unsigned',
- 'phptype' => 'boolean',
- 'null' => false,
- 'default' => 1,
- ),
- 'link_attributes' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '191',
- 'phptype' => 'string',
- 'null' => false,
- 'default' => '',
- ),
- 'published' =>
- array (
- 'dbtype' => 'tinyint',
- 'precision' => '1',
- 'attributes' => 'unsigned',
- 'phptype' => 'boolean',
- 'null' => false,
- 'default' => 0,
- 'index' => 'index',
- ),
- 'pub_date' =>
- array (
- 'dbtype' => 'int',
- 'precision' => '20',
- 'phptype' => 'timestamp',
- 'null' => false,
- 'default' => 0,
- 'index' => 'index',
- ),
- 'unpub_date' =>
- array (
- 'dbtype' => 'int',
- 'precision' => '20',
- 'phptype' => 'timestamp',
- 'null' => false,
- 'default' => 0,
- 'index' => 'index',
- ),
- 'parent' =>
- array (
- 'dbtype' => 'int',
- 'precision' => '10',
- 'phptype' => 'integer',
- 'null' => false,
- 'default' => 0,
- 'index' => 'index',
- ),
- 'isfolder' =>
- array (
- 'dbtype' => 'tinyint',
- 'precision' => '1',
- 'attributes' => 'unsigned',
- 'phptype' => 'boolean',
- 'null' => false,
- 'default' => 0,
- 'index' => 'index',
- ),
- 'introtext' =>
- array (
- 'dbtype' => 'text',
- 'phptype' => 'string',
- 'index' => 'fulltext',
- 'indexgrp' => 'content_ft_idx',
- ),
- 'content' =>
- array (
- 'dbtype' => 'mediumtext',
- 'phptype' => 'string',
- 'index' => 'fulltext',
- 'indexgrp' => 'content_ft_idx',
- ),
- 'richtext' =>
- array (
- 'dbtype' => 'tinyint',
- 'precision' => '1',
- 'attributes' => 'unsigned',
- 'phptype' => 'boolean',
- 'null' => false,
- 'default' => 1,
- ),
- 'template' =>
- array (
- 'dbtype' => 'int',
- 'precision' => '10',
- 'phptype' => 'integer',
- 'null' => false,
- 'default' => 0,
- 'index' => 'index',
- ),
- 'menuindex' =>
- array (
- 'dbtype' => 'int',
- 'precision' => '10',
- 'phptype' => 'integer',
- 'null' => false,
- 'default' => 0,
- 'index' => 'index',
- ),
- 'searchable' =>
- array (
- 'dbtype' => 'tinyint',
- 'precision' => '1',
- 'attributes' => 'unsigned',
- 'phptype' => 'boolean',
- 'null' => false,
- 'default' => 1,
- 'index' => 'index',
- ),
- 'cacheable' =>
- array (
- 'dbtype' => 'tinyint',
- 'precision' => '1',
- 'attributes' => 'unsigned',
- 'phptype' => 'boolean',
- 'null' => false,
- 'default' => 1,
- 'index' => 'index',
- ),
- 'createdby' =>
- array (
- 'dbtype' => 'int',
- 'precision' => '10',
- 'phptype' => 'integer',
- 'null' => false,
- 'default' => 0,
- ),
- 'createdon' =>
- array (
- 'dbtype' => 'int',
- 'precision' => '20',
- 'phptype' => 'timestamp',
- 'null' => false,
- 'default' => 0,
- ),
- 'editedby' =>
- array (
- 'dbtype' => 'int',
- 'precision' => '10',
- 'phptype' => 'integer',
- 'null' => false,
- 'default' => 0,
- ),
- 'editedon' =>
- array (
- 'dbtype' => 'int',
- 'precision' => '20',
- 'phptype' => 'timestamp',
- 'null' => false,
- 'default' => 0,
- ),
- 'deleted' =>
- array (
- 'dbtype' => 'tinyint',
- 'precision' => '1',
- 'attributes' => 'unsigned',
- 'phptype' => 'boolean',
- 'null' => false,
- 'default' => 0,
- ),
- 'deletedon' =>
- array (
- 'dbtype' => 'int',
- 'precision' => '20',
- 'phptype' => 'timestamp',
- 'null' => false,
- 'default' => 0,
- ),
- 'deletedby' =>
- array (
- 'dbtype' => 'int',
- 'precision' => '10',
- 'phptype' => 'integer',
- 'null' => false,
- 'default' => 0,
- ),
- 'publishedon' =>
- array (
- 'dbtype' => 'int',
- 'precision' => '20',
- 'phptype' => 'timestamp',
- 'null' => false,
- 'default' => 0,
- ),
- 'publishedby' =>
- array (
- 'dbtype' => 'int',
- 'precision' => '10',
- 'phptype' => 'integer',
- 'null' => false,
- 'default' => 0,
- ),
- 'menutitle' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '191',
- 'phptype' => 'string',
- 'null' => false,
- 'default' => '',
- ),
- 'donthit' =>
- array (
- 'dbtype' => 'tinyint',
- 'precision' => '1',
- 'attributes' => 'unsigned',
- 'phptype' => 'boolean',
- 'null' => false,
- 'default' => 0,
- ),
- 'privateweb' =>
- array (
- 'dbtype' => 'tinyint',
- 'precision' => '1',
- 'attributes' => 'unsigned',
- 'phptype' => 'boolean',
- 'null' => false,
- 'default' => 0,
- ),
- 'privatemgr' =>
- array (
- 'dbtype' => 'tinyint',
- 'precision' => '1',
- 'attributes' => 'unsigned',
- 'phptype' => 'boolean',
- 'null' => false,
- 'default' => 0,
- ),
- 'content_dispo' =>
- array (
- 'dbtype' => 'tinyint',
- 'precision' => '1',
- 'phptype' => 'integer',
- 'null' => false,
- 'default' => 0,
- ),
- 'hidemenu' =>
- array (
- 'dbtype' => 'tinyint',
- 'precision' => '1',
- 'attributes' => 'unsigned',
- 'phptype' => 'boolean',
- 'null' => false,
- 'default' => 0,
- 'index' => 'index',
- ),
- 'class_key' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '100',
- 'phptype' => 'string',
- 'null' => false,
- 'default' => 'modDocument',
- 'index' => 'index',
- ),
- 'context_key' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '100',
- 'phptype' => 'string',
- 'null' => false,
- 'default' => 'web',
- 'index' => 'index',
- ),
- 'content_type' =>
- array (
- 'dbtype' => 'int',
- 'precision' => '11',
- 'attributes' => 'unsigned',
- 'phptype' => 'integer',
- 'null' => false,
- 'default' => 1,
- ),
- 'uri' =>
- array (
- 'dbtype' => 'text',
- 'phptype' => 'string',
- 'null' => true,
- 'index' => 'index',
- ),
- 'uri_override' =>
- array (
- 'dbtype' => 'tinyint',
- 'precision' => '1',
- 'phptype' => 'integer',
- 'null' => false,
- 'default' => 0,
- 'index' => 'index',
- ),
- 'hide_children_in_tree' =>
- array (
- 'dbtype' => 'tinyint',
- 'precision' => '1',
- 'phptype' => 'integer',
- 'null' => false,
- 'default' => 0,
- 'index' => 'index',
- ),
- 'show_in_tree' =>
- array (
- 'dbtype' => 'tinyint',
- 'precision' => '1',
- 'phptype' => 'integer',
- 'null' => false,
- 'default' => 1,
- 'index' => 'index',
- ),
- 'properties' =>
- array (
- 'dbtype' => 'mediumtext',
- 'phptype' => 'json',
- 'null' => true,
- ),
- ),
- 'indexes' =>
- array (
- 'alias' =>
- array (
- 'alias' => 'alias',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'alias' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => true,
- ),
- ),
- ),
- 'published' =>
- array (
- 'alias' => 'published',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'published' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'pub_date' =>
- array (
- 'alias' => 'pub_date',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'pub_date' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'unpub_date' =>
- array (
- 'alias' => 'unpub_date',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'unpub_date' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'parent' =>
- array (
- 'alias' => 'parent',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'parent' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'isfolder' =>
- array (
- 'alias' => 'isfolder',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'isfolder' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'template' =>
- array (
- 'alias' => 'template',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'template' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'menuindex' =>
- array (
- 'alias' => 'menuindex',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'menuindex' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'searchable' =>
- array (
- 'alias' => 'searchable',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'searchable' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'cacheable' =>
- array (
- 'alias' => 'cacheable',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'cacheable' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'hidemenu' =>
- array (
- 'alias' => 'hidemenu',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'hidemenu' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'class_key' =>
- array (
- 'alias' => 'class_key',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'class_key' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'context_key' =>
- array (
- 'alias' => 'context_key',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'context_key' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'uri' =>
- array (
- 'alias' => 'uri',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'uri' =>
- array (
- 'length' => '191',
- 'collation' => 'A',
- 'null' => true,
- ),
- ),
- ),
- 'uri_override' =>
- array (
- 'alias' => 'uri_override',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'uri_override' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'hide_children_in_tree' =>
- array (
- 'alias' => 'hide_children_in_tree',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'hide_children_in_tree' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'show_in_tree' =>
- array (
- 'alias' => 'show_in_tree',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'show_in_tree' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'content_ft_idx' =>
- array (
- 'alias' => 'content_ft_idx',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'FULLTEXT',
- 'columns' =>
- array (
- 'pagetitle' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- 'longtitle' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- 'description' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- 'introtext' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => true,
- ),
- 'content' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => true,
- ),
- ),
- ),
- 'cache_refresh_idx' =>
- array (
- 'alias' => 'cache_refresh_index',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'parent' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- 'menuindex' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- 'id' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- ),
- 'composites' =>
- array (
- 'Children' =>
- array (
- 'class' => 'modResource',
- 'local' => 'id',
- 'foreign' => 'parent',
- 'cardinality' => 'many',
- 'owner' => 'local',
- ),
- 'TemplateVarResources' =>
- array (
- 'class' => 'modTemplateVarResource',
- 'local' => 'id',
- 'foreign' => 'contentid',
- 'cardinality' => 'many',
- 'owner' => 'local',
- ),
- 'ResourceGroupResources' =>
- array (
- 'class' => 'modResourceGroupResource',
- 'local' => 'id',
- 'foreign' => 'document',
- 'cardinality' => 'many',
- 'owner' => 'local',
- ),
- 'Acls' =>
- array (
- 'class' => 'modAccessResource',
- 'local' => 'id',
- 'foreign' => 'target',
- 'owner' => 'local',
- 'cardinality' => 'many',
- ),
- 'ContextResources' =>
- array (
- 'class' => 'modContextResource',
- 'local' => 'id',
- 'foreign' => 'resource',
- 'cardinality' => 'many',
- 'owner' => 'local',
- ),
- ),
- 'aggregates' =>
- array (
- 'Parent' =>
- array (
- 'class' => 'modResource',
- 'local' => 'parent',
- 'foreign' => 'id',
- 'cardinality' => 'one',
- 'owner' => 'foreign',
- ),
- 'CreatedBy' =>
- array (
- 'class' => 'modUser',
- 'local' => 'createdby',
- 'foreign' => 'id',
- 'cardinality' => 'one',
- 'owner' => 'foreign',
- ),
- 'EditedBy' =>
- array (
- 'class' => 'modUser',
- 'local' => 'editedby',
- 'foreign' => 'id',
- 'cardinality' => 'one',
- 'owner' => 'foreign',
- ),
- 'DeletedBy' =>
- array (
- 'class' => 'modUser',
- 'local' => 'deletedby',
- 'foreign' => 'id',
- 'cardinality' => 'one',
- 'owner' => 'foreign',
- ),
- 'PublishedBy' =>
- array (
- 'class' => 'modUser',
- 'local' => 'publishedby',
- 'foreign' => 'id',
- 'cardinality' => 'one',
- 'owner' => 'foreign',
- ),
- 'Template' =>
- array (
- 'class' => 'modTemplate',
- 'local' => 'template',
- 'foreign' => 'id',
- 'cardinality' => 'one',
- 'owner' => 'foreign',
- ),
- 'TemplateVars' =>
- array (
- 'class' => 'modTemplateVar',
- 'local' => 'id:template',
- 'foreign' => 'contentid:templateid',
- 'cardinality' => 'many',
- 'owner' => 'local',
- ),
- 'TemplateVarTemplates' =>
- array (
- 'class' => 'modTemplateVarTemplate',
- 'local' => 'template',
- 'foreign' => 'templateid',
- 'cardinality' => 'many',
- 'owner' => 'local',
- ),
- 'ContentType' =>
- array (
- 'class' => 'modContentType',
- 'local' => 'content_type',
- 'foreign' => 'id',
- 'owner' => 'foreign',
- 'cardinality' => 'one',
- ),
- 'Context' =>
- array (
- 'class' => 'modContext',
- 'local' => 'context_key',
- 'foreign' => 'key',
- 'owner' => 'foreign',
- 'cardinality' => 'one',
- ),
- ),
- );
|