Server : Apache System : Linux indy02.toastserver.com 3.10.0-962.3.2.lve1.5.85.el7.x86_64 #1 SMP Thu Apr 18 15:18:36 UTC 2024 x86_64 User : palandch ( 1163) PHP Version : 7.1.33 Disable Function : NONE Directory : /home/palandch/www/core/model/modx/sqlsrv/ |
<?php /** * @package modx * @subpackage sqlsrv */ $xpdo_meta_map['modCategory']= array ( 'package' => 'modx', 'version' => '1.1', 'table' => 'categories', 'extends' => 'modAccessibleSimpleObject', 'fields' => array ( 'parent' => 0, 'category' => '', ), 'fieldMeta' => array ( 'parent' => array ( 'dbtype' => 'int', 'phptype' => 'integer', 'default' => 0, 'index' => 'index', ), 'category' => array ( 'dbtype' => 'nvarchar', 'precision' => '45', 'phptype' => 'string', 'null' => false, 'default' => '', 'index' => 'unique', ), ), 'indexes' => array ( 'parent' => array ( 'alias' => 'parent', 'primary' => false, 'unique' => false, 'type' => 'BTREE', 'columns' => array ( 'parent' => array ( 'length' => '', 'collation' => 'A', 'null' => false, ), ), ), 'category' => array ( 'alias' => 'category', 'primary' => false, 'unique' => true, 'type' => 'BTREE', 'columns' => array ( 'category' => array ( 'length' => '', 'collation' => 'A', 'null' => false, ), ), ), ), 'composites' => array ( 'Children' => array ( 'class' => 'modCategory', 'local' => 'id', 'foreign' => 'parent', 'cardinality' => 'many', 'owner' => 'local', ), 'Acls' => array ( 'class' => 'modAccessCategory', 'local' => 'id', 'foreign' => 'target', 'owner' => 'local', 'cardinality' => 'many', ), 'Ancestors' => array ( 'class' => 'modCategoryClosure', 'local' => 'id', 'foreign' => 'ancestor', 'cardinality' => 'many', 'owner' => 'local', ), 'Descendants' => array ( 'class' => 'modCategoryClosure', 'local' => 'id', 'foreign' => 'descendant', 'cardinality' => 'many', 'owner' => 'local', ), ), 'aggregates' => array ( 'Parent' => array ( 'class' => 'modCategory', 'local' => 'parent', 'foreign' => 'id', 'cardinality' => 'one', 'owner' => 'foreign', ), 'Chunks' => array ( 'class' => 'modChunk', 'key' => 'id', 'local' => 'id', 'foreign' => 'category', 'cardinality' => 'many', 'owner' => 'local', ), 'Snippets' => array ( 'class' => 'modSnippet', 'local' => 'id', 'foreign' => 'category', 'cardinality' => 'many', 'owner' => 'local', ), 'Plugins' => array ( 'class' => 'modPlugin', 'local' => 'id', 'foreign' => 'category', 'cardinality' => 'many', 'owner' => 'local', ), 'Templates' => array ( 'class' => 'modTemplate', 'local' => 'id', 'foreign' => 'category', 'cardinality' => 'many', 'owner' => 'local', ), 'TemplateVars' => array ( 'class' => 'modTemplateVar', 'local' => 'id', 'foreign' => 'category', 'cardinality' => 'many', 'owner' => 'local', ), 'PropertySets' => array ( 'class' => 'modPropertySet', 'local' => 'id', 'foreign' => 'category', 'cardinality' => 'many', 'owner' => 'local', ), 'modChunk' => array ( 'class' => 'modChunk', 'key' => 'id', 'local' => 'id', 'foreign' => 'category', 'cardinality' => 'many', 'owner' => 'local', ), 'modSnippet' => array ( 'class' => 'modSnippet', 'local' => 'id', 'foreign' => 'category', 'cardinality' => 'many', 'owner' => 'local', ), 'modPlugin' => array ( 'class' => 'modPlugin', 'local' => 'id', 'foreign' => 'category', 'cardinality' => 'many', 'owner' => 'local', ), 'modTemplate' => array ( 'class' => 'modTemplate', 'local' => 'id', 'foreign' => 'category', 'cardinality' => 'many', 'owner' => 'local', ), 'modTemplateVar' => array ( 'class' => 'modTemplateVar', 'local' => 'id', 'foreign' => 'category', 'cardinality' => 'many', 'owner' => 'local', ), 'modPropertySet' => array ( 'class' => 'modPropertySet', 'local' => 'id', 'foreign' => 'category', 'cardinality' => 'many', 'owner' => 'local', ), ), 'validation' => array ( 'rules' => array ( 'category' => array ( 'preventBlank' => array ( 'type' => 'xPDOValidationRule', 'rule' => 'xPDOMinLengthValidationRule', 'value' => '1', 'message' => 'category_err_ns_name', ), ), ), ), );