false, 'update_object' => true, 'unique_key' => 'name', 'related_objects' => array ( 'PluginEvents' => array ( '31b4b628816d3fc7a86992d4f7a674d9' => array ( 'preserve_keys' => true, 'update_object' => false, 'unique_key' => array ( 0 => 'pluginid', 1 => 'event', ), 'class' => 'modPluginEvent', 'object' => '{"pluginid":0,"event":"OnTVInputRenderList","priority":0,"propertyset":0}', 'guid' => '78a2da8b578a97c3769a6ea3a8d71093', 'native_key' => array ( 0 => 0, 1 => 'OnTVInputRenderList', ), 'signature' => 'f65e57bdc25e9a13c1f37682892aaf4e', ), 'd51da72789a032c700e74f64c84968cd' => array ( 'preserve_keys' => true, 'update_object' => false, 'unique_key' => array ( 0 => 'pluginid', 1 => 'event', ), 'class' => 'modPluginEvent', 'object' => '{"pluginid":0,"event":"OnTVInputPropertiesList","priority":0,"propertyset":0}', 'guid' => '9d1842b08e6540ac31a3055458064b1f', 'native_key' => array ( 0 => 0, 1 => 'OnTVInputPropertiesList', ), 'signature' => '736e408be0a820f91a71551ade9f64ad', ), '9f8612974b2b5481fb5b8b3dd81320d7' => array ( 'preserve_keys' => true, 'update_object' => false, 'unique_key' => array ( 0 => 'pluginid', 1 => 'event', ), 'class' => 'modPluginEvent', 'object' => '{"pluginid":0,"event":"OnTVOutputRenderList","priority":0,"propertyset":0}', 'guid' => '6f4d5f4fcbb47716984c82544c97198b', 'native_key' => array ( 0 => 0, 1 => 'OnTVOutputRenderList', ), 'signature' => '1d8bec4c4a8721b015994da552c9aa2d', ), '925761df08b716e3069066ead3428db6' => array ( 'preserve_keys' => true, 'update_object' => false, 'unique_key' => array ( 0 => 'pluginid', 1 => 'event', ), 'class' => 'modPluginEvent', 'object' => '{"pluginid":0,"event":"OnTVOutputRenderPropertiesList","priority":0,"propertyset":0}', 'guid' => 'f36f824090f1e59a330d09865b9b99ef', 'native_key' => array ( 0 => 0, 1 => 'OnTVOutputRenderPropertiesList', ), 'signature' => 'e2b28a11655ba254954d0b6583a03a70', ), '6d48abd5c16b2796e8fa64cf3ca5c3eb' => array ( 'preserve_keys' => true, 'update_object' => false, 'unique_key' => array ( 0 => 'pluginid', 1 => 'event', ), 'class' => 'modPluginEvent', 'object' => '{"pluginid":0,"event":"OnDocFormPrerender","priority":0,"propertyset":0}', 'guid' => '42ec13f901061223a3d64dfe791873fe', 'native_key' => array ( 0 => 0, 1 => 'OnDocFormPrerender', ), 'signature' => '2b8ddc3382ef718fd625dddef0548425', ), 'fb166f80d59ad6d7fa178cf5b76c439f' => array ( 'preserve_keys' => true, 'update_object' => false, 'unique_key' => array ( 0 => 'pluginid', 1 => 'event', ), 'class' => 'modPluginEvent', 'object' => '{"pluginid":0,"event":"OnManagerPageBeforeRender","priority":0,"propertyset":0}', 'guid' => 'e361168a994e9ada8ec1562c85d143a2', 'native_key' => array ( 0 => 0, 1 => 'OnManagerPageBeforeRender', ), 'signature' => '5b87f88a87b06cc5bbac658e272c30d5', ), ), ), 'related_object_attributes' => array ( 'PluginEvents' => array ( 'preserve_keys' => true, 'update_object' => false, 'unique_key' => array ( 0 => 'pluginid', 1 => 'event', ), ), ), 'namespace' => 'gallery', 'resolve' => NULL, 'validate' => NULL, 'vehicle_package' => 'transport', 'vehicle_class' => 'xPDOObjectVehicle', 'guid' => '2f0ec340a0f42a6e815fd8b40f39c49c', 'package' => 'modx', 'class' => 'modPlugin', 'signature' => '50b976f0347c09a9a3850334d5ec5b47', 'native_key' => 1, 'object' => '{"id":1,"source":0,"property_preprocess":0,"name":"GalleryCustomTV","description":"","editor_type":0,"category":0,"cache_type":0,"plugincode":"\\/**\\n * Handles plugin events for Gallery\'s Custom TV\\n * \\n * @package gallery\\n *\\/\\n$corePath = $modx->getOption(\'gallery.core_path\',null,$modx->getOption(\'core_path\').\'components\\/gallery\\/\');\\nswitch ($modx->event->name) {\\n case \'OnTVInputRenderList\':\\n $modx->event->output($corePath.\'elements\\/tv\\/input\\/\');\\n break;\\n case \'OnTVOutputRenderList\':\\n $modx->event->output($corePath.\'elements\\/tv\\/output\\/\');\\n break;\\n case \'OnTVInputPropertiesList\':\\n $modx->event->output($corePath.\'elements\\/tv\\/inputoptions\\/\');\\n break;\\n case \'OnTVOutputRenderPropertiesList\':\\n $modx->event->output($corePath.\'elements\\/tv\\/properties\\/\');\\n break;\\n case \'OnManagerPageBeforeRender\':\\n $gallery = $modx->getService(\'gallery\',\'Gallery\',$modx->getOption(\'gallery.core_path\',null,$modx->getOption(\'core_path\').\'components\\/gallery\\/\').\'model\\/gallery\\/\',$scriptProperties);\\n if (!($gallery instanceof Gallery)) return \'\';\\n\\n $snippetIds = \'\';\\n $gallerySnippet = $modx->getObject(\'modSnippet\',array(\'name\' => \'Gallery\'));\\n if ($gallerySnippet) {\\n $snippetIds .= \'GAL.snippetGallery = \\"\'.$gallerySnippet->get(\'id\').\'\\";\'.\\"\\\\n\\";\\n }\\n $galleryItemSnippet = $modx->getObject(\'modSnippet\',array(\'name\' => \'GalleryItem\'));\\n if ($galleryItemSnippet) {\\n $snippetIds .= \'GAL.snippetGalleryItem = \\"\'.$galleryItemSnippet->get(\'id\').\'\\";\'.\\"\\\\n\\";\\n }\\n\\n $jsDir = $modx->getOption(\'gallery.assets_url\',null,$modx->getOption(\'assets_url\').\'components\\/gallery\\/\').\'js\\/mgr\\/\';\\n $modx->controller->addLexiconTopic(\'gallery:default\');\\n $modx->controller->addJavascript($jsDir.\'gallery.js\');\\n $modx->controller->addJavascript($jsDir.\'tree.js\');\\n $modx->controller->addHtml(\'