Fixed the code search keys to include new views, and fields across JCB.

This commit is contained in:
Llewellyn van der Merwe 2019-05-20 22:54:40 +02:00
parent d7d4ec43e6
commit a90d6f51f7
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5
7 changed files with 89 additions and 54 deletions

View File

@ -150,7 +150,7 @@ TODO
+ *Version*: 2.9.18
+ *Copyright*: Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved.
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
+ *Line count*: **206393**
+ *Line count*: **206424**
+ *Field count*: **1136**
+ *File count*: **1344**
+ *Folder count*: **209**

View File

@ -150,7 +150,7 @@ TODO
+ *Version*: 2.9.18
+ *Copyright*: Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved.
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
+ *Line count*: **206393**
+ *Line count*: **206424**
+ *Field count*: **1136**
+ *File count*: **1344**
+ *Folder count*: **209**

View File

@ -3790,18 +3790,20 @@ COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_PLACEHOLDERS_EXPLAINED_DESCRIPTION="<div c
<div id='before-usedin'>Soon as enough data is available we will display all the areas where this code is used.</div>
<div id='usedin-a' style='display: none;'><h2>Components</h2><div id='area-a'></div></div>
<div id='usedin-b' style='display:none;'><h2>Component Dashboard</h2><div id='area-b'></div></div>
<div id='usedin-c' style='display:none;'><h2>Admin Views</h2><div id='area-c'></div></div>
<div id='usedin-d' style='display:none;'><h2>Admin Fields Relations</h2><div id='area-d'></div></div>
<div id='usedin-e' style='display:none;'><h2>Custom Admin Views</h2><div id='area-e'></div></div>
<div id='usedin-f' style='display:none;'><h2>Site Views</h2><div id='area-f'></div></div>
<div id='usedin-g' style='display:none;'><h2>Fields</h2><div id='area-g'></div></div>
<div id='usedin-h' style='display:none;'><h2>Fieldtypes</h2><div id='area-h'></div></div>
<div id='usedin-i' style='display:none;'><h2>Dynamic Gets</h2><div id='area-i'></div></div>
<div id='usedin-j' style='display:none;'><h2>Templates</h2><div id='area-j'></div></div>
<div id='usedin-k' style='display:none;'><h2>Layouts</h2><div id='area-k'></div></div>
<div id='usedin-l' style='display:none;'><h2>Libraries</h2><div id='area-l'></div></div>
<div id='usedin-m' style='display:none;'><h2>Custom Code</h2><div id='area-m'></div></div>
<div id='usedin-n' style='display:none;'><h2>Validation Rule</h2><div id='area-n'></div></div>
<div id='usedin-c' style='display:none;'><h2>Component Placeholders</h2><div id='area-c'></div></div>
<div id='usedin-d' style='display:none;'><h2>Admin Views</h2><div id='area-d'></div></div>
<div id='usedin-e' style='display:none;'><h2>Admin Fields Relations</h2><div id='area-e'></div></div>
<div id='usedin-f' style='display:none;'><h2>Admin Custom Tabs</h2><div id='area-f'></div></div>
<div id='usedin-g' style='display:none;'><h2>Custom Admin Views</h2><div id='area-g'></div></div>
<div id='usedin-h' style='display:none;'><h2>Site Views</h2><div id='area-h'></div></div>
<div id='usedin-i' style='display:none;'><h2>Fields</h2><div id='area-i'></div></div>
<div id='usedin-j' style='display:none;'><h2>Fieldtypes</h2><div id='area-j'></div></div>
<div id='usedin-k' style='display:none;'><h2>Dynamic Gets</h2><div id='area-k'></div></div>
<div id='usedin-l' style='display:none;'><h2>Templates</h2><div id='area-l'></div></div>
<div id='usedin-m' style='display:none;'><h2>Layouts</h2><div id='area-m'></div></div>
<div id='usedin-n' style='display:none;'><h2>Libraries</h2><div id='area-n'></div></div>
<div id='usedin-o' style='display:none;'><h2>Custom Code</h2><div id='area-o'></div></div>
<div id='usedin-p' style='display:none;'><h2>Validation Rule</h2><div id='area-p'></div></div>
<div id='loading-usedin' style='display: none;'><h2>Scanning Database<span class='loading-dots'>..</span></h2></div>
<div id='note-usedin-found' style='display: none;'><small>You can edit the above areas where this code is used.</small></div>
<div id='note-usedin-not' style='display: none;'><small>This code is not used in any area of the JCB custom code blocks at this time.</small></div>
@ -5461,6 +5463,7 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_URL_LABEL="URL to your WHMCS install
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_URL_MESSAGE="Error! Please add website here."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES="Yes"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ZIP="ZIP"
COM_COMPONENTBUILDER_JOOMLA_FIELDS="Joomla fields"
COM_COMPONENTBUILDER_JUST_GET_ALL_SNIPPETS="Just Get All Snippets"
COM_COMPONENTBUILDER_KEEP_HISTORY="Keep History"
COM_COMPONENTBUILDER_KEEP_ORIGINAL_ACCESS="- Keep Original Access -"
@ -6273,18 +6276,20 @@ COM_COMPONENTBUILDER_PLACEHOLDER_NOTE_PLACEHOLDERS_PLACEDIN_DESCRIPTION="<div cl
<div id='before-placedin'>Soon as enough data is available we will display all the areas where this placeholder is used.</div>
<div id='placedin-a' style='display: none;'><h2>Components</h2><div id='area-a'></div></div>
<div id='placedin-b' style='display:none;'><h2>Component Dashboard</h2><div id='area-b'></div></div>
<div id='placedin-c' style='display:none;'><h2>Admin Views</h2><div id='area-c'></div></div>
<div id='placedin-d' style='display:none;'><h2>Admin Fields Relations</h2><div id='area-d'></div></div>
<div id='placedin-e' style='display:none;'><h2>Custom Admin Views</h2><div id='area-e'></div></div>
<div id='placedin-f' style='display:none;'><h2>Site Views</h2><div id='area-f'></div></div>
<div id='placedin-g' style='display:none;'><h2>Fields</h2><div id='area-g'></div></div>
<div id='placedin-h' style='display:none;'><h2>Fieldtypes</h2><div id='area-h'></div></div>
<div id='placedin-i' style='display:none;'><h2>Dynamic Gets</h2><div id='area-i'></div></div>
<div id='placedin-j' style='display:none;'><h2>Templates</h2><div id='area-j'></div></div>
<div id='placedin-k' style='display:none;'><h2>Layouts</h2><div id='area-k'></div></div>
<div id='placedin-l' style='display:none;'><h2>Libraries</h2><div id='area-l'></div></div>
<div id='placedin-m' style='display:none;'><h2>Custom Code</h2><div id='area-m'></div></div>
<div id='placedin-n' style='display:none;'><h2>Validation Rule</h2><div id='area-n'></div></div>
<div id='placedin-c' style='display:none;'><h2>Component Placeholders</h2><div id='area-c'></div></div>
<div id='placedin-d' style='display:none;'><h2>Admin Views</h2><div id='area-d'></div></div>
<div id='placedin-e' style='display:none;'><h2>Admin Fields Relations</h2><div id='area-e'></div></div>
<div id='placedin-f' style='display:none;'><h2>Admin Custom Tabs</h2><div id='area-f'></div></div>
<div id='placedin-g' style='display:none;'><h2>Custom Admin Views</h2><div id='area-g'></div></div>
<div id='placedin-h' style='display:none;'><h2>Site Views</h2><div id='area-h'></div></div>
<div id='placedin-i' style='display:none;'><h2>Fields</h2><div id='area-i'></div></div>
<div id='placedin-j' style='display:none;'><h2>Fieldtypes</h2><div id='area-j'></div></div>
<div id='placedin-k' style='display:none;'><h2>Dynamic Gets</h2><div id='area-k'></div></div>
<div id='placedin-l' style='display:none;'><h2>Templates</h2><div id='area-l'></div></div>
<div id='placedin-m' style='display:none;'><h2>Layouts</h2><div id='area-m'></div></div>
<div id='placedin-n' style='display:none;'><h2>Libraries</h2><div id='area-n'></div></div>
<div id='placedin-o' style='display:none;'><h2>Custom Code</h2><div id='area-o'></div></div>
<div id='placedin-p' style='display:none;'><h2>Validation Rule</h2><div id='area-p'></div></div>
<div id='loading-placedin' style='display: none;'><h2>Scanning Database<span class='loading-dots'>..</span></h2></div>
<div id='note-placedin-found' style='display: none;'><small>You can edit the above areas where this placeholder is used.</small></div>
<div id='note-placedin-not' style='display: none;'><small>This placeholder is not used in any area of the JCB custom code blocks at this time.</small></div>

View File

@ -527,6 +527,7 @@ class ComponentbuilderModelAjax extends JModelList
'dashboard_add' => 'setYesNo',
'checkin' => 'setYesNo',
'history' => 'setYesNo',
'joomla_fields' => 'setYesNo',
'port' => 'setYesNo',
'edit_create_site_view' => 'setYesNo',
'icomoon' => 'setIcoMoon',
@ -580,6 +581,7 @@ class ComponentbuilderModelAjax extends JModelList
'submenu' => JText::_('COM_COMPONENTBUILDER_SUBMENU'),
'checkin' => JText::_('COM_COMPONENTBUILDER_AUTO_CHECKIN'),
'history' => JText::_('COM_COMPONENTBUILDER_KEEP_HISTORY'),
'joomla_fields' => JText::_('COM_COMPONENTBUILDER_JOOMLA_FIELDS'),
'port' => JText::_('COM_COMPONENTBUILDER_EXPORTIMPORT_DATA'),
'edit_create_site_view' => JText::_('COM_COMPONENTBUILDER_EDITCREATE_SITE_VIEW'),
'icomoon' => JText::_('COM_COMPONENTBUILDER_ICON'),
@ -2272,7 +2274,14 @@ class ComponentbuilderModelAjax extends JModelList
'not_base64' => array('dashboard_tab' => 'json'),
'name' => 'joomla_component->id:joomla_component.system_name'
),
// #__componentbuilder_admin_view (c)
// #__componentbuilder_component_placeholders (c)
'component_placeholders' => array(
'search' => array('id', 'joomla_component', 'addplaceholders'),
'views' => 'components_placeholders',
'not_base64' => array('addplaceholders' => 'json'),
'name' => 'joomla_component->id:joomla_component.system_name'
),
// #__componentbuilder_admin_view (d)
'admin_view' => array(
'search' => array('id', 'system_name', 'javascript_view_file', 'javascript_view_footer',
'javascript_views_file', 'javascript_views_footer', 'html_import_view',
@ -2285,14 +2294,21 @@ class ComponentbuilderModelAjax extends JModelList
'not_base64' => array(),
'name' => 'system_name'
),
// #__componentbuilder_admin_fields_relations (d)
// #__componentbuilder_admin_fields_relations (e)
'admin_fields_relations' => array(
'search' => array('id', 'admin_view', 'addrelations'),
'views' => 'admins_fields_relations',
'not_base64' => array('addrelations' => 'json'),
'name' => 'admin_view->id:admin_view.system_name'
),
// #__componentbuilder_custom_admin_view (e)
// #__componentbuilder_admin_custom_tabs (f)
'admin_custom_tabs' => array(
'search' => array('id', 'admin_view', 'tabs'),
'views' => 'admins_custom_tabs',
'not_base64' => array('tabs' => 'json'),
'name' => 'admin_view->id:admin_view.system_name'
),
// #__componentbuilder_custom_admin_view (g)
'custom_admin_view' => array(
'search' => array('id', 'system_name', 'default', 'php_view', 'php_jview', 'php_jview_display', 'php_document',
'js_document', 'css_document', 'css', 'php_ajaxmethod', 'php_model', 'php_controller'),
@ -2300,7 +2316,7 @@ class ComponentbuilderModelAjax extends JModelList
'not_base64' => array(),
'name' => 'system_name'
),
// #__componentbuilder_site_view (f)
// #__componentbuilder_site_view (h)
'site_view' => array(
'search' => array('id', 'system_name', 'default', 'php_view', 'php_jview', 'php_jview_display', 'php_document',
'js_document', 'css_document', 'css', 'php_ajaxmethod', 'php_model', 'php_controller'),
@ -2308,7 +2324,7 @@ class ComponentbuilderModelAjax extends JModelList
'not_base64' => array(),
'name' => 'system_name'
),
// #__componentbuilder_field (g)
// #__componentbuilder_field (i)
'field' => array(
'search' => array('id', 'name', 'xml', 'javascript_view_footer', 'javascript_views_footer'),
'views' => 'fields',
@ -2316,14 +2332,14 @@ class ComponentbuilderModelAjax extends JModelList
'base64_search' => array('xml' => array('start' => 'type_php', '_start' => '="', 'end' => '"')),
'name' => 'name'
),
// #__componentbuilder_fieldtype (h)
// #__componentbuilder_fieldtype (j)
'fieldtype' => array(
'search' => array('id', 'name', 'properties'),
'views' => 'fieldtypes',
'not_base64' => array('properties' => 'json'),
'name' => 'name'
),
// #__componentbuilder_dynamic_get (i)
// #__componentbuilder_dynamic_get (k)
'dynamic_get' => array(
'search' => array('id', 'name', 'php_before_getitem', 'php_after_getitem', 'php_before_getitems', 'php_after_getitems',
'php_getlistquery'),
@ -2331,35 +2347,35 @@ class ComponentbuilderModelAjax extends JModelList
'not_base64' => array(),
'name' => 'name'
),
// #__componentbuilder_template (j)
// #__componentbuilder_template (l)
'template' => array(
'search' => array('id', 'name', 'php_view', 'template'),
'views' => 'templates',
'not_base64' => array(),
'name' => 'name'
),
// #__componentbuilder_layout (k)
// #__componentbuilder_layout (m)
'layout' => array(
'search' => array('id', 'name', 'php_view', 'layout'),
'views' => 'layouts',
'not_base64' => array(),
'name' => 'name'
),
// #__componentbuilder_library (l)
// #__componentbuilder_library (n)
'library' => array(
'search' => array('id', 'name', 'php_setdocument'),
'views' => 'libraries',
'not_base64' => array(),
'name' => 'name'
),
// #__componentbuilder_custom_code (m)
// #__componentbuilder_custom_code (o)
'custom_code' => array(
'search' => array('id', 'system_name', 'code'),
'views' => 'custom_codes',
'not_base64' => array(),
'name' => 'system_name'
),
// #__componentbuilder_validation_rule (n)
// #__componentbuilder_validation_rule (p)
'validation_rule' => array(
'search' => array('id', 'name', 'php'),
'views' => 'validation_rules',

View File

@ -313,8 +313,8 @@ function usedin(functioName, ide) {
jQuery('#note-usedin-not').hide();
jQuery('#note-usedin-found').hide();
jQuery('#loading-usedin').show();
var targets = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n']; // if you update this, also update (below 13) & [customcode-codeUsedInHtmlNote]!
var targetNumber = 13;
var targets = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p']; // if you update this, also update (below 15) & [customcode-codeUsedInHtmlNote]!
var targetNumber = 15;
var run = 0;
var usedinChecker = setInterval(function(){
var target = targets[run];

View File

@ -79,8 +79,8 @@ function placedin(placeholder, ide) {
jQuery('#note-placedin-not').hide();
jQuery('#note-placedin-found').hide();
jQuery('#loading-placedin').show();
var targets = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n']; // if you update this, also update (below 13) & [customcode-codeUsedInHtmlNote]!
var targetNumber = 13;
var targets = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p']; // if you update this, also update (below 15) & [customcode-codeUsedInHtmlNote]!
var targetNumber = 15;
var run = 0;
var placedinChecker = setInterval(function(){
var target = targets[run];

View File

@ -1714,7 +1714,14 @@ class ComponentbuilderModelJoomla_components extends JModelList
'not_base64' => array('dashboard_tab' => 'json'),
'name' => 'joomla_component->id:joomla_component.system_name'
),
// #__componentbuilder_admin_view (c)
// #__componentbuilder_component_placeholders (c)
'component_placeholders' => array(
'search' => array('id', 'joomla_component', 'addplaceholders'),
'views' => 'components_placeholders',
'not_base64' => array('addplaceholders' => 'json'),
'name' => 'joomla_component->id:joomla_component.system_name'
),
// #__componentbuilder_admin_view (d)
'admin_view' => array(
'search' => array('id', 'system_name', 'javascript_view_file', 'javascript_view_footer',
'javascript_views_file', 'javascript_views_footer', 'html_import_view',
@ -1727,14 +1734,21 @@ class ComponentbuilderModelJoomla_components extends JModelList
'not_base64' => array(),
'name' => 'system_name'
),
// #__componentbuilder_admin_fields_relations (d)
// #__componentbuilder_admin_fields_relations (e)
'admin_fields_relations' => array(
'search' => array('id', 'admin_view', 'addrelations'),
'views' => 'admins_fields_relations',
'not_base64' => array('addrelations' => 'json'),
'name' => 'admin_view->id:admin_view.system_name'
),
// #__componentbuilder_custom_admin_view (e)
// #__componentbuilder_admin_custom_tabs (f)
'admin_custom_tabs' => array(
'search' => array('id', 'admin_view', 'tabs'),
'views' => 'admins_custom_tabs',
'not_base64' => array('tabs' => 'json'),
'name' => 'admin_view->id:admin_view.system_name'
),
// #__componentbuilder_custom_admin_view (g)
'custom_admin_view' => array(
'search' => array('id', 'system_name', 'default', 'php_view', 'php_jview', 'php_jview_display', 'php_document',
'js_document', 'css_document', 'css', 'php_ajaxmethod', 'php_model', 'php_controller'),
@ -1742,7 +1756,7 @@ class ComponentbuilderModelJoomla_components extends JModelList
'not_base64' => array(),
'name' => 'system_name'
),
// #__componentbuilder_site_view (f)
// #__componentbuilder_site_view (h)
'site_view' => array(
'search' => array('id', 'system_name', 'default', 'php_view', 'php_jview', 'php_jview_display', 'php_document',
'js_document', 'css_document', 'css', 'php_ajaxmethod', 'php_model', 'php_controller'),
@ -1750,7 +1764,7 @@ class ComponentbuilderModelJoomla_components extends JModelList
'not_base64' => array(),
'name' => 'system_name'
),
// #__componentbuilder_field (g)
// #__componentbuilder_field (i)
'field' => array(
'search' => array('id', 'name', 'xml', 'javascript_view_footer', 'javascript_views_footer'),
'views' => 'fields',
@ -1758,14 +1772,14 @@ class ComponentbuilderModelJoomla_components extends JModelList
'base64_search' => array('xml' => array('start' => 'type_php', '_start' => '="', 'end' => '"')),
'name' => 'name'
),
// #__componentbuilder_fieldtype (h)
// #__componentbuilder_fieldtype (j)
'fieldtype' => array(
'search' => array('id', 'name', 'properties'),
'views' => 'fieldtypes',
'not_base64' => array('properties' => 'json'),
'name' => 'name'
),
// #__componentbuilder_dynamic_get (i)
// #__componentbuilder_dynamic_get (k)
'dynamic_get' => array(
'search' => array('id', 'name', 'php_before_getitem', 'php_after_getitem', 'php_before_getitems', 'php_after_getitems',
'php_getlistquery'),
@ -1773,35 +1787,35 @@ class ComponentbuilderModelJoomla_components extends JModelList
'not_base64' => array(),
'name' => 'name'
),
// #__componentbuilder_template (j)
// #__componentbuilder_template (l)
'template' => array(
'search' => array('id', 'name', 'php_view', 'template'),
'views' => 'templates',
'not_base64' => array(),
'name' => 'name'
),
// #__componentbuilder_layout (k)
// #__componentbuilder_layout (m)
'layout' => array(
'search' => array('id', 'name', 'php_view', 'layout'),
'views' => 'layouts',
'not_base64' => array(),
'name' => 'name'
),
// #__componentbuilder_library (l)
// #__componentbuilder_library (n)
'library' => array(
'search' => array('id', 'name', 'php_setdocument'),
'views' => 'libraries',
'not_base64' => array(),
'name' => 'name'
),
// #__componentbuilder_custom_code (m)
// #__componentbuilder_custom_code (o)
'custom_code' => array(
'search' => array('id', 'system_name', 'code'),
'views' => 'custom_codes',
'not_base64' => array(),
'name' => 'system_name'
),
// #__componentbuilder_validation_rule (n)
// #__componentbuilder_validation_rule (p)
'validation_rule' => array(
'search' => array('id', 'name', 'php'),
'views' => 'validation_rules',