| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- <?php
- /**
- * @package modx
- * @subpackage mysql
- */
- $xpdo_meta_map['modPlugin']= array (
- 'package' => 'modx',
- 'version' => '1.1',
- 'table' => 'site_plugins',
- 'extends' => 'modScript',
- 'tableMeta' =>
- array (
- 'engine' => 'InnoDB',
- ),
- 'fields' =>
- array (
- 'cache_type' => 0,
- 'plugincode' => '',
- 'locked' => 0,
- 'properties' => NULL,
- 'disabled' => 0,
- 'moduleguid' => '',
- 'static' => 0,
- 'static_file' => '',
- ),
- 'fieldMeta' =>
- array (
- 'cache_type' =>
- array (
- 'dbtype' => 'tinyint',
- 'precision' => '1',
- 'phptype' => 'integer',
- 'null' => false,
- 'default' => 0,
- ),
- 'plugincode' =>
- array (
- 'dbtype' => 'mediumtext',
- 'phptype' => 'string',
- 'null' => false,
- 'default' => '',
- ),
- 'locked' =>
- array (
- 'dbtype' => 'tinyint',
- 'precision' => '1',
- 'attributes' => 'unsigned',
- 'phptype' => 'boolean',
- 'null' => false,
- 'default' => 0,
- 'index' => 'index',
- ),
- 'properties' =>
- array (
- 'dbtype' => 'text',
- 'phptype' => 'array',
- 'null' => true,
- ),
- 'disabled' =>
- array (
- 'dbtype' => 'tinyint',
- 'precision' => '1',
- 'attributes' => 'unsigned',
- 'phptype' => 'boolean',
- 'null' => false,
- 'default' => 0,
- 'index' => 'index',
- ),
- 'moduleguid' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '32',
- 'phptype' => 'string',
- 'null' => false,
- 'default' => '',
- 'index' => 'fk',
- ),
- 'static' =>
- array (
- 'dbtype' => 'tinyint',
- 'precision' => '1',
- 'attributes' => 'unsigned',
- 'phptype' => 'boolean',
- 'null' => false,
- 'default' => 0,
- 'index' => 'index',
- ),
- 'static_file' =>
- array (
- 'dbtype' => 'varchar',
- 'precision' => '191',
- 'phptype' => 'string',
- 'null' => false,
- 'default' => '',
- ),
- ),
- 'fieldAliases' =>
- array (
- 'content' => 'plugincode',
- ),
- 'indexes' =>
- array (
- 'locked' =>
- array (
- 'alias' => 'locked',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'locked' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'disabled' =>
- array (
- 'alias' => 'disabled',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'disabled' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- 'static' =>
- array (
- 'alias' => 'static',
- 'primary' => false,
- 'unique' => false,
- 'type' => 'BTREE',
- 'columns' =>
- array (
- 'static' =>
- array (
- 'length' => '',
- 'collation' => 'A',
- 'null' => false,
- ),
- ),
- ),
- ),
- 'composites' =>
- array (
- 'PropertySets' =>
- array (
- 'class' => 'modElementPropertySet',
- 'local' => 'id',
- 'foreign' => 'element',
- 'owner' => 'local',
- 'cardinality' => 'many',
- 'criteria' =>
- array (
- 'foreign' =>
- array (
- 'element_class' => 'modPlugin',
- ),
- ),
- ),
- 'PluginEvents' =>
- array (
- 'class' => 'modPluginEvent',
- 'local' => 'id',
- 'foreign' => 'pluginid',
- 'cardinality' => 'many',
- 'owner' => 'local',
- ),
- ),
- 'validation' =>
- array (
- 'rules' =>
- array (
- 'name' =>
- array (
- 'invalid' =>
- array (
- 'type' => 'preg_match',
- 'rule' => '/^(?!\\s)[a-zA-Z0-9_-\\x7f-\\xff\\s]+(?!\\s)$/',
- 'message' => 'plugin_err_invalid_name',
- ),
- ),
- ),
- ),
- );
|