<?php return array (
  'unique_key' => 'category',
  'preserve_keys' => false,
  'update_object' => true,
  'related_objects' => 
  array (
    'Snippets' => 
    array (
      'e93f18df0f28f415f8fe2c96e896294c' => 
      array (
        'preserve_keys' => false,
        'update_object' => true,
        'unique_key' => 'name',
        'class' => 'modSnippet',
        'object' => '{"id":1,"source":0,"property_preprocess":0,"name":"backup","description":"Create a SQL dump of your MODX database.","editor_type":0,"category":0,"cache_type":0,"snippet":"\\/\\/ http:\\/\\/www.phpclasses.org\\/browse\\/file\\/33388.html\\r\\n\\r\\n$path = $modx->getOption(\'core_path\').\'components\\/databackup\\/\';\\r\\nrequire_once $path.\'model\\/mysql\\/dbbackup.class.php\';\\r\\n\\r\\n$output = \'\';\\r\\n\\/\\/ back up my modx database:\\r\\n$data_folder = $modx->getOption(\'databackup.folder\', $scriptProperties, $path.\'dumps\\/\');\\r\\n$purge_time = $modx->getOption(\'databackup.pruge\', $scriptProperties, 1814400);\\r\\n\\/\\/ includeTables should be a comma separtaed list\\r\\n$includeTables = $modx->getOption(\'includeTables\', $scriptProperties, NULL);\\r\\n\\/\\/ excludeTables should be a comma separtaed list\\r\\n$excludeTables = $modx->getOption(\'excludeTables\', $scriptProperties, NULL);\\r\\n\\r\\n$write_file = $modx->getOption(\'writeFile\', $scriptProperties, true);\\r\\nif ( $write_file === \'false\' ) {\\r\\n    $write_file = false;\\r\\n    $output .= \' <br>Do not write main file<br>\';\\r\\n}\\r\\n$write_table_files = $modx->getOption(\'writeTableFiles\', $scriptProperties, true);\\r\\nif ( $write_table_files === \'false\' ) {\\r\\n    $write_table_files = false;\\r\\n    $output .= \' <br>Do not write table files<br>\';\\r\\n}\\r\\n\\/\\/ these are to change how the data file is written\\r\\n$comment_prefix = $modx->getOption(\'commentPrfeix\', $scriptProperties, \'--\');\\r\\n$comment_suffix = $modx->getOption(\'commentSuffix\', $scriptProperties, \'\');\\r\\n$new_line = $modx->getOption(\'newLine\', $scriptProperties, \\"\\\\n\\");\\r\\n\\/\\/ use the sql drop command\\r\\n$use_drop = $modx->getOption(\'useDrop\', $scriptProperties, true);\\r\\nif ( $use_drop === \'false\' ) {\\r\\n    $use_drop = false;\\r\\n}\\r\\n$database = $modx->getOption(\'database\', $scriptProperties, \'modx\');\\r\\n\\/\\/ use the sql create database command\\r\\n$create_database = $modx->getOption(\'createDatabase\', $scriptProperties, false);\\r\\nif ( $create_database === \'false\' ) {\\r\\n    $create_database = false;\\r\\n}\\r\\n\\r\\n$db = new DBBackup($modx,\\r\\n    array(\\r\\n        \'comment_prefix\' => $comment_prefix,\\r\\n        \'comment_suffix\' => $comment_suffix,\\r\\n        \'new_line\' => $new_line,\\r\\n        \'base_path\' => $data_folder,\\r\\n        \'write_file\' => $write_file,\\r\\n        \'write_table_files\' => $write_table_files,\\r\\n        \'use_drop\' => $use_drop,\\r\\n        \'database\' => $database,\\r\\n        \'create_database\' => $create_database,\\r\\n        \'includeTables\' => $includeTables,\\r\\n        \'excludeTables\' => $excludeTables,\\r\\n         \\r\\n    ));\\r\\n\\r\\n$backup = $db->backup();\\r\\nif($backup){\\r\\n    $output .= \'The MODX data has been back up\';\\r\\n} else {\\r\\n    $output .= \'An error has ocurred and MODX did not get backed up correctly: \'.$db->getErrors();\\r\\n}\\r\\n$db->purge($purge_time);\\r\\n\\r\\nreturn $output;\\r\\n\\r\\n\\/\\/ restore: http:\\/\\/efreedom.com\\/Question\\/1-898440\\/PDO-SQL-Server-RESTORE-DATABASE-Query-Wait-Finished\\r\\n\\/\\/ $pdo->exec(\'RESTORE DATABASE [blah] FROM DISK = \\\\\'c:\\\\blah.bak\\\\\' WITH NOUNLOAD\');","locked":0,"properties":"a:11:{s:10:\\"dataFolder\\";a:7:{s:4:\\"name\\";s:10:\\"dataFolder\\";s:4:\\"desc\\";s:31:\\"prop_databackup.dataFolder_desc\\";s:4:\\"type\\";s:9:\\"textfield\\";s:7:\\"options\\";s:0:\\"\\";s:5:\\"value\\";s:0:\\"\\";s:7:\\"lexicon\\";s:21:\\"databackup:properties\\";s:4:\\"area\\";s:0:\\"\\";}s:5:\\"purge\\";a:7:{s:4:\\"name\\";s:5:\\"purge\\";s:4:\\"desc\\";s:26:\\"prop_databackup.purge_desc\\";s:4:\\"type\\";s:9:\\"textfield\\";s:7:\\"options\\";s:0:\\"\\";s:5:\\"value\\";s:0:\\"\\";s:7:\\"lexicon\\";s:21:\\"databackup:properties\\";s:4:\\"area\\";s:0:\\"\\";}s:13:\\"includeTables\\";a:7:{s:4:\\"name\\";s:13:\\"includeTables\\";s:4:\\"desc\\";s:34:\\"prop_databackup.includeTables_desc\\";s:4:\\"type\\";s:9:\\"textfield\\";s:7:\\"options\\";s:0:\\"\\";s:5:\\"value\\";s:0:\\"\\";s:7:\\"lexicon\\";s:21:\\"databackup:properties\\";s:4:\\"area\\";s:0:\\"\\";}s:13:\\"excludeTables\\";a:7:{s:4:\\"name\\";s:13:\\"excludeTables\\";s:4:\\"desc\\";s:34:\\"prop_databackup.excludeTables_desc\\";s:4:\\"type\\";s:9:\\"textfield\\";s:7:\\"options\\";s:0:\\"\\";s:5:\\"value\\";s:0:\\"\\";s:7:\\"lexicon\\";s:21:\\"databackup:properties\\";s:4:\\"area\\";s:0:\\"\\";}s:9:\\"writeFile\\";a:7:{s:4:\\"name\\";s:9:\\"writeFile\\";s:4:\\"desc\\";s:30:\\"prop_databackup.writeFile_desc\\";s:4:\\"type\\";s:13:\\"combo-boolean\\";s:7:\\"options\\";s:0:\\"\\";s:5:\\"value\\";b:1;s:7:\\"lexicon\\";s:21:\\"databackup:properties\\";s:4:\\"area\\";s:0:\\"\\";}s:15:\\"writeTableFiles\\";a:7:{s:4:\\"name\\";s:15:\\"writeTableFiles\\";s:4:\\"desc\\";s:36:\\"prop_databackup.writeTableFiles_desc\\";s:4:\\"type\\";s:13:\\"combo-boolean\\";s:7:\\"options\\";s:0:\\"\\";s:5:\\"value\\";b:1;s:7:\\"lexicon\\";s:21:\\"databackup:properties\\";s:4:\\"area\\";s:0:\\"\\";}s:13:\\"commentPrefix\\";a:7:{s:4:\\"name\\";s:13:\\"commentPrefix\\";s:4:\\"desc\\";s:34:\\"prop_databackup.commentPrefix_desc\\";s:4:\\"type\\";s:9:\\"textfield\\";s:7:\\"options\\";s:0:\\"\\";s:5:\\"value\\";s:3:\\"-- \\";s:7:\\"lexicon\\";s:21:\\"databackup:properties\\";s:4:\\"area\\";s:0:\\"\\";}s:13:\\"commentSuffix\\";a:7:{s:4:\\"name\\";s:13:\\"commentSuffix\\";s:4:\\"desc\\";s:34:\\"prop_databackup.commentSuffix_desc\\";s:4:\\"type\\";s:9:\\"textfield\\";s:7:\\"options\\";s:0:\\"\\";s:5:\\"value\\";s:0:\\"\\";s:7:\\"lexicon\\";s:21:\\"databackup:properties\\";s:4:\\"area\\";s:0:\\"\\";}s:7:\\"newLine\\";a:7:{s:4:\\"name\\";s:7:\\"newLine\\";s:4:\\"desc\\";s:28:\\"prop_databackup.newLine_desc\\";s:4:\\"type\\";s:9:\\"textfield\\";s:7:\\"options\\";s:0:\\"\\";s:5:\\"value\\";s:1:\\"\\n\\";s:7:\\"lexicon\\";s:21:\\"databackup:properties\\";s:4:\\"area\\";s:0:\\"\\";}s:7:\\"useDrop\\";a:7:{s:4:\\"name\\";s:7:\\"useDrop\\";s:4:\\"desc\\";s:28:\\"prop_databackup.useDrop_desc\\";s:4:\\"type\\";s:13:\\"combo-boolean\\";s:7:\\"options\\";s:0:\\"\\";s:5:\\"value\\";b:1;s:7:\\"lexicon\\";s:21:\\"databackup:properties\\";s:4:\\"area\\";s:0:\\"\\";}s:14:\\"createDatabase\\";a:7:{s:4:\\"name\\";s:14:\\"createDatabase\\";s:4:\\"desc\\";s:35:\\"prop_databackup.createDatabase_desc\\";s:4:\\"type\\";s:13:\\"combo-boolean\\";s:7:\\"options\\";s:0:\\"\\";s:5:\\"value\\";b:0;s:7:\\"lexicon\\";s:21:\\"databackup:properties\\";s:4:\\"area\\";s:0:\\"\\";}}","moduleguid":"","static":0,"static_file":"","content":"\\/\\/ http:\\/\\/www.phpclasses.org\\/browse\\/file\\/33388.html\\r\\n\\r\\n$path = $modx->getOption(\'core_path\').\'components\\/databackup\\/\';\\r\\nrequire_once $path.\'model\\/mysql\\/dbbackup.class.php\';\\r\\n\\r\\n$output = \'\';\\r\\n\\/\\/ back up my modx database:\\r\\n$data_folder = $modx->getOption(\'databackup.folder\', $scriptProperties, $path.\'dumps\\/\');\\r\\n$purge_time = $modx->getOption(\'databackup.pruge\', $scriptProperties, 1814400);\\r\\n\\/\\/ includeTables should be a comma separtaed list\\r\\n$includeTables = $modx->getOption(\'includeTables\', $scriptProperties, NULL);\\r\\n\\/\\/ excludeTables should be a comma separtaed list\\r\\n$excludeTables = $modx->getOption(\'excludeTables\', $scriptProperties, NULL);\\r\\n\\r\\n$write_file = $modx->getOption(\'writeFile\', $scriptProperties, true);\\r\\nif ( $write_file === \'false\' ) {\\r\\n    $write_file = false;\\r\\n    $output .= \' <br>Do not write main file<br>\';\\r\\n}\\r\\n$write_table_files = $modx->getOption(\'writeTableFiles\', $scriptProperties, true);\\r\\nif ( $write_table_files === \'false\' ) {\\r\\n    $write_table_files = false;\\r\\n    $output .= \' <br>Do not write table files<br>\';\\r\\n}\\r\\n\\/\\/ these are to change how the data file is written\\r\\n$comment_prefix = $modx->getOption(\'commentPrfeix\', $scriptProperties, \'--\');\\r\\n$comment_suffix = $modx->getOption(\'commentSuffix\', $scriptProperties, \'\');\\r\\n$new_line = $modx->getOption(\'newLine\', $scriptProperties, \\"\\\\n\\");\\r\\n\\/\\/ use the sql drop command\\r\\n$use_drop = $modx->getOption(\'useDrop\', $scriptProperties, true);\\r\\nif ( $use_drop === \'false\' ) {\\r\\n    $use_drop = false;\\r\\n}\\r\\n$database = $modx->getOption(\'database\', $scriptProperties, \'modx\');\\r\\n\\/\\/ use the sql create database command\\r\\n$create_database = $modx->getOption(\'createDatabase\', $scriptProperties, false);\\r\\nif ( $create_database === \'false\' ) {\\r\\n    $create_database = false;\\r\\n}\\r\\n\\r\\n$db = new DBBackup($modx,\\r\\n    array(\\r\\n        \'comment_prefix\' => $comment_prefix,\\r\\n        \'comment_suffix\' => $comment_suffix,\\r\\n        \'new_line\' => $new_line,\\r\\n        \'base_path\' => $data_folder,\\r\\n        \'write_file\' => $write_file,\\r\\n        \'write_table_files\' => $write_table_files,\\r\\n        \'use_drop\' => $use_drop,\\r\\n        \'database\' => $database,\\r\\n        \'create_database\' => $create_database,\\r\\n        \'includeTables\' => $includeTables,\\r\\n        \'excludeTables\' => $excludeTables,\\r\\n         \\r\\n    ));\\r\\n\\r\\n$backup = $db->backup();\\r\\nif($backup){\\r\\n    $output .= \'The MODX data has been back up\';\\r\\n} else {\\r\\n    $output .= \'An error has ocurred and MODX did not get backed up correctly: \'.$db->getErrors();\\r\\n}\\r\\n$db->purge($purge_time);\\r\\n\\r\\nreturn $output;\\r\\n\\r\\n\\/\\/ restore: http:\\/\\/efreedom.com\\/Question\\/1-898440\\/PDO-SQL-Server-RESTORE-DATABASE-Query-Wait-Finished\\r\\n\\/\\/ $pdo->exec(\'RESTORE DATABASE [blah] FROM DISK = \\\\\'c:\\\\blah.bak\\\\\' WITH NOUNLOAD\');"}',
        'guid' => '0bf03d05ee6ad7ca86d87976e3f7046b',
        'native_key' => 1,
        'signature' => '38aea8befb562e1f6871a45c30da3ae0',
      ),
      '841ccce19674370bc8fcd0f7f16991ea' => 
      array (
        'preserve_keys' => false,
        'update_object' => true,
        'unique_key' => 'name',
        'class' => 'modSnippet',
        'object' => '{"id":2,"source":0,"property_preprocess":0,"name":"backupmany","description":"An example snippet that will allow you to create a SQL dump of many databases.","editor_type":0,"category":0,"cache_type":0,"snippet":"\\/\\/ http:\\/\\/www.phpclasses.org\\/browse\\/file\\/33388.html\\r\\n\\r\\n$path = $modx->getOption(\'core_path\').\'components\\/databackup\\/\';\\r\\nrequire_once $path.\'model\\/mysql\\/dbbackup.class.php\';\\r\\n\\r\\n\\/*\\r\\n$f = require_once $modx->getOption(\'core_path\').\'components\\/contactpages\\/elements\\/snippets\\/snippet.contactGeneral.php\';\\r\\nreturn $f;\\r\\n*\\/\\r\\n\\r\\n\\r\\n\\/\\/ back up my modx database:\\r\\n$db = new DBBackup($modx );\\r\\n$backup = $db->backup();\\r\\n$output = \'\';\\r\\nif($backup){\\r\\n    $output .= \'The MODX data has been back up\';\\r\\n} else {\\r\\n    $output .= \'An error has ocurred and MODX did not get backed up correctly: \'.$db->getErrors();\\r\\n}\\r\\n\\r\\n\\r\\n\\/\\/ now backup another database that the modx db user has access to\\r\\n$db = new DBBackup($modx, array(\\r\\n    \'driver\' => \'mysql\',\\r\\n    \'host\' => \'localhost\',\\r\\n    \'database\' => \'modx_test\',\\r\\n    \'user\' => \'modx_user\',\\r\\n    \'password\' => \'your password\',\\r\\n    \'connect\' => true\\r\\n));\\r\\n$backup = $db->backup();\\r\\nif($backup){\\r\\n    $output .= \'<br>The MODX Test data has been back up\';\\r\\n} else {\\r\\n    $output .= \'<br>An error has ocurred and MODX Test did not get backed up correctly: \'.$db->getErrors();\\r\\n}\\r\\nreturn $output;","locked":0,"properties":null,"moduleguid":"","static":0,"static_file":"","content":"\\/\\/ http:\\/\\/www.phpclasses.org\\/browse\\/file\\/33388.html\\r\\n\\r\\n$path = $modx->getOption(\'core_path\').\'components\\/databackup\\/\';\\r\\nrequire_once $path.\'model\\/mysql\\/dbbackup.class.php\';\\r\\n\\r\\n\\/*\\r\\n$f = require_once $modx->getOption(\'core_path\').\'components\\/contactpages\\/elements\\/snippets\\/snippet.contactGeneral.php\';\\r\\nreturn $f;\\r\\n*\\/\\r\\n\\r\\n\\r\\n\\/\\/ back up my modx database:\\r\\n$db = new DBBackup($modx );\\r\\n$backup = $db->backup();\\r\\n$output = \'\';\\r\\nif($backup){\\r\\n    $output .= \'The MODX data has been back up\';\\r\\n} else {\\r\\n    $output .= \'An error has ocurred and MODX did not get backed up correctly: \'.$db->getErrors();\\r\\n}\\r\\n\\r\\n\\r\\n\\/\\/ now backup another database that the modx db user has access to\\r\\n$db = new DBBackup($modx, array(\\r\\n    \'driver\' => \'mysql\',\\r\\n    \'host\' => \'localhost\',\\r\\n    \'database\' => \'modx_test\',\\r\\n    \'user\' => \'modx_user\',\\r\\n    \'password\' => \'your password\',\\r\\n    \'connect\' => true\\r\\n));\\r\\n$backup = $db->backup();\\r\\nif($backup){\\r\\n    $output .= \'<br>The MODX Test data has been back up\';\\r\\n} else {\\r\\n    $output .= \'<br>An error has ocurred and MODX Test did not get backed up correctly: \'.$db->getErrors();\\r\\n}\\r\\nreturn $output;"}',
        'guid' => '0e63aa83e6774a72b9b8986d922026c3',
        'native_key' => 2,
        'signature' => 'a01a71c3b7a8cbb5b8aa02bc7e6afac9',
      ),
    ),
  ),
  'related_object_attributes' => 
  array (
    'Snippets' => 
    array (
      'preserve_keys' => false,
      'update_object' => true,
      'unique_key' => 'name',
    ),
  ),
  'namespace' => 'databackup',
  'resolve' => 
  array (
    0 => 
    array (
      'type' => 'file',
      'body' => '{"source":"databackup-1.1.3-pl\\/modCategory\\/03145fc95127a4039804baf8e4212763\\/0\\/","target":"return MODX_CORE_PATH . \'components\\/\';","name":"databackup"}',
    ),
  ),
  'validate' => NULL,
  'vehicle_package' => 'transport',
  'vehicle_class' => 'xPDOObjectVehicle',
  'guid' => '389ec3fd6546785994bff1d99f691017',
  'package' => 'modx',
  'class' => 'modCategory',
  'signature' => '03145fc95127a4039804baf8e4212763',
  'native_key' => 1,
  'object' => '{"id":1,"parent":0,"category":"Databackup"}',
);