| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625 |
- <?php return array (
- '0708810684b0d8dfb4ca61dfcdabc601' =>
- array (
- 'criteria' =>
- array (
- 'name' => 'collections',
- ),
- 'object' =>
- array (
- 'name' => 'collections',
- 'path' => '{core_path}components/collections/',
- 'assets_path' => '{assets_path}components/collections/',
- ),
- ),
- 'aad2a63500239d7790c75677c227edc1' =>
- array (
- 'criteria' =>
- array (
- 'key' => 'collections.mgr_date_format',
- ),
- 'object' =>
- array (
- 'key' => 'collections.mgr_date_format',
- 'value' => 'M d',
- 'xtype' => 'textfield',
- 'namespace' => 'collections',
- 'area' => 'manager',
- 'editedon' => NULL,
- ),
- ),
- '5a455e8670b070529ab1c7a573c90114' =>
- array (
- 'criteria' =>
- array (
- 'key' => 'collections.mgr_time_format',
- ),
- 'object' =>
- array (
- 'key' => 'collections.mgr_time_format',
- 'value' => 'g:i a',
- 'xtype' => 'textfield',
- 'namespace' => 'collections',
- 'area' => 'manager',
- 'editedon' => NULL,
- ),
- ),
- '3f6862afe49a827795e7b31be0a0c67c' =>
- array (
- 'criteria' =>
- array (
- 'key' => 'collections.mgr_datetime_format',
- ),
- 'object' =>
- array (
- 'key' => 'collections.mgr_datetime_format',
- 'value' => 'M d, g:i a',
- 'xtype' => 'textfield',
- 'namespace' => 'collections',
- 'area' => 'manager',
- 'editedon' => NULL,
- ),
- ),
- '232385fa305ae5cdc6a96fb3d2909c6a' =>
- array (
- 'criteria' =>
- array (
- 'key' => 'collections.user_js',
- ),
- 'object' =>
- array (
- 'key' => 'collections.user_js',
- 'value' => '',
- 'xtype' => 'textfield',
- 'namespace' => 'collections',
- 'area' => 'manager',
- 'editedon' => NULL,
- ),
- ),
- 'a7c7cf0b23e424fa9585e48c0f6afa6e' =>
- array (
- 'criteria' =>
- array (
- 'key' => 'collections.user_css',
- ),
- 'object' =>
- array (
- 'key' => 'collections.user_css',
- 'value' => '',
- 'xtype' => 'textfield',
- 'namespace' => 'collections',
- 'area' => 'manager',
- 'editedon' => NULL,
- ),
- ),
- 'be74cd2a752dc07bff6e1ac1b7c93406' =>
- array (
- 'criteria' =>
- array (
- 'key' => 'mgr_tree_icon_collectioncontainer',
- ),
- 'object' =>
- array (
- 'key' => 'mgr_tree_icon_collectioncontainer',
- 'value' => 'collectioncontainer',
- 'xtype' => 'textfield',
- 'namespace' => 'collections',
- 'area' => 'manager',
- 'editedon' => NULL,
- ),
- ),
- '6a3e80509677bdae76fdafc3091e6e26' =>
- array (
- 'criteria' =>
- array (
- 'key' => 'mgr_tree_icon_selectioncontainer',
- ),
- 'object' =>
- array (
- 'key' => 'mgr_tree_icon_selectioncontainer',
- 'value' => 'selectioncontainer',
- 'xtype' => 'textfield',
- 'namespace' => 'collections',
- 'area' => 'manager',
- 'editedon' => NULL,
- ),
- ),
- '8dbe2c3f67d75333fe279d9218ac68ec' =>
- array (
- 'criteria' =>
- array (
- 'key' => 'collections.renderer_image_path',
- ),
- 'object' =>
- array (
- 'key' => 'collections.renderer_image_path',
- 'value' => '',
- 'xtype' => 'textfield',
- 'namespace' => 'collections',
- 'area' => 'manager',
- 'editedon' => NULL,
- ),
- ),
- '2ffc3c36ef3478886700dc3abb0cbb99' =>
- array (
- 'criteria' =>
- array (
- 'key' => 'collections.tree_tbar_collection',
- ),
- 'object' =>
- array (
- 'key' => 'collections.tree_tbar_collection',
- 'value' => '0',
- 'xtype' => 'combo-boolean',
- 'namespace' => 'collections',
- 'area' => 'manager',
- 'editedon' => NULL,
- ),
- ),
- '992bcbfd0667130e2eb5b535cc4dc940' =>
- array (
- 'criteria' =>
- array (
- 'key' => 'collections.tree_tbar_selection',
- ),
- 'object' =>
- array (
- 'key' => 'collections.tree_tbar_selection',
- 'value' => '0',
- 'xtype' => 'combo-boolean',
- 'namespace' => 'collections',
- 'area' => 'manager',
- 'editedon' => NULL,
- ),
- ),
- '302f6cda26f4f09c033e654f12559081' =>
- array (
- 'criteria' =>
- array (
- 'category' => 'Collections',
- ),
- 'object' =>
- array (
- 'id' => 32,
- 'parent' => 0,
- 'category' => 'Collections',
- 'rank' => 0,
- ),
- ),
- '048aa13f988a5ff3f4a24867381d57e8' =>
- array (
- 'criteria' =>
- array (
- 'name' => 'getSelections',
- ),
- 'object' =>
- array (
- 'id' => 96,
- 'source' => 0,
- 'property_preprocess' => 0,
- 'name' => 'getSelections',
- 'description' => '',
- 'editor_type' => 0,
- 'category' => 32,
- 'cache_type' => 0,
- 'snippet' => '/**
- * getSelections
- *
- * DESCRIPTION
- *
- * This snippet is a helper for getResources call.
- * It will allows you to select all linked resources under specific Selection with a usage of getResources snippet.
- * Returns distinct list of linked Resources for given Selections
- *
- * getResources are required
- *
- * PROPERTIES:
- *
- * &sortdir string optional Direction of sorting by linked resource\'s menuindex. Default: ASC
- * &selections string optional Comma separated list of Selection IDs for which should be retrieved linked resources. Default: empty string
- * &getResourcesSnippet string optional Name of getResources snippet. Default: getResources
- * &excludeResources string optional Comma separated list of Resources to exclude, even though they are in the Selection
- *
- * USAGE:
- *
- * [[getSelections? &selections=`1` &tpl=`rowTpl`]]
- * [[getSelections? &selections=`1` &tpl=`rowTpl` &sortby=`RAND()`]]
- *
- * @var modX $modx
- * @var array $scriptProperties
- */
- $corePath = $modx->getOption(\'collections.core_path\', null, $modx->getOption(\'core_path\', null, MODX_CORE_PATH) . \'components/collections/\');
- /** @var Collections $collections */
- $collections = $modx->getService(
- \'collections\',
- \'Collections\',
- $corePath . \'model/collections/\',
- array(
- \'core_path\' => $corePath
- )
- );
- if (!($collections instanceof Collections)) return \'\';
- $getResourcesSnippet = $modx->getOption(\'getResourcesSnippet\', $scriptProperties, \'getResources\');
- $getResourcesExists = $modx->getCount(\'modSnippet\', array(\'name\' => $getResourcesSnippet));
- if ($getResourcesExists == 0) return \'getResources not found\';
- $sortDir = strtolower($modx->getOption(\'sortdir\', $scriptProperties, \'asc\'));
- $selections = $modx->getOption(\'selections\', $scriptProperties, \'\');
- $sortBy = $modx->getOption(\'sortby\', $scriptProperties, \'\');
- $selections = $collections->explodeAndClean($selections);
- if ($sortDir != \'asc\') {
- $sortDir = \'desc\';
- }
- $linkedResourcesQuery = $modx->newQuery(\'CollectionSelection\');
- if (!empty($selections)) {
- $linkedResourcesQuery->where(array(
- \'collection:IN\' => $selections
- ));
- }
- if ($sortBy == \'\') {
- $linkedResourcesQuery->sortby(\'menuindex\', $sortDir);
- }
- $linkedResourcesQuery->select(array(
- \'resource\' => \'DISTINCT(resource)\'
- ));
- $linkedResourcesQuery->prepare();
- $linkedResourcesQuery->stmt->execute();
- $linkedResources = $linkedResourcesQuery->stmt->fetchAll(PDO::FETCH_COLUMN, 0);
- $excludedResources = $modx->getOption(\'excludeResources\', $scriptProperties, \'\');
- $excludedResources = $collections->explodeAndClean($excludedResources);
- if (!empty($excludedResources)) {
- $linkedResources = array_diff($linkedResources, $excludedResources);
- }
- $linkedResources = implode(\',\', $linkedResources);
- $properties = $scriptProperties;
- unset($properties[\'selections\']);
- $properties[\'resources\'] = $linkedResources;
- $properties[\'parents\'] = ($properties[\'getResourcesSnippet\'] == \'pdoResources\') ? 0 : -1;
- if ($sortBy == \'\') {
- $properties[\'sortby\'] = \'FIELD(modResource.id, \' . $linkedResources . \' )\';
- $properties[\'sortdir\'] = \'asc\';
- }
- return $modx->runSnippet($getResourcesSnippet, $properties);',
- 'locked' => 0,
- 'properties' => 'a:0:{}',
- 'moduleguid' => '',
- 'static' => 0,
- 'static_file' => '',
- 'content' => '/**
- * getSelections
- *
- * DESCRIPTION
- *
- * This snippet is a helper for getResources call.
- * It will allows you to select all linked resources under specific Selection with a usage of getResources snippet.
- * Returns distinct list of linked Resources for given Selections
- *
- * getResources are required
- *
- * PROPERTIES:
- *
- * &sortdir string optional Direction of sorting by linked resource\'s menuindex. Default: ASC
- * &selections string optional Comma separated list of Selection IDs for which should be retrieved linked resources. Default: empty string
- * &getResourcesSnippet string optional Name of getResources snippet. Default: getResources
- * &excludeResources string optional Comma separated list of Resources to exclude, even though they are in the Selection
- *
- * USAGE:
- *
- * [[getSelections? &selections=`1` &tpl=`rowTpl`]]
- * [[getSelections? &selections=`1` &tpl=`rowTpl` &sortby=`RAND()`]]
- *
- * @var modX $modx
- * @var array $scriptProperties
- */
- $corePath = $modx->getOption(\'collections.core_path\', null, $modx->getOption(\'core_path\', null, MODX_CORE_PATH) . \'components/collections/\');
- /** @var Collections $collections */
- $collections = $modx->getService(
- \'collections\',
- \'Collections\',
- $corePath . \'model/collections/\',
- array(
- \'core_path\' => $corePath
- )
- );
- if (!($collections instanceof Collections)) return \'\';
- $getResourcesSnippet = $modx->getOption(\'getResourcesSnippet\', $scriptProperties, \'getResources\');
- $getResourcesExists = $modx->getCount(\'modSnippet\', array(\'name\' => $getResourcesSnippet));
- if ($getResourcesExists == 0) return \'getResources not found\';
- $sortDir = strtolower($modx->getOption(\'sortdir\', $scriptProperties, \'asc\'));
- $selections = $modx->getOption(\'selections\', $scriptProperties, \'\');
- $sortBy = $modx->getOption(\'sortby\', $scriptProperties, \'\');
- $selections = $collections->explodeAndClean($selections);
- if ($sortDir != \'asc\') {
- $sortDir = \'desc\';
- }
- $linkedResourcesQuery = $modx->newQuery(\'CollectionSelection\');
- if (!empty($selections)) {
- $linkedResourcesQuery->where(array(
- \'collection:IN\' => $selections
- ));
- }
- if ($sortBy == \'\') {
- $linkedResourcesQuery->sortby(\'menuindex\', $sortDir);
- }
- $linkedResourcesQuery->select(array(
- \'resource\' => \'DISTINCT(resource)\'
- ));
- $linkedResourcesQuery->prepare();
- $linkedResourcesQuery->stmt->execute();
- $linkedResources = $linkedResourcesQuery->stmt->fetchAll(PDO::FETCH_COLUMN, 0);
- $excludedResources = $modx->getOption(\'excludeResources\', $scriptProperties, \'\');
- $excludedResources = $collections->explodeAndClean($excludedResources);
- if (!empty($excludedResources)) {
- $linkedResources = array_diff($linkedResources, $excludedResources);
- }
- $linkedResources = implode(\',\', $linkedResources);
- $properties = $scriptProperties;
- unset($properties[\'selections\']);
- $properties[\'resources\'] = $linkedResources;
- $properties[\'parents\'] = ($properties[\'getResourcesSnippet\'] == \'pdoResources\') ? 0 : -1;
- if ($sortBy == \'\') {
- $properties[\'sortby\'] = \'FIELD(modResource.id, \' . $linkedResources . \' )\';
- $properties[\'sortdir\'] = \'asc\';
- }
- return $modx->runSnippet($getResourcesSnippet, $properties);',
- ),
- ),
- '2145756bb9a563e66aa9b1aff8303b07' =>
- array (
- 'criteria' =>
- array (
- 'name' => 'Collections',
- ),
- 'object' =>
- array (
- 'id' => 17,
- 'source' => 0,
- 'property_preprocess' => 0,
- 'name' => 'Collections',
- 'description' => '',
- 'editor_type' => 0,
- 'category' => 32,
- 'cache_type' => 0,
- 'plugincode' => '/**
- * Collections
- *
- * DESCRIPTION
- *
- * This plugin inject JS to handle proper working of close buttons in Resource\'s panel (OnDocFormPrerender)
- * This plugin handles setting proper show_in_tree parameter (OnBeforeDocFormSave, OnResourceSort)
- *
- * @var modX $modx
- * @var array $scriptProperties
- */
- $corePath = $modx->getOption(\'collections.core_path\', null, $modx->getOption(\'core_path\', null, MODX_CORE_PATH) . \'components/collections/\');
- /** @var Collections $collections */
- $collections = $modx->getService(
- \'collections\',
- \'Collections\',
- $corePath . \'model/collections/\',
- array(
- \'core_path\' => $corePath
- )
- );
- $className = \'Collections\' . $modx->event->name;
- $modx->loadClass(\'CollectionsPlugin\', $collections->getOption(\'modelPath\') . \'collections/events/\', true, true);
- $modx->loadClass($className, $collections->getOption(\'modelPath\') . \'collections/events/\', true, true);
- if (class_exists($className)) {
- /** @var CollectionsPlugin $handler */
- $handler = new $className($modx, $scriptProperties);
- $handler->run();
- }
- return;',
- 'locked' => 0,
- 'properties' => 'a:0:{}',
- 'disabled' => 0,
- 'moduleguid' => '',
- 'static' => 0,
- 'static_file' => '',
- 'content' => '/**
- * Collections
- *
- * DESCRIPTION
- *
- * This plugin inject JS to handle proper working of close buttons in Resource\'s panel (OnDocFormPrerender)
- * This plugin handles setting proper show_in_tree parameter (OnBeforeDocFormSave, OnResourceSort)
- *
- * @var modX $modx
- * @var array $scriptProperties
- */
- $corePath = $modx->getOption(\'collections.core_path\', null, $modx->getOption(\'core_path\', null, MODX_CORE_PATH) . \'components/collections/\');
- /** @var Collections $collections */
- $collections = $modx->getService(
- \'collections\',
- \'Collections\',
- $corePath . \'model/collections/\',
- array(
- \'core_path\' => $corePath
- )
- );
- $className = \'Collections\' . $modx->event->name;
- $modx->loadClass(\'CollectionsPlugin\', $collections->getOption(\'modelPath\') . \'collections/events/\', true, true);
- $modx->loadClass($className, $collections->getOption(\'modelPath\') . \'collections/events/\', true, true);
- if (class_exists($className)) {
- /** @var CollectionsPlugin $handler */
- $handler = new $className($modx, $scriptProperties);
- $handler->run();
- }
- return;',
- ),
- ),
- 'afe424f721a00b87314f0dbc32519e20' =>
- array (
- 'criteria' =>
- array (
- 'pluginid' => 17,
- 'event' => 'OnManagerPageInit',
- ),
- 'object' =>
- array (
- 'pluginid' => 17,
- 'event' => 'OnManagerPageInit',
- 'priority' => 0,
- 'propertyset' => 0,
- ),
- ),
- '106a976fb2a14b8fab9221dce87002c4' =>
- array (
- 'criteria' =>
- array (
- 'pluginid' => 17,
- 'event' => 'OnBeforeDocFormSave',
- ),
- 'object' =>
- array (
- 'pluginid' => 17,
- 'event' => 'OnBeforeDocFormSave',
- 'priority' => 0,
- 'propertyset' => 0,
- ),
- ),
- 'dc445129469bce5e7bf7daf78ddfae49' =>
- array (
- 'criteria' =>
- array (
- 'pluginid' => 17,
- 'event' => 'OnResourceBeforeSort',
- ),
- 'object' =>
- array (
- 'pluginid' => 17,
- 'event' => 'OnResourceBeforeSort',
- 'priority' => 0,
- 'propertyset' => 0,
- ),
- ),
- '4d4512be49843c80ffb444664b2f41b3' =>
- array (
- 'criteria' =>
- array (
- 'pluginid' => 17,
- 'event' => 'OnDocFormPrerender',
- ),
- 'object' =>
- array (
- 'pluginid' => 17,
- 'event' => 'OnDocFormPrerender',
- 'priority' => 0,
- 'propertyset' => 0,
- ),
- ),
- '3897b9d914514cee2a9ea021645c0476' =>
- array (
- 'criteria' =>
- array (
- 'pluginid' => 17,
- 'event' => 'OnBeforeEmptyTrash',
- ),
- 'object' =>
- array (
- 'pluginid' => 17,
- 'event' => 'OnBeforeEmptyTrash',
- 'priority' => 0,
- 'propertyset' => 0,
- ),
- ),
- '2627a7fe9062e2a304ca44e114c4d941' =>
- array (
- 'criteria' =>
- array (
- 'pluginid' => 17,
- 'event' => 'OnDocFormRender',
- ),
- 'object' =>
- array (
- 'pluginid' => 17,
- 'event' => 'OnDocFormRender',
- 'priority' => 0,
- 'propertyset' => 0,
- ),
- ),
- '6a7a051612062f31f7a1f06e587e1daf' =>
- array (
- 'criteria' =>
- array (
- 'pluginid' => 17,
- 'event' => 'OnManagerPageBeforeRender',
- ),
- 'object' =>
- array (
- 'pluginid' => 17,
- 'event' => 'OnManagerPageBeforeRender',
- 'priority' => 0,
- 'propertyset' => 0,
- ),
- ),
- 'd461bf4226f6b1cd27d91bbe108fb396' =>
- array (
- 'criteria' =>
- array (
- 'text' => 'collections.menu.collection_templates',
- ),
- 'object' =>
- array (
- 'text' => 'collections.menu.collection_templates',
- 'parent' => 'components',
- 'action' => '5',
- 'description' => 'collections.menu.collection_templates_desc',
- 'icon' => '',
- 'menuindex' => 0,
- 'params' => '',
- 'handler' => '',
- 'permissions' => '',
- 'namespace' => 'core',
- ),
- ),
- );
|