30e2b8c628db86baed7512771b5a1e4e.vehicle 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php return array (
  2. 'unique_key' => 'name',
  3. 'preserve_keys' => false,
  4. 'update_object' => true,
  5. 'related_objects' =>
  6. array (
  7. 'PluginEvents' =>
  8. array (
  9. '5c94149a142a1bab1f94aca95d38dcde' =>
  10. array (
  11. 'preserve_keys' => true,
  12. 'update_object' => false,
  13. 'unique_key' =>
  14. array (
  15. 0 => 'pluginid',
  16. 1 => 'event',
  17. ),
  18. 'class' => 'modPluginEvent',
  19. 'object' => '{"pluginid":0,"event":"OnMODXInit","priority":0,"propertyset":0}',
  20. 'guid' => 'ce69f177314a52339ac18f19ab8be599',
  21. 'native_key' =>
  22. array (
  23. 0 => 0,
  24. 1 => 'OnMODXInit',
  25. ),
  26. 'signature' => 'd0730a97526dfe65960625344dcf70d3',
  27. ),
  28. ),
  29. ),
  30. 'related_object_attributes' =>
  31. array (
  32. 'PluginEvents' =>
  33. array (
  34. 'preserve_keys' => true,
  35. 'update_object' => false,
  36. 'unique_key' =>
  37. array (
  38. 0 => 'pluginid',
  39. 1 => 'event',
  40. ),
  41. ),
  42. ),
  43. 'namespace' => 'clientconfig',
  44. 'resolve' => NULL,
  45. 'validate' => NULL,
  46. 'vehicle_package' => 'transport',
  47. 'vehicle_class' => 'xPDOObjectVehicle',
  48. 'guid' => 'eb5e1b92929b08d3611dbfd205a76513',
  49. 'package' => 'modx',
  50. 'class' => 'modPlugin',
  51. 'signature' => '30e2b8c628db86baed7512771b5a1e4e',
  52. 'native_key' => 1,
  53. 'object' => '{"id":1,"source":0,"property_preprocess":0,"name":"ClientConfig","description":"Sets system settings from the Client Config CMP.","editor_type":0,"category":0,"cache_type":0,"plugincode":"\\/**\\n * ClientConfig\\n *\\n * Copyright 2011-2014 by Mark Hamstra <hello@markhamstra.com>\\n *\\n * ClientConfig is free software; you can redistribute it and\\/or modify it under the\\n * terms of the GNU General Public License as published by the Free Software\\n * Foundation; either version 2 of the License, or (at your option) any later\\n * version.\\n *\\n * ClientConfig is distributed in the hope that it will be useful, but WITHOUT ANY\\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\\n * A PARTICULAR PURPOSE. See the GNU General Public License for more details.\\n *\\n * You should have received a copy of the GNU General Public License along with\\n * ClientConfig; if not, write to the Free Software Foundation, Inc., 59 Temple\\n * Place, Suite 330, Boston, MA 02111-1307 USA\\n *\\n * @package clientconfig\\n *\\n * @var modX $modx\\n * @var int $id\\n * @var string $mode\\n * @var modResource $resource\\n * @var modTemplate $template\\n * @var modTemplateVar $tv\\n * @var modChunk $chunk\\n * @var modSnippet $snippet\\n * @var modPlugin $plugin\\n*\\/\\n\\n$eventName = $modx->event->name;\\n\\nswitch($eventName) {\\n case \'OnMODXInit\':\\n case \'OnHandleRequest\':\\n \\/* Grab the class *\\/\\n $path = $modx->getOption(\'clientconfig.core_path\', null, $modx->getOption(\'core_path\') . \'components\\/clientconfig\\/\');\\n $path .= \'model\\/clientconfig\\/\';\\n $clientConfig = $modx->getService(\'clientconfig\',\'ClientConfig\', $path);\\n\\n \\/* If we got the class (gotta be careful of failed migrations), grab settings and go! *\\/\\n if ($clientConfig instanceof ClientConfig) {\\n $contextKey = $modx->context instanceof modContext ? $modx->context->get(\'key\') : \'web\';\\n $settings = $clientConfig->getSettings($contextKey);\\n\\n \\/* Make settings available as [[++tags]] *\\/\\n $modx->setPlaceholders($settings, \'+\');\\n\\n \\/* Make settings available for $modx->getOption() *\\/\\n foreach ($settings as $key => $value) {\\n $modx->setOption($key, $value);\\n }\\n }\\n break;\\n}\\n\\nreturn;","locked":0,"properties":null,"disabled":0,"moduleguid":"","static":0,"static_file":"","content":"\\/**\\n * ClientConfig\\n *\\n * Copyright 2011-2014 by Mark Hamstra <hello@markhamstra.com>\\n *\\n * ClientConfig is free software; you can redistribute it and\\/or modify it under the\\n * terms of the GNU General Public License as published by the Free Software\\n * Foundation; either version 2 of the License, or (at your option) any later\\n * version.\\n *\\n * ClientConfig is distributed in the hope that it will be useful, but WITHOUT ANY\\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\\n * A PARTICULAR PURPOSE. See the GNU General Public License for more details.\\n *\\n * You should have received a copy of the GNU General Public License along with\\n * ClientConfig; if not, write to the Free Software Foundation, Inc., 59 Temple\\n * Place, Suite 330, Boston, MA 02111-1307 USA\\n *\\n * @package clientconfig\\n *\\n * @var modX $modx\\n * @var int $id\\n * @var string $mode\\n * @var modResource $resource\\n * @var modTemplate $template\\n * @var modTemplateVar $tv\\n * @var modChunk $chunk\\n * @var modSnippet $snippet\\n * @var modPlugin $plugin\\n*\\/\\n\\n$eventName = $modx->event->name;\\n\\nswitch($eventName) {\\n case \'OnMODXInit\':\\n case \'OnHandleRequest\':\\n \\/* Grab the class *\\/\\n $path = $modx->getOption(\'clientconfig.core_path\', null, $modx->getOption(\'core_path\') . \'components\\/clientconfig\\/\');\\n $path .= \'model\\/clientconfig\\/\';\\n $clientConfig = $modx->getService(\'clientconfig\',\'ClientConfig\', $path);\\n\\n \\/* If we got the class (gotta be careful of failed migrations), grab settings and go! *\\/\\n if ($clientConfig instanceof ClientConfig) {\\n $contextKey = $modx->context instanceof modContext ? $modx->context->get(\'key\') : \'web\';\\n $settings = $clientConfig->getSettings($contextKey);\\n\\n \\/* Make settings available as [[++tags]] *\\/\\n $modx->setPlaceholders($settings, \'+\');\\n\\n \\/* Make settings available for $modx->getOption() *\\/\\n foreach ($settings as $key => $value) {\\n $modx->setOption($key, $value);\\n }\\n }\\n break;\\n}\\n\\nreturn;"}',
  54. );