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['modSnippet']= array ( 'package' => 'modx', 'version' => '1.1', 'table' => 'site_snippets', 'extends' => 'modScript', 'fields' => array ( 'cache_type' => 0, 'snippet' => NULL, 'locked' => 0, 'properties' => NULL, 'moduleguid' => '', 'static' => 0, 'static_file' => '', ), 'fieldMeta' => array ( 'cache_type' => array ( 'dbtype' => 'tinyint', 'precision' => '1', 'phptype' => 'integer', 'null' => false, 'default' => 0, ), 'snippet' => array ( 'dbtype' => 'nvarchar', 'precision' => 'max', 'phptype' => 'string', ), 'locked' => array ( 'dbtype' => 'bit', 'phptype' => 'boolean', 'null' => false, 'default' => 0, 'index' => 'index', ), 'properties' => array ( 'dbtype' => 'nvarchar', 'precision' => 'max', 'phptype' => 'array', 'null' => true, ), 'moduleguid' => array ( 'dbtype' => 'nvarchar', 'precision' => '32', 'phptype' => 'string', 'null' => false, 'default' => '', 'index' => 'fk', ), 'static' => array ( 'dbtype' => 'bit', 'phptype' => 'boolean', 'null' => false, 'default' => 0, 'index' => 'index', ), 'static_file' => array ( 'dbtype' => 'nvarchar', 'precision' => '255', 'phptype' => 'string', 'null' => false, 'default' => '', ), ), 'fieldAliases' => array ( 'content' => 'snippet', ), 'indexes' => array ( 'locked' => array ( 'alias' => 'locked', 'primary' => false, 'unique' => false, 'type' => 'BTREE', 'columns' => array ( 'locked' => array ( 'length' => '', 'collation' => 'A', 'null' => false, ), ), ), 'moduleguid' => array ( 'alias' => 'moduleguid', 'primary' => false, 'unique' => false, 'type' => 'BTREE', 'columns' => array ( 'moduleguid' => 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' => 'modSnippet', ), ), ), ), 'validation' => array ( 'rules' => array ( 'name' => array ( 'invalid' => array ( 'type' => 'preg_match', 'rule' => '/^(?!\\s)[a-zA-Z0-9\\x2d-\\x2f\\x7f-\\xff_-\\s]+(?!\\s)$/', 'message' => 'snippet_err_invalid_name', ), ), ), ), );