| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- <?php
- /**
- * @package modx
- * @subpackage sources.mysql
- */
- $xpdo_meta_map['modMediaSource']= array (
- 'package' => 'modx.sources',
- 'version' => '1.1',
- 'table' => 'media_sources',
- 'extends' => 'modAccessibleObject',
- 'tableMeta' =>
- array (
- 'engine' => 'InnoDB',
- ),
- 'fields' =>
- array (
- 'name' => '',
- 'description' => NULL,
- 'class_key' => 'sources.modFileMediaSource',
- 'properties' => NULL,
- 'is_stream' => 1,
- ),
- 'fieldMeta' =>
- array (
- 'name' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '191',
- 'phptype' => 'string',
- 'null' => false,
- 'default' => '',
- 'index' => 'index',
- ),
- 'description' =>
- array (
- 'dbtype' => 'text',
- 'phptype' => 'string',
- 'null' => true,
- ),
- 'class_key' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '100',
- 'phptype' => 'string',
- 'null' => false,
- 'default' => 'sources.modFileMediaSource',
- 'index' => 'index',
- ),
- 'properties' =>
- array (
- 'dbtype' => 'mediumtext',
- 'phptype' => 'array',
- 'null' => true,
- ),
- 'is_stream' =>
- array (
- 'dbtype' => 'tinyint',
- 'precision' => '1',
- 'attributes' => 'unsigned',
- 'phptype' => 'boolean',
- 'null' => false,
- 'default' => 1,
- 'index' => 'index',
- ),
- ),
- 'indexes' =>
- array (
- 'name' =>
- array (
- 'alias' => 'name',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'name' =>
- 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,
- ),
- ),
- ),
- 'is_stream' =>
- array (
- 'alias' => 'is_stream',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'is_stream' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- ),
- 'composites' =>
- array (
- 'SourceElement' =>
- array (
- 'class' => 'sources.modMediaSourceElement',
- 'local' => 'id',
- 'foreign' => 'source',
- 'cardinality' => 'one',
- 'owner' => 'local',
- ),
- ),
- 'aggregates' =>
- array (
- 'Chunks' =>
- array (
- 'class' => 'modChunk',
- 'local' => 'id',
- 'foreign' => 'source',
- 'cardinality' => 'many',
- 'owner' => 'local',
- ),
- 'Plugins' =>
- array (
- 'class' => 'modPlugin',
- 'local' => 'id',
- 'foreign' => 'source',
- 'cardinality' => 'many',
- 'owner' => 'local',
- ),
- 'Snippets' =>
- array (
- 'class' => 'modSnippet',
- 'local' => 'id',
- 'foreign' => 'source',
- 'cardinality' => 'many',
- 'owner' => 'local',
- ),
- 'Templates' =>
- array (
- 'class' => 'modTemplate',
- 'local' => 'id',
- 'foreign' => 'source',
- 'cardinality' => 'many',
- 'owner' => 'local',
- ),
- 'TemplateVars' =>
- array (
- 'class' => 'modTemplateVar',
- 'local' => 'id',
- 'foreign' => 'source',
- 'cardinality' => 'many',
- 'owner' => 'local',
- ),
- ),
- );
|