Expande the compiler to fully build and zip plugins linked to components. Added plugin_updates area. Fixed gh-454 to insure placeholders are build even if no local db placeholders are found. Fixed gh-453 to prevent count error with null return value.

This commit is contained in:
2019-08-08 17:35:58 +02:00
parent 7d2cc2c9f0
commit ed43b00862
87 changed files with 7569 additions and 3584 deletions

View File

@ -194,6 +194,9 @@ class ComponentbuilderModelComponentbuilder extends JModelList
'class_extends.access' => 'class_extends.access',
'joomla_plugin_groups.access' => 'joomla_plugin_group.access',
'joomla_plugin_group.access' => 'joomla_plugin_group.access',
'joomla_plugin_updates.create' => 'joomla_plugin_updates.create',
'joomla_plugins_updates.access' => 'joomla_plugin_updates.access',
'joomla_plugin_updates.access' => 'joomla_plugin_updates.access',
'joomla_plugin_files_folders_urls.create' => 'joomla_plugin_files_folders_urls.create',
'joomla_plugins_files_folders_urls.access' => 'joomla_plugin_files_folders_urls.access',
'joomla_plugin_files_folders_urls.access' => 'joomla_plugin_files_folders_urls.access');

View File

@ -9,123 +9,123 @@
*/
// Some Global Values
jform_vvvvvyyvwh_required = false;
jform_vvvvvyzvwi_required = false;
jform_vvvvvzdvwj_required = false;
jform_vvvvvzdvwk_required = false;
jform_vvvvvzdvwl_required = false;
jform_vvvvvzdvwm_required = false;
jform_vvvvvzdvwn_required = false;
jform_vvvvvzdvwo_required = false;
jform_vvvvvzdvwp_required = false;
jform_vvvvvyzvwh_required = false;
jform_vvvvvzavwi_required = false;
jform_vvvvvzevwj_required = false;
jform_vvvvvzevwk_required = false;
jform_vvvvvzevwl_required = false;
jform_vvvvvzevwm_required = false;
jform_vvvvvzevwn_required = false;
jform_vvvvvzevwo_required = false;
jform_vvvvvzevwp_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_css_view_vvvvvxy = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvvxy(add_css_view_vvvvvxy);
var add_css_view_vvvvvxz = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvvxz(add_css_view_vvvvvxz);
var add_css_views_vvvvvxz = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvvxz(add_css_views_vvvvvxz);
var add_css_views_vvvvvya = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvvya(add_css_views_vvvvvya);
var add_javascript_view_file_vvvvvya = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
vvvvvya(add_javascript_view_file_vvvvvya);
var add_javascript_view_file_vvvvvyb = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
vvvvvyb(add_javascript_view_file_vvvvvyb);
var add_javascript_views_file_vvvvvyb = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
vvvvvyb(add_javascript_views_file_vvvvvyb);
var add_javascript_views_file_vvvvvyc = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
vvvvvyc(add_javascript_views_file_vvvvvyc);
var add_javascript_view_footer_vvvvvyc = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvvyc(add_javascript_view_footer_vvvvvyc);
var add_javascript_view_footer_vvvvvyd = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvvyd(add_javascript_view_footer_vvvvvyd);
var add_javascript_views_footer_vvvvvyd = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvvyd(add_javascript_views_footer_vvvvvyd);
var add_javascript_views_footer_vvvvvye = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvvye(add_javascript_views_footer_vvvvvye);
var add_php_ajax_vvvvvye = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvye(add_php_ajax_vvvvvye);
var add_php_ajax_vvvvvyf = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvyf(add_php_ajax_vvvvvyf);
var add_php_getitem_vvvvvyf = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
vvvvvyf(add_php_getitem_vvvvvyf);
var add_php_getitem_vvvvvyg = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
vvvvvyg(add_php_getitem_vvvvvyg);
var add_php_getitems_vvvvvyg = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
vvvvvyg(add_php_getitems_vvvvvyg);
var add_php_getitems_vvvvvyh = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
vvvvvyh(add_php_getitems_vvvvvyh);
var add_php_getitems_after_all_vvvvvyh = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
vvvvvyh(add_php_getitems_after_all_vvvvvyh);
var add_php_getitems_after_all_vvvvvyi = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
vvvvvyi(add_php_getitems_after_all_vvvvvyi);
var add_php_getlistquery_vvvvvyi = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
vvvvvyi(add_php_getlistquery_vvvvvyi);
var add_php_getlistquery_vvvvvyj = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
vvvvvyj(add_php_getlistquery_vvvvvyj);
var add_php_getform_vvvvvyj = jQuery("#jform_add_php_getform input[type='radio']:checked").val();
vvvvvyj(add_php_getform_vvvvvyj);
var add_php_getform_vvvvvyk = jQuery("#jform_add_php_getform input[type='radio']:checked").val();
vvvvvyk(add_php_getform_vvvvvyk);
var add_php_before_save_vvvvvyk = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
vvvvvyk(add_php_before_save_vvvvvyk);
var add_php_before_save_vvvvvyl = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
vvvvvyl(add_php_before_save_vvvvvyl);
var add_php_save_vvvvvyl = jQuery("#jform_add_php_save input[type='radio']:checked").val();
vvvvvyl(add_php_save_vvvvvyl);
var add_php_save_vvvvvym = jQuery("#jform_add_php_save input[type='radio']:checked").val();
vvvvvym(add_php_save_vvvvvym);
var add_php_postsavehook_vvvvvym = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
vvvvvym(add_php_postsavehook_vvvvvym);
var add_php_postsavehook_vvvvvyn = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
vvvvvyn(add_php_postsavehook_vvvvvyn);
var add_php_allowadd_vvvvvyn = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val();
vvvvvyn(add_php_allowadd_vvvvvyn);
var add_php_allowadd_vvvvvyo = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val();
vvvvvyo(add_php_allowadd_vvvvvyo);
var add_php_allowedit_vvvvvyo = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
vvvvvyo(add_php_allowedit_vvvvvyo);
var add_php_allowedit_vvvvvyp = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
vvvvvyp(add_php_allowedit_vvvvvyp);
var add_php_before_cancel_vvvvvyp = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val();
vvvvvyp(add_php_before_cancel_vvvvvyp);
var add_php_before_cancel_vvvvvyq = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val();
vvvvvyq(add_php_before_cancel_vvvvvyq);
var add_php_after_cancel_vvvvvyq = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val();
vvvvvyq(add_php_after_cancel_vvvvvyq);
var add_php_after_cancel_vvvvvyr = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val();
vvvvvyr(add_php_after_cancel_vvvvvyr);
var add_php_batchcopy_vvvvvyr = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
vvvvvyr(add_php_batchcopy_vvvvvyr);
var add_php_batchcopy_vvvvvys = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
vvvvvys(add_php_batchcopy_vvvvvys);
var add_php_batchmove_vvvvvys = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
vvvvvys(add_php_batchmove_vvvvvys);
var add_php_batchmove_vvvvvyt = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
vvvvvyt(add_php_batchmove_vvvvvyt);
var add_php_before_publish_vvvvvyt = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
vvvvvyt(add_php_before_publish_vvvvvyt);
var add_php_before_publish_vvvvvyu = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
vvvvvyu(add_php_before_publish_vvvvvyu);
var add_php_after_publish_vvvvvyu = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
vvvvvyu(add_php_after_publish_vvvvvyu);
var add_php_after_publish_vvvvvyv = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
vvvvvyv(add_php_after_publish_vvvvvyv);
var add_php_before_delete_vvvvvyv = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
vvvvvyv(add_php_before_delete_vvvvvyv);
var add_php_before_delete_vvvvvyw = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
vvvvvyw(add_php_before_delete_vvvvvyw);
var add_php_after_delete_vvvvvyw = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
vvvvvyw(add_php_after_delete_vvvvvyw);
var add_php_after_delete_vvvvvyx = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
vvvvvyx(add_php_after_delete_vvvvvyx);
var add_php_document_vvvvvyx = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvyx(add_php_document_vvvvvyx);
var add_php_document_vvvvvyy = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvyy(add_php_document_vvvvvyy);
var add_sql_vvvvvyy = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvyy(add_sql_vvvvvyy);
var source_vvvvvyz = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvyz = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvyz(source_vvvvvyz,add_sql_vvvvvyz);
vvvvvyz(add_sql_vvvvvyz);
var source_vvvvvzb = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvzb = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvzb(source_vvvvvzb,add_sql_vvvvvzb);
var source_vvvvvza = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvza = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvza(source_vvvvvza,add_sql_vvvvvza);
var add_custom_import_vvvvvzd = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
vvvvvzd(add_custom_import_vvvvvzd);
var source_vvvvvzc = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvzc = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvzc(source_vvvvvzc,add_sql_vvvvvzc);
var add_custom_import_vvvvvze = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
vvvvvze(add_custom_import_vvvvvze);
var add_custom_button_vvvvvzf = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvzf(add_custom_button_vvvvvzf);
var add_custom_import_vvvvvzf = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
vvvvvzf(add_custom_import_vvvvvzf);
var add_custom_button_vvvvvzg = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvzg(add_custom_button_vvvvvzg);
});
// the vvvvvxy function
function vvvvvxy(add_css_view_vvvvvxy)
// the vvvvvxz function
function vvvvvxz(add_css_view_vvvvvxz)
{
// set the function logic
if (add_css_view_vvvvvxy == 1)
if (add_css_view_vvvvvxz == 1)
{
jQuery('#jform_css_view-lbl').closest('.control-group').show();
}
@ -135,11 +135,11 @@ function vvvvvxy(add_css_view_vvvvvxy)
}
}
// the vvvvvxz function
function vvvvvxz(add_css_views_vvvvvxz)
// the vvvvvya function
function vvvvvya(add_css_views_vvvvvya)
{
// set the function logic
if (add_css_views_vvvvvxz == 1)
if (add_css_views_vvvvvya == 1)
{
jQuery('#jform_css_views-lbl').closest('.control-group').show();
}
@ -149,11 +149,11 @@ function vvvvvxz(add_css_views_vvvvvxz)
}
}
// the vvvvvya function
function vvvvvya(add_javascript_view_file_vvvvvya)
// the vvvvvyb function
function vvvvvyb(add_javascript_view_file_vvvvvyb)
{
// set the function logic
if (add_javascript_view_file_vvvvvya == 1)
if (add_javascript_view_file_vvvvvyb == 1)
{
jQuery('#jform_javascript_view_file-lbl').closest('.control-group').show();
}
@ -163,11 +163,11 @@ function vvvvvya(add_javascript_view_file_vvvvvya)
}
}
// the vvvvvyb function
function vvvvvyb(add_javascript_views_file_vvvvvyb)
// the vvvvvyc function
function vvvvvyc(add_javascript_views_file_vvvvvyc)
{
// set the function logic
if (add_javascript_views_file_vvvvvyb == 1)
if (add_javascript_views_file_vvvvvyc == 1)
{
jQuery('#jform_javascript_views_file-lbl').closest('.control-group').show();
}
@ -177,11 +177,11 @@ function vvvvvyb(add_javascript_views_file_vvvvvyb)
}
}
// the vvvvvyc function
function vvvvvyc(add_javascript_view_footer_vvvvvyc)
// the vvvvvyd function
function vvvvvyd(add_javascript_view_footer_vvvvvyd)
{
// set the function logic
if (add_javascript_view_footer_vvvvvyc == 1)
if (add_javascript_view_footer_vvvvvyd == 1)
{
jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show();
}
@ -191,11 +191,11 @@ function vvvvvyc(add_javascript_view_footer_vvvvvyc)
}
}
// the vvvvvyd function
function vvvvvyd(add_javascript_views_footer_vvvvvyd)
// the vvvvvye function
function vvvvvye(add_javascript_views_footer_vvvvvye)
{
// set the function logic
if (add_javascript_views_footer_vvvvvyd == 1)
if (add_javascript_views_footer_vvvvvye == 1)
{
jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show();
}
@ -205,11 +205,11 @@ function vvvvvyd(add_javascript_views_footer_vvvvvyd)
}
}
// the vvvvvye function
function vvvvvye(add_php_ajax_vvvvvye)
// the vvvvvyf function
function vvvvvyf(add_php_ajax_vvvvvyf)
{
// set the function logic
if (add_php_ajax_vvvvvye == 1)
if (add_php_ajax_vvvvvyf == 1)
{
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show();
@ -221,11 +221,11 @@ function vvvvvye(add_php_ajax_vvvvvye)
}
}
// the vvvvvyf function
function vvvvvyf(add_php_getitem_vvvvvyf)
// the vvvvvyg function
function vvvvvyg(add_php_getitem_vvvvvyg)
{
// set the function logic
if (add_php_getitem_vvvvvyf == 1)
if (add_php_getitem_vvvvvyg == 1)
{
jQuery('#jform_php_getitem-lbl').closest('.control-group').show();
}
@ -235,11 +235,11 @@ function vvvvvyf(add_php_getitem_vvvvvyf)
}
}
// the vvvvvyg function
function vvvvvyg(add_php_getitems_vvvvvyg)
// the vvvvvyh function
function vvvvvyh(add_php_getitems_vvvvvyh)
{
// set the function logic
if (add_php_getitems_vvvvvyg == 1)
if (add_php_getitems_vvvvvyh == 1)
{
jQuery('#jform_php_getitems-lbl').closest('.control-group').show();
}
@ -249,11 +249,11 @@ function vvvvvyg(add_php_getitems_vvvvvyg)
}
}
// the vvvvvyh function
function vvvvvyh(add_php_getitems_after_all_vvvvvyh)
// the vvvvvyi function
function vvvvvyi(add_php_getitems_after_all_vvvvvyi)
{
// set the function logic
if (add_php_getitems_after_all_vvvvvyh == 1)
if (add_php_getitems_after_all_vvvvvyi == 1)
{
jQuery('#jform_php_getitems_after_all-lbl').closest('.control-group').show();
}
@ -263,11 +263,11 @@ function vvvvvyh(add_php_getitems_after_all_vvvvvyh)
}
}
// the vvvvvyi function
function vvvvvyi(add_php_getlistquery_vvvvvyi)
// the vvvvvyj function
function vvvvvyj(add_php_getlistquery_vvvvvyj)
{
// set the function logic
if (add_php_getlistquery_vvvvvyi == 1)
if (add_php_getlistquery_vvvvvyj == 1)
{
jQuery('#jform_php_getlistquery-lbl').closest('.control-group').show();
}
@ -277,11 +277,11 @@ function vvvvvyi(add_php_getlistquery_vvvvvyi)
}
}
// the vvvvvyj function
function vvvvvyj(add_php_getform_vvvvvyj)
// the vvvvvyk function
function vvvvvyk(add_php_getform_vvvvvyk)
{
// set the function logic
if (add_php_getform_vvvvvyj == 1)
if (add_php_getform_vvvvvyk == 1)
{
jQuery('#jform_php_getform-lbl').closest('.control-group').show();
}
@ -291,11 +291,11 @@ function vvvvvyj(add_php_getform_vvvvvyj)
}
}
// the vvvvvyk function
function vvvvvyk(add_php_before_save_vvvvvyk)
// the vvvvvyl function
function vvvvvyl(add_php_before_save_vvvvvyl)
{
// set the function logic
if (add_php_before_save_vvvvvyk == 1)
if (add_php_before_save_vvvvvyl == 1)
{
jQuery('#jform_php_before_save-lbl').closest('.control-group').show();
}
@ -305,11 +305,11 @@ function vvvvvyk(add_php_before_save_vvvvvyk)
}
}
// the vvvvvyl function
function vvvvvyl(add_php_save_vvvvvyl)
// the vvvvvym function
function vvvvvym(add_php_save_vvvvvym)
{
// set the function logic
if (add_php_save_vvvvvyl == 1)
if (add_php_save_vvvvvym == 1)
{
jQuery('#jform_php_save-lbl').closest('.control-group').show();
}
@ -319,11 +319,11 @@ function vvvvvyl(add_php_save_vvvvvyl)
}
}
// the vvvvvym function
function vvvvvym(add_php_postsavehook_vvvvvym)
// the vvvvvyn function
function vvvvvyn(add_php_postsavehook_vvvvvyn)
{
// set the function logic
if (add_php_postsavehook_vvvvvym == 1)
if (add_php_postsavehook_vvvvvyn == 1)
{
jQuery('#jform_php_postsavehook-lbl').closest('.control-group').show();
}
@ -333,11 +333,11 @@ function vvvvvym(add_php_postsavehook_vvvvvym)
}
}
// the vvvvvyn function
function vvvvvyn(add_php_allowadd_vvvvvyn)
// the vvvvvyo function
function vvvvvyo(add_php_allowadd_vvvvvyo)
{
// set the function logic
if (add_php_allowadd_vvvvvyn == 1)
if (add_php_allowadd_vvvvvyo == 1)
{
jQuery('#jform_php_allowadd-lbl').closest('.control-group').show();
}
@ -347,11 +347,11 @@ function vvvvvyn(add_php_allowadd_vvvvvyn)
}
}
// the vvvvvyo function
function vvvvvyo(add_php_allowedit_vvvvvyo)
// the vvvvvyp function
function vvvvvyp(add_php_allowedit_vvvvvyp)
{
// set the function logic
if (add_php_allowedit_vvvvvyo == 1)
if (add_php_allowedit_vvvvvyp == 1)
{
jQuery('#jform_php_allowedit-lbl').closest('.control-group').show();
}
@ -361,11 +361,11 @@ function vvvvvyo(add_php_allowedit_vvvvvyo)
}
}
// the vvvvvyp function
function vvvvvyp(add_php_before_cancel_vvvvvyp)
// the vvvvvyq function
function vvvvvyq(add_php_before_cancel_vvvvvyq)
{
// set the function logic
if (add_php_before_cancel_vvvvvyp == 1)
if (add_php_before_cancel_vvvvvyq == 1)
{
jQuery('#jform_php_before_cancel-lbl').closest('.control-group').show();
}
@ -375,11 +375,11 @@ function vvvvvyp(add_php_before_cancel_vvvvvyp)
}
}
// the vvvvvyq function
function vvvvvyq(add_php_after_cancel_vvvvvyq)
// the vvvvvyr function
function vvvvvyr(add_php_after_cancel_vvvvvyr)
{
// set the function logic
if (add_php_after_cancel_vvvvvyq == 1)
if (add_php_after_cancel_vvvvvyr == 1)
{
jQuery('#jform_php_after_cancel-lbl').closest('.control-group').show();
}
@ -389,11 +389,11 @@ function vvvvvyq(add_php_after_cancel_vvvvvyq)
}
}
// the vvvvvyr function
function vvvvvyr(add_php_batchcopy_vvvvvyr)
// the vvvvvys function
function vvvvvys(add_php_batchcopy_vvvvvys)
{
// set the function logic
if (add_php_batchcopy_vvvvvyr == 1)
if (add_php_batchcopy_vvvvvys == 1)
{
jQuery('#jform_php_batchcopy-lbl').closest('.control-group').show();
}
@ -403,11 +403,11 @@ function vvvvvyr(add_php_batchcopy_vvvvvyr)
}
}
// the vvvvvys function
function vvvvvys(add_php_batchmove_vvvvvys)
// the vvvvvyt function
function vvvvvyt(add_php_batchmove_vvvvvyt)
{
// set the function logic
if (add_php_batchmove_vvvvvys == 1)
if (add_php_batchmove_vvvvvyt == 1)
{
jQuery('#jform_php_batchmove-lbl').closest('.control-group').show();
}
@ -417,11 +417,11 @@ function vvvvvys(add_php_batchmove_vvvvvys)
}
}
// the vvvvvyt function
function vvvvvyt(add_php_before_publish_vvvvvyt)
// the vvvvvyu function
function vvvvvyu(add_php_before_publish_vvvvvyu)
{
// set the function logic
if (add_php_before_publish_vvvvvyt == 1)
if (add_php_before_publish_vvvvvyu == 1)
{
jQuery('#jform_php_before_publish-lbl').closest('.control-group').show();
}
@ -431,11 +431,11 @@ function vvvvvyt(add_php_before_publish_vvvvvyt)
}
}
// the vvvvvyu function
function vvvvvyu(add_php_after_publish_vvvvvyu)
// the vvvvvyv function
function vvvvvyv(add_php_after_publish_vvvvvyv)
{
// set the function logic
if (add_php_after_publish_vvvvvyu == 1)
if (add_php_after_publish_vvvvvyv == 1)
{
jQuery('#jform_php_after_publish-lbl').closest('.control-group').show();
}
@ -445,11 +445,11 @@ function vvvvvyu(add_php_after_publish_vvvvvyu)
}
}
// the vvvvvyv function
function vvvvvyv(add_php_before_delete_vvvvvyv)
// the vvvvvyw function
function vvvvvyw(add_php_before_delete_vvvvvyw)
{
// set the function logic
if (add_php_before_delete_vvvvvyv == 1)
if (add_php_before_delete_vvvvvyw == 1)
{
jQuery('#jform_php_before_delete-lbl').closest('.control-group').show();
}
@ -459,11 +459,11 @@ function vvvvvyv(add_php_before_delete_vvvvvyv)
}
}
// the vvvvvyw function
function vvvvvyw(add_php_after_delete_vvvvvyw)
// the vvvvvyx function
function vvvvvyx(add_php_after_delete_vvvvvyx)
{
// set the function logic
if (add_php_after_delete_vvvvvyw == 1)
if (add_php_after_delete_vvvvvyx == 1)
{
jQuery('#jform_php_after_delete-lbl').closest('.control-group').show();
}
@ -473,11 +473,11 @@ function vvvvvyw(add_php_after_delete_vvvvvyw)
}
}
// the vvvvvyx function
function vvvvvyx(add_php_document_vvvvvyx)
// the vvvvvyy function
function vvvvvyy(add_php_document_vvvvvyy)
{
// set the function logic
if (add_php_document_vvvvvyx == 1)
if (add_php_document_vvvvvyy == 1)
{
jQuery('#jform_php_document-lbl').closest('.control-group').show();
}
@ -487,75 +487,75 @@ function vvvvvyx(add_php_document_vvvvvyx)
}
}
// the vvvvvyy function
function vvvvvyy(add_sql_vvvvvyy)
// the vvvvvyz function
function vvvvvyz(add_sql_vvvvvyz)
{
// set the function logic
if (add_sql_vvvvvyy == 1)
if (add_sql_vvvvvyz == 1)
{
jQuery('#jform_source').closest('.control-group').show();
// add required attribute to source field
if (jform_vvvvvyyvwh_required)
if (jform_vvvvvyzvwh_required)
{
updateFieldRequired('source',0);
jQuery('#jform_source').prop('required','required');
jQuery('#jform_source').attr('aria-required',true);
jQuery('#jform_source').addClass('required');
jform_vvvvvyyvwh_required = false;
jform_vvvvvyzvwh_required = false;
}
}
else
{
jQuery('#jform_source').closest('.control-group').hide();
// remove required attribute from source field
if (!jform_vvvvvyyvwh_required)
if (!jform_vvvvvyzvwh_required)
{
updateFieldRequired('source',1);
jQuery('#jform_source').removeAttr('required');
jQuery('#jform_source').removeAttr('aria-required');
jQuery('#jform_source').removeClass('required');
jform_vvvvvyyvwh_required = true;
jform_vvvvvyzvwh_required = true;
}
}
}
// the vvvvvyz function
function vvvvvyz(source_vvvvvyz,add_sql_vvvvvyz)
// the vvvvvza function
function vvvvvza(source_vvvvvza,add_sql_vvvvvza)
{
// set the function logic
if (source_vvvvvyz == 2 && add_sql_vvvvvyz == 1)
if (source_vvvvvza == 2 && add_sql_vvvvvza == 1)
{
jQuery('#jform_sql').closest('.control-group').show();
// add required attribute to sql field
if (jform_vvvvvyzvwi_required)
if (jform_vvvvvzavwi_required)
{
updateFieldRequired('sql',0);
jQuery('#jform_sql').prop('required','required');
jQuery('#jform_sql').attr('aria-required',true);
jQuery('#jform_sql').addClass('required');
jform_vvvvvyzvwi_required = false;
jform_vvvvvzavwi_required = false;
}
}
else
{
jQuery('#jform_sql').closest('.control-group').hide();
// remove required attribute from sql field
if (!jform_vvvvvyzvwi_required)
if (!jform_vvvvvzavwi_required)
{
updateFieldRequired('sql',1);
jQuery('#jform_sql').removeAttr('required');
jQuery('#jform_sql').removeAttr('aria-required');
jQuery('#jform_sql').removeClass('required');
jform_vvvvvyzvwi_required = true;
jform_vvvvvzavwi_required = true;
}
}
}
// the vvvvvzb function
function vvvvvzb(source_vvvvvzb,add_sql_vvvvvzb)
// the vvvvvzc function
function vvvvvzc(source_vvvvvzc,add_sql_vvvvvzc)
{
// set the function logic
if (source_vvvvvzb == 1 && add_sql_vvvvvzb == 1)
if (source_vvvvvzc == 1 && add_sql_vvvvvzc == 1)
{
jQuery('#jform_addtables-lbl').closest('.control-group').show();
}
@ -565,165 +565,165 @@ function vvvvvzb(source_vvvvvzb,add_sql_vvvvvzb)
}
}
// the vvvvvzd function
function vvvvvzd(add_custom_import_vvvvvzd)
// the vvvvvze function
function vvvvvze(add_custom_import_vvvvvze)
{
// set the function logic
if (add_custom_import_vvvvvzd == 1)
if (add_custom_import_vvvvvze == 1)
{
jQuery('#jform_html_import_view').closest('.control-group').show();
// add required attribute to html_import_view field
if (jform_vvvvvzdvwj_required)
if (jform_vvvvvzevwj_required)
{
updateFieldRequired('html_import_view',0);
jQuery('#jform_html_import_view').prop('required','required');
jQuery('#jform_html_import_view').attr('aria-required',true);
jQuery('#jform_html_import_view').addClass('required');
jform_vvvvvzdvwj_required = false;
jform_vvvvvzevwj_required = false;
}
jQuery('.note_advanced_import').closest('.control-group').show();
jQuery('#jform_php_import_display').closest('.control-group').show();
// add required attribute to php_import_display field
if (jform_vvvvvzdvwk_required)
if (jform_vvvvvzevwk_required)
{
updateFieldRequired('php_import_display',0);
jQuery('#jform_php_import_display').prop('required','required');
jQuery('#jform_php_import_display').attr('aria-required',true);
jQuery('#jform_php_import_display').addClass('required');
jform_vvvvvzdvwk_required = false;
jform_vvvvvzevwk_required = false;
}
jQuery('#jform_php_import_ext').closest('.control-group').show();
// add required attribute to php_import_ext field
if (jform_vvvvvzdvwl_required)
if (jform_vvvvvzevwl_required)
{
updateFieldRequired('php_import_ext',0);
jQuery('#jform_php_import_ext').prop('required','required');
jQuery('#jform_php_import_ext').attr('aria-required',true);
jQuery('#jform_php_import_ext').addClass('required');
jform_vvvvvzdvwl_required = false;
jform_vvvvvzevwl_required = false;
}
jQuery('#jform_php_import_headers').closest('.control-group').show();
// add required attribute to php_import_headers field
if (jform_vvvvvzdvwm_required)
if (jform_vvvvvzevwm_required)
{
updateFieldRequired('php_import_headers',0);
jQuery('#jform_php_import_headers').prop('required','required');
jQuery('#jform_php_import_headers').attr('aria-required',true);
jQuery('#jform_php_import_headers').addClass('required');
jform_vvvvvzdvwm_required = false;
jform_vvvvvzevwm_required = false;
}
jQuery('#jform_php_import').closest('.control-group').show();
// add required attribute to php_import field
if (jform_vvvvvzdvwn_required)
if (jform_vvvvvzevwn_required)
{
updateFieldRequired('php_import',0);
jQuery('#jform_php_import').prop('required','required');
jQuery('#jform_php_import').attr('aria-required',true);
jQuery('#jform_php_import').addClass('required');
jform_vvvvvzdvwn_required = false;
jform_vvvvvzevwn_required = false;
}
jQuery('#jform_php_import_save').closest('.control-group').show();
// add required attribute to php_import_save field
if (jform_vvvvvzdvwo_required)
if (jform_vvvvvzevwo_required)
{
updateFieldRequired('php_import_save',0);
jQuery('#jform_php_import_save').prop('required','required');
jQuery('#jform_php_import_save').attr('aria-required',true);
jQuery('#jform_php_import_save').addClass('required');
jform_vvvvvzdvwo_required = false;
jform_vvvvvzevwo_required = false;
}
jQuery('#jform_php_import_setdata').closest('.control-group').show();
// add required attribute to php_import_setdata field
if (jform_vvvvvzdvwp_required)
if (jform_vvvvvzevwp_required)
{
updateFieldRequired('php_import_setdata',0);
jQuery('#jform_php_import_setdata').prop('required','required');
jQuery('#jform_php_import_setdata').attr('aria-required',true);
jQuery('#jform_php_import_setdata').addClass('required');
jform_vvvvvzdvwp_required = false;
jform_vvvvvzevwp_required = false;
}
}
else
{
jQuery('#jform_html_import_view').closest('.control-group').hide();
// remove required attribute from html_import_view field
if (!jform_vvvvvzdvwj_required)
if (!jform_vvvvvzevwj_required)
{
updateFieldRequired('html_import_view',1);
jQuery('#jform_html_import_view').removeAttr('required');
jQuery('#jform_html_import_view').removeAttr('aria-required');
jQuery('#jform_html_import_view').removeClass('required');
jform_vvvvvzdvwj_required = true;
jform_vvvvvzevwj_required = true;
}
jQuery('.note_advanced_import').closest('.control-group').hide();
jQuery('#jform_php_import_display').closest('.control-group').hide();
// remove required attribute from php_import_display field
if (!jform_vvvvvzdvwk_required)
if (!jform_vvvvvzevwk_required)
{
updateFieldRequired('php_import_display',1);
jQuery('#jform_php_import_display').removeAttr('required');
jQuery('#jform_php_import_display').removeAttr('aria-required');
jQuery('#jform_php_import_display').removeClass('required');
jform_vvvvvzdvwk_required = true;
jform_vvvvvzevwk_required = true;
}
jQuery('#jform_php_import_ext').closest('.control-group').hide();
// remove required attribute from php_import_ext field
if (!jform_vvvvvzdvwl_required)
if (!jform_vvvvvzevwl_required)
{
updateFieldRequired('php_import_ext',1);
jQuery('#jform_php_import_ext').removeAttr('required');
jQuery('#jform_php_import_ext').removeAttr('aria-required');
jQuery('#jform_php_import_ext').removeClass('required');
jform_vvvvvzdvwl_required = true;
jform_vvvvvzevwl_required = true;
}
jQuery('#jform_php_import_headers').closest('.control-group').hide();
// remove required attribute from php_import_headers field
if (!jform_vvvvvzdvwm_required)
if (!jform_vvvvvzevwm_required)
{
updateFieldRequired('php_import_headers',1);
jQuery('#jform_php_import_headers').removeAttr('required');
jQuery('#jform_php_import_headers').removeAttr('aria-required');
jQuery('#jform_php_import_headers').removeClass('required');
jform_vvvvvzdvwm_required = true;
jform_vvvvvzevwm_required = true;
}
jQuery('#jform_php_import').closest('.control-group').hide();
// remove required attribute from php_import field
if (!jform_vvvvvzdvwn_required)
if (!jform_vvvvvzevwn_required)
{
updateFieldRequired('php_import',1);
jQuery('#jform_php_import').removeAttr('required');
jQuery('#jform_php_import').removeAttr('aria-required');
jQuery('#jform_php_import').removeClass('required');
jform_vvvvvzdvwn_required = true;
jform_vvvvvzevwn_required = true;
}
jQuery('#jform_php_import_save').closest('.control-group').hide();
// remove required attribute from php_import_save field
if (!jform_vvvvvzdvwo_required)
if (!jform_vvvvvzevwo_required)
{
updateFieldRequired('php_import_save',1);
jQuery('#jform_php_import_save').removeAttr('required');
jQuery('#jform_php_import_save').removeAttr('aria-required');
jQuery('#jform_php_import_save').removeClass('required');
jform_vvvvvzdvwo_required = true;
jform_vvvvvzevwo_required = true;
}
jQuery('#jform_php_import_setdata').closest('.control-group').hide();
// remove required attribute from php_import_setdata field
if (!jform_vvvvvzdvwp_required)
if (!jform_vvvvvzevwp_required)
{
updateFieldRequired('php_import_setdata',1);
jQuery('#jform_php_import_setdata').removeAttr('required');
jQuery('#jform_php_import_setdata').removeAttr('aria-required');
jQuery('#jform_php_import_setdata').removeClass('required');
jform_vvvvvzdvwp_required = true;
jform_vvvvvzevwp_required = true;
}
}
}
// the vvvvvze function
function vvvvvze(add_custom_import_vvvvvze)
// the vvvvvzf function
function vvvvvzf(add_custom_import_vvvvvzf)
{
// set the function logic
if (add_custom_import_vvvvvze == 0)
if (add_custom_import_vvvvvzf == 0)
{
jQuery('.note_beginner_import').closest('.control-group').show();
}
@ -733,11 +733,11 @@ function vvvvvze(add_custom_import_vvvvvze)
}
}
// the vvvvvzf function
function vvvvvzf(add_custom_button_vvvvvzf)
// the vvvvvzg function
function vvvvvzg(add_custom_button_vvvvvzg)
{
// set the function logic
if (add_custom_button_vvvvvzf == 1)
if (add_custom_button_vvvvvzg == 1)
{
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
jQuery('#jform_php_controller-lbl').closest('.control-group').show();

View File

@ -9,29 +9,29 @@
*/
// Some Global Values
jform_vvvvwbjvxi_required = false;
jform_vvvvwbkvxi_required = false;
// Initial Script
jQuery(document).ready(function()
{
var extension_type_vvvvwbj = jQuery("#jform_extension_type").val();
vvvvwbj(extension_type_vvvvwbj);
var extension_type_vvvvwbk = jQuery("#jform_extension_type").val();
vvvvwbk(extension_type_vvvvwbk);
});
// the vvvvwbj function
function vvvvwbj(extension_type_vvvvwbj)
// the vvvvwbk function
function vvvvwbk(extension_type_vvvvwbk)
{
if (isSet(extension_type_vvvvwbj) && extension_type_vvvvwbj.constructor !== Array)
if (isSet(extension_type_vvvvwbk) && extension_type_vvvvwbk.constructor !== Array)
{
var temp_vvvvwbj = extension_type_vvvvwbj;
var extension_type_vvvvwbj = [];
extension_type_vvvvwbj.push(temp_vvvvwbj);
var temp_vvvvwbk = extension_type_vvvvwbk;
var extension_type_vvvvwbk = [];
extension_type_vvvvwbk.push(temp_vvvvwbk);
}
else if (!isSet(extension_type_vvvvwbj))
else if (!isSet(extension_type_vvvvwbk))
{
var extension_type_vvvvwbj = [];
var extension_type_vvvvwbk = [];
}
var extension_type = extension_type_vvvvwbj.some(extension_type_vvvvwbj_SomeFunc);
var extension_type = extension_type_vvvvwbk.some(extension_type_vvvvwbk_SomeFunc);
// set this function logic
@ -39,35 +39,35 @@ function vvvvwbj(extension_type_vvvvwbj)
{
jQuery('#jform_joomla_plugin_group').closest('.control-group').show();
// add required attribute to joomla_plugin_group field
if (jform_vvvvwbjvxi_required)
if (jform_vvvvwbkvxi_required)
{
updateFieldRequired('joomla_plugin_group',0);
jQuery('#jform_joomla_plugin_group').prop('required','required');
jQuery('#jform_joomla_plugin_group').attr('aria-required',true);
jQuery('#jform_joomla_plugin_group').addClass('required');
jform_vvvvwbjvxi_required = false;
jform_vvvvwbkvxi_required = false;
}
}
else
{
jQuery('#jform_joomla_plugin_group').closest('.control-group').hide();
// remove required attribute from joomla_plugin_group field
if (!jform_vvvvwbjvxi_required)
if (!jform_vvvvwbkvxi_required)
{
updateFieldRequired('joomla_plugin_group',1);
jQuery('#jform_joomla_plugin_group').removeAttr('required');
jQuery('#jform_joomla_plugin_group').removeAttr('aria-required');
jQuery('#jform_joomla_plugin_group').removeClass('required');
jform_vvvvwbjvxi_required = true;
jform_vvvvwbkvxi_required = true;
}
}
}
// the vvvvwbj Some function
function extension_type_vvvvwbj_SomeFunc(extension_type_vvvvwbj)
// the vvvvwbk Some function
function extension_type_vvvvwbk_SomeFunc(extension_type_vvvvwbk)
{
// set the function logic
if (extension_type_vvvvwbj == 'plugins' || extension_type_vvvvwbj == 'plugin')
if (extension_type_vvvvwbk == 'plugins' || extension_type_vvvvwbk == 'plugin')
{
return true;
}

View File

@ -9,29 +9,29 @@
*/
// Some Global Values
jform_vvvvwbivxh_required = false;
jform_vvvvwbjvxh_required = false;
// Initial Script
jQuery(document).ready(function()
{
var extension_type_vvvvwbi = jQuery("#jform_extension_type").val();
vvvvwbi(extension_type_vvvvwbi);
var extension_type_vvvvwbj = jQuery("#jform_extension_type").val();
vvvvwbj(extension_type_vvvvwbj);
});
// the vvvvwbi function
function vvvvwbi(extension_type_vvvvwbi)
// the vvvvwbj function
function vvvvwbj(extension_type_vvvvwbj)
{
if (isSet(extension_type_vvvvwbi) && extension_type_vvvvwbi.constructor !== Array)
if (isSet(extension_type_vvvvwbj) && extension_type_vvvvwbj.constructor !== Array)
{
var temp_vvvvwbi = extension_type_vvvvwbi;
var extension_type_vvvvwbi = [];
extension_type_vvvvwbi.push(temp_vvvvwbi);
var temp_vvvvwbj = extension_type_vvvvwbj;
var extension_type_vvvvwbj = [];
extension_type_vvvvwbj.push(temp_vvvvwbj);
}
else if (!isSet(extension_type_vvvvwbi))
else if (!isSet(extension_type_vvvvwbj))
{
var extension_type_vvvvwbi = [];
var extension_type_vvvvwbj = [];
}
var extension_type = extension_type_vvvvwbi.some(extension_type_vvvvwbi_SomeFunc);
var extension_type = extension_type_vvvvwbj.some(extension_type_vvvvwbj_SomeFunc);
// set this function logic
@ -39,35 +39,35 @@ function vvvvwbi(extension_type_vvvvwbi)
{
jQuery('#jform_joomla_plugin_group').closest('.control-group').show();
// add required attribute to joomla_plugin_group field
if (jform_vvvvwbivxh_required)
if (jform_vvvvwbjvxh_required)
{
updateFieldRequired('joomla_plugin_group',0);
jQuery('#jform_joomla_plugin_group').prop('required','required');
jQuery('#jform_joomla_plugin_group').attr('aria-required',true);
jQuery('#jform_joomla_plugin_group').addClass('required');
jform_vvvvwbivxh_required = false;
jform_vvvvwbjvxh_required = false;
}
}
else
{
jQuery('#jform_joomla_plugin_group').closest('.control-group').hide();
// remove required attribute from joomla_plugin_group field
if (!jform_vvvvwbivxh_required)
if (!jform_vvvvwbjvxh_required)
{
updateFieldRequired('joomla_plugin_group',1);
jQuery('#jform_joomla_plugin_group').removeAttr('required');
jQuery('#jform_joomla_plugin_group').removeAttr('aria-required');
jQuery('#jform_joomla_plugin_group').removeClass('required');
jform_vvvvwbivxh_required = true;
jform_vvvvwbjvxh_required = true;
}
}
}
// the vvvvwbi Some function
function extension_type_vvvvwbi_SomeFunc(extension_type_vvvvwbi)
// the vvvvwbj Some function
function extension_type_vvvvwbj_SomeFunc(extension_type_vvvvwbj)
{
// set the function logic
if (extension_type_vvvvwbi == 'plugins' || extension_type_vvvvwbi == 'plugin')
if (extension_type_vvvvwbj == 'plugins' || extension_type_vvvvwbj == 'plugin')
{
return true;
}

View File

@ -11,42 +11,42 @@
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvvzg = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvzg(add_php_view_vvvvvzg);
var add_php_view_vvvvvzh = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvzh(add_php_view_vvvvvzh);
var add_php_jview_display_vvvvvzh = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
vvvvvzh(add_php_jview_display_vvvvvzh);
var add_php_jview_display_vvvvvzi = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
vvvvvzi(add_php_jview_display_vvvvvzi);
var add_php_jview_vvvvvzi = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
vvvvvzi(add_php_jview_vvvvvzi);
var add_php_jview_vvvvvzj = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
vvvvvzj(add_php_jview_vvvvvzj);
var add_php_document_vvvvvzj = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvzj(add_php_document_vvvvvzj);
var add_php_document_vvvvvzk = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvzk(add_php_document_vvvvvzk);
var add_css_document_vvvvvzk = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvvzk(add_css_document_vvvvvzk);
var add_css_document_vvvvvzl = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvvzl(add_css_document_vvvvvzl);
var add_javascript_file_vvvvvzl = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
vvvvvzl(add_javascript_file_vvvvvzl);
var add_javascript_file_vvvvvzm = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
vvvvvzm(add_javascript_file_vvvvvzm);
var add_js_document_vvvvvzm = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvvzm(add_js_document_vvvvvzm);
var add_js_document_vvvvvzn = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvvzn(add_js_document_vvvvvzn);
var add_custom_button_vvvvvzn = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvzn(add_custom_button_vvvvvzn);
var add_custom_button_vvvvvzo = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvzo(add_custom_button_vvvvvzo);
var add_css_vvvvvzo = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvzo(add_css_vvvvvzo);
var add_css_vvvvvzp = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvzp(add_css_vvvvvzp);
var add_php_ajax_vvvvvzp = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvzp(add_php_ajax_vvvvvzp);
var add_php_ajax_vvvvvzq = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvzq(add_php_ajax_vvvvvzq);
});
// the vvvvvzg function
function vvvvvzg(add_php_view_vvvvvzg)
// the vvvvvzh function
function vvvvvzh(add_php_view_vvvvvzh)
{
// set the function logic
if (add_php_view_vvvvvzg == 1)
if (add_php_view_vvvvvzh == 1)
{
jQuery('#jform_php_view-lbl').closest('.control-group').show();
}
@ -56,11 +56,11 @@ function vvvvvzg(add_php_view_vvvvvzg)
}
}
// the vvvvvzh function
function vvvvvzh(add_php_jview_display_vvvvvzh)
// the vvvvvzi function
function vvvvvzi(add_php_jview_display_vvvvvzi)
{
// set the function logic
if (add_php_jview_display_vvvvvzh == 1)
if (add_php_jview_display_vvvvvzi == 1)
{
jQuery('#jform_php_jview_display-lbl').closest('.control-group').show();
}
@ -70,11 +70,11 @@ function vvvvvzh(add_php_jview_display_vvvvvzh)
}
}
// the vvvvvzi function
function vvvvvzi(add_php_jview_vvvvvzi)
// the vvvvvzj function
function vvvvvzj(add_php_jview_vvvvvzj)
{
// set the function logic
if (add_php_jview_vvvvvzi == 1)
if (add_php_jview_vvvvvzj == 1)
{
jQuery('#jform_php_jview-lbl').closest('.control-group').show();
}
@ -84,11 +84,11 @@ function vvvvvzi(add_php_jview_vvvvvzi)
}
}
// the vvvvvzj function
function vvvvvzj(add_php_document_vvvvvzj)
// the vvvvvzk function
function vvvvvzk(add_php_document_vvvvvzk)
{
// set the function logic
if (add_php_document_vvvvvzj == 1)
if (add_php_document_vvvvvzk == 1)
{
jQuery('#jform_php_document-lbl').closest('.control-group').show();
}
@ -98,11 +98,11 @@ function vvvvvzj(add_php_document_vvvvvzj)
}
}
// the vvvvvzk function
function vvvvvzk(add_css_document_vvvvvzk)
// the vvvvvzl function
function vvvvvzl(add_css_document_vvvvvzl)
{
// set the function logic
if (add_css_document_vvvvvzk == 1)
if (add_css_document_vvvvvzl == 1)
{
jQuery('#jform_css_document-lbl').closest('.control-group').show();
}
@ -112,11 +112,11 @@ function vvvvvzk(add_css_document_vvvvvzk)
}
}
// the vvvvvzl function
function vvvvvzl(add_javascript_file_vvvvvzl)
// the vvvvvzm function
function vvvvvzm(add_javascript_file_vvvvvzm)
{
// set the function logic
if (add_javascript_file_vvvvvzl == 1)
if (add_javascript_file_vvvvvzm == 1)
{
jQuery('#jform_javascript_file-lbl').closest('.control-group').show();
}
@ -126,11 +126,11 @@ function vvvvvzl(add_javascript_file_vvvvvzl)
}
}
// the vvvvvzm function
function vvvvvzm(add_js_document_vvvvvzm)
// the vvvvvzn function
function vvvvvzn(add_js_document_vvvvvzn)
{
// set the function logic
if (add_js_document_vvvvvzm == 1)
if (add_js_document_vvvvvzn == 1)
{
jQuery('#jform_js_document-lbl').closest('.control-group').show();
}
@ -140,11 +140,11 @@ function vvvvvzm(add_js_document_vvvvvzm)
}
}
// the vvvvvzn function
function vvvvvzn(add_custom_button_vvvvvzn)
// the vvvvvzo function
function vvvvvzo(add_custom_button_vvvvvzo)
{
// set the function logic
if (add_custom_button_vvvvvzn == 1)
if (add_custom_button_vvvvvzo == 1)
{
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
jQuery('#jform_php_controller-lbl').closest('.control-group').show();
@ -158,11 +158,11 @@ function vvvvvzn(add_custom_button_vvvvvzn)
}
}
// the vvvvvzo function
function vvvvvzo(add_css_vvvvvzo)
// the vvvvvzp function
function vvvvvzp(add_css_vvvvvzp)
{
// set the function logic
if (add_css_vvvvvzo == 1)
if (add_css_vvvvvzp == 1)
{
jQuery('#jform_css-lbl').closest('.control-group').show();
}
@ -172,11 +172,11 @@ function vvvvvzo(add_css_vvvvvzo)
}
}
// the vvvvvzp function
function vvvvvzp(add_php_ajax_vvvvvzp)
// the vvvvvzq function
function vvvvvzq(add_php_ajax_vvvvvzq)
{
// set the function logic
if (add_php_ajax_vvvvvzp == 1)
if (add_php_ajax_vvvvvzq == 1)
{
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show();

View File

@ -9,44 +9,44 @@
*/
// Some Global Values
jform_vvvvwbevxd_required = false;
jform_vvvvwbfvxe_required = false;
jform_vvvvwbfvxf_required = false;
jform_vvvvwbfvxg_required = false;
jform_vvvvwbfvxd_required = false;
jform_vvvvwbgvxe_required = false;
jform_vvvvwbgvxf_required = false;
jform_vvvvwbgvxg_required = false;
// Initial Script
jQuery(document).ready(function()
{
var target_vvvvwbe = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwbe(target_vvvvwbe);
var target_vvvvwbf = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwbf(target_vvvvwbf);
var target_vvvvwbg = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvwbg = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwbg(target_vvvvwbg,type_vvvvwbg);
vvvvwbg(target_vvvvwbg);
var type_vvvvwbh = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwbh = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwbh(type_vvvvwbh,target_vvvvwbh);
var type_vvvvwbh = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwbh(target_vvvvwbh,type_vvvvwbh);
var type_vvvvwbi = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwbi = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwbi(type_vvvvwbi,target_vvvvwbi);
});
// the vvvvwbe function
function vvvvwbe(target_vvvvwbe)
// the vvvvwbf function
function vvvvwbf(target_vvvvwbf)
{
// set the function logic
if (target_vvvvwbe == 2)
if (target_vvvvwbf == 2)
{
jQuery('#jform_function_name').closest('.control-group').show();
// add required attribute to function_name field
if (jform_vvvvwbevxd_required)
if (jform_vvvvwbfvxd_required)
{
updateFieldRequired('function_name',0);
jQuery('#jform_function_name').prop('required','required');
jQuery('#jform_function_name').attr('aria-required',true);
jQuery('#jform_function_name').addClass('required');
jform_vvvvwbevxd_required = false;
jform_vvvvwbfvxd_required = false;
}
jQuery('.note_jcb_placeholder').closest('.control-group').show();
jQuery('#jform_system_name').closest('.control-group').show();
@ -55,102 +55,102 @@ function vvvvwbe(target_vvvvwbe)
{
jQuery('#jform_function_name').closest('.control-group').hide();
// remove required attribute from function_name field
if (!jform_vvvvwbevxd_required)
if (!jform_vvvvwbfvxd_required)
{
updateFieldRequired('function_name',1);
jQuery('#jform_function_name').removeAttr('required');
jQuery('#jform_function_name').removeAttr('aria-required');
jQuery('#jform_function_name').removeClass('required');
jform_vvvvwbevxd_required = true;
jform_vvvvwbfvxd_required = true;
}
jQuery('.note_jcb_placeholder').closest('.control-group').hide();
jQuery('#jform_system_name').closest('.control-group').hide();
}
}
// the vvvvwbf function
function vvvvwbf(target_vvvvwbf)
// the vvvvwbg function
function vvvvwbg(target_vvvvwbg)
{
// set the function logic
if (target_vvvvwbf == 1)
if (target_vvvvwbg == 1)
{
jQuery('#jform_component').closest('.control-group').show();
// add required attribute to component field
if (jform_vvvvwbfvxe_required)
if (jform_vvvvwbgvxe_required)
{
updateFieldRequired('component',0);
jQuery('#jform_component').prop('required','required');
jQuery('#jform_component').attr('aria-required',true);
jQuery('#jform_component').addClass('required');
jform_vvvvwbfvxe_required = false;
jform_vvvvwbgvxe_required = false;
}
jQuery('#jform_path').closest('.control-group').show();
// add required attribute to path field
if (jform_vvvvwbfvxf_required)
if (jform_vvvvwbgvxf_required)
{
updateFieldRequired('path',0);
jQuery('#jform_path').prop('required','required');
jQuery('#jform_path').attr('aria-required',true);
jQuery('#jform_path').addClass('required');
jform_vvvvwbfvxf_required = false;
jform_vvvvwbgvxf_required = false;
}
jQuery('#jform_from_line').closest('.control-group').show();
jQuery('#jform_hashtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();
jQuery('#jform_type').closest('.control-group').show();
// add required attribute to type field
if (jform_vvvvwbfvxg_required)
if (jform_vvvvwbgvxg_required)
{
updateFieldRequired('type',0);
jQuery('#jform_type').prop('required','required');
jQuery('#jform_type').attr('aria-required',true);
jQuery('#jform_type').addClass('required');
jform_vvvvwbfvxg_required = false;
jform_vvvvwbgvxg_required = false;
}
}
else
{
jQuery('#jform_component').closest('.control-group').hide();
// remove required attribute from component field
if (!jform_vvvvwbfvxe_required)
if (!jform_vvvvwbgvxe_required)
{
updateFieldRequired('component',1);
jQuery('#jform_component').removeAttr('required');
jQuery('#jform_component').removeAttr('aria-required');
jQuery('#jform_component').removeClass('required');
jform_vvvvwbfvxe_required = true;
jform_vvvvwbgvxe_required = true;
}
jQuery('#jform_path').closest('.control-group').hide();
// remove required attribute from path field
if (!jform_vvvvwbfvxf_required)
if (!jform_vvvvwbgvxf_required)
{
updateFieldRequired('path',1);
jQuery('#jform_path').removeAttr('required');
jQuery('#jform_path').removeAttr('aria-required');
jQuery('#jform_path').removeClass('required');
jform_vvvvwbfvxf_required = true;
jform_vvvvwbgvxf_required = true;
}
jQuery('#jform_from_line').closest('.control-group').hide();
jQuery('#jform_hashtarget').closest('.control-group').hide();
jQuery('#jform_to_line').closest('.control-group').hide();
jQuery('#jform_type').closest('.control-group').hide();
// remove required attribute from type field
if (!jform_vvvvwbfvxg_required)
if (!jform_vvvvwbgvxg_required)
{
updateFieldRequired('type',1);
jQuery('#jform_type').removeAttr('required');
jQuery('#jform_type').removeAttr('aria-required');
jQuery('#jform_type').removeClass('required');
jform_vvvvwbfvxg_required = true;
jform_vvvvwbgvxg_required = true;
}
}
}
// the vvvvwbg function
function vvvvwbg(target_vvvvwbg,type_vvvvwbg)
// the vvvvwbh function
function vvvvwbh(target_vvvvwbh,type_vvvvwbh)
{
// set the function logic
if (target_vvvvwbg == 1 && type_vvvvwbg == 1)
if (target_vvvvwbh == 1 && type_vvvvwbh == 1)
{
jQuery('#jform_hashendtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();
@ -162,11 +162,11 @@ function vvvvwbg(target_vvvvwbg,type_vvvvwbg)
}
}
// the vvvvwbh function
function vvvvwbh(type_vvvvwbh,target_vvvvwbh)
// the vvvvwbi function
function vvvvwbi(type_vvvvwbi,target_vvvvwbi)
{
// set the function logic
if (type_vvvvwbh == 1 && target_vvvvwbh == 1)
if (type_vvvvwbi == 1 && target_vvvvwbi == 1)
{
jQuery('#jform_hashendtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();

File diff suppressed because it is too large Load Diff

View File

@ -9,57 +9,57 @@
*/
// Some Global Values
jform_vvvvwbsvxl_required = false;
jform_vvvvwbtvxm_required = false;
jform_vvvvwbuvxn_required = false;
jform_vvvvwbvvxo_required = false;
jform_vvvvwbtvxl_required = false;
jform_vvvvwbuvxm_required = false;
jform_vvvvwbvvxn_required = false;
jform_vvvvwbwvxo_required = false;
// Initial Script
jQuery(document).ready(function()
{
var datalenght_vvvvwbs = jQuery("#jform_datalenght").val();
vvvvwbs(datalenght_vvvvwbs);
var datalenght_vvvvwbt = jQuery("#jform_datalenght").val();
vvvvwbt(datalenght_vvvvwbt);
var datadefault_vvvvwbt = jQuery("#jform_datadefault").val();
vvvvwbt(datadefault_vvvvwbt);
var datatype_vvvvwbu = jQuery("#jform_datatype").val();
vvvvwbu(datatype_vvvvwbu);
var datadefault_vvvvwbu = jQuery("#jform_datadefault").val();
vvvvwbu(datadefault_vvvvwbu);
var datatype_vvvvwbv = jQuery("#jform_datatype").val();
vvvvwbv(datatype_vvvvwbv);
var store_vvvvwbw = jQuery("#jform_store").val();
var datatype_vvvvwbw = jQuery("#jform_datatype").val();
vvvvwbw(store_vvvvwbw,datatype_vvvvwbw);
vvvvwbw(datatype_vvvvwbw);
var add_css_view_vvvvwby = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvwby(add_css_view_vvvvwby);
var store_vvvvwbx = jQuery("#jform_store").val();
var datatype_vvvvwbx = jQuery("#jform_datatype").val();
vvvvwbx(store_vvvvwbx,datatype_vvvvwbx);
var add_css_views_vvvvwbz = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvwbz(add_css_views_vvvvwbz);
var add_css_view_vvvvwbz = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvwbz(add_css_view_vvvvwbz);
var add_javascript_view_footer_vvvvwca = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvwca(add_javascript_view_footer_vvvvwca);
var add_css_views_vvvvwca = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvwca(add_css_views_vvvvwca);
var add_javascript_views_footer_vvvvwcb = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvwcb(add_javascript_views_footer_vvvvwcb);
var add_javascript_view_footer_vvvvwcb = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvwcb(add_javascript_view_footer_vvvvwcb);
var add_javascript_views_footer_vvvvwcc = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvwcc(add_javascript_views_footer_vvvvwcc);
});
// the vvvvwbs function
function vvvvwbs(datalenght_vvvvwbs)
// the vvvvwbt function
function vvvvwbt(datalenght_vvvvwbt)
{
if (isSet(datalenght_vvvvwbs) && datalenght_vvvvwbs.constructor !== Array)
if (isSet(datalenght_vvvvwbt) && datalenght_vvvvwbt.constructor !== Array)
{
var temp_vvvvwbs = datalenght_vvvvwbs;
var datalenght_vvvvwbs = [];
datalenght_vvvvwbs.push(temp_vvvvwbs);
var temp_vvvvwbt = datalenght_vvvvwbt;
var datalenght_vvvvwbt = [];
datalenght_vvvvwbt.push(temp_vvvvwbt);
}
else if (!isSet(datalenght_vvvvwbs))
else if (!isSet(datalenght_vvvvwbt))
{
var datalenght_vvvvwbs = [];
var datalenght_vvvvwbt = [];
}
var datalenght = datalenght_vvvvwbs.some(datalenght_vvvvwbs_SomeFunc);
var datalenght = datalenght_vvvvwbt.some(datalenght_vvvvwbt_SomeFunc);
// set this function logic
@ -67,91 +67,35 @@ function vvvvwbs(datalenght_vvvvwbs)
{
jQuery('#jform_datalenght_other').closest('.control-group').show();
// add required attribute to datalenght_other field
if (jform_vvvvwbsvxl_required)
if (jform_vvvvwbtvxl_required)
{
updateFieldRequired('datalenght_other',0);
jQuery('#jform_datalenght_other').prop('required','required');
jQuery('#jform_datalenght_other').attr('aria-required',true);
jQuery('#jform_datalenght_other').addClass('required');
jform_vvvvwbsvxl_required = false;
jform_vvvvwbtvxl_required = false;
}
}
else
{
jQuery('#jform_datalenght_other').closest('.control-group').hide();
// remove required attribute from datalenght_other field
if (!jform_vvvvwbsvxl_required)
if (!jform_vvvvwbtvxl_required)
{
updateFieldRequired('datalenght_other',1);
jQuery('#jform_datalenght_other').removeAttr('required');
jQuery('#jform_datalenght_other').removeAttr('aria-required');
jQuery('#jform_datalenght_other').removeClass('required');
jform_vvvvwbsvxl_required = true;
}
}
}
// the vvvvwbs Some function
function datalenght_vvvvwbs_SomeFunc(datalenght_vvvvwbs)
{
// set the function logic
if (datalenght_vvvvwbs == 'Other')
{
return true;
}
return false;
}
// the vvvvwbt function
function vvvvwbt(datadefault_vvvvwbt)
{
if (isSet(datadefault_vvvvwbt) && datadefault_vvvvwbt.constructor !== Array)
{
var temp_vvvvwbt = datadefault_vvvvwbt;
var datadefault_vvvvwbt = [];
datadefault_vvvvwbt.push(temp_vvvvwbt);
}
else if (!isSet(datadefault_vvvvwbt))
{
var datadefault_vvvvwbt = [];
}
var datadefault = datadefault_vvvvwbt.some(datadefault_vvvvwbt_SomeFunc);
// set this function logic
if (datadefault)
{
jQuery('#jform_datadefault_other').closest('.control-group').show();
// add required attribute to datadefault_other field
if (jform_vvvvwbtvxm_required)
{
updateFieldRequired('datadefault_other',0);
jQuery('#jform_datadefault_other').prop('required','required');
jQuery('#jform_datadefault_other').attr('aria-required',true);
jQuery('#jform_datadefault_other').addClass('required');
jform_vvvvwbtvxm_required = false;
}
}
else
{
jQuery('#jform_datadefault_other').closest('.control-group').hide();
// remove required attribute from datadefault_other field
if (!jform_vvvvwbtvxm_required)
{
updateFieldRequired('datadefault_other',1);
jQuery('#jform_datadefault_other').removeAttr('required');
jQuery('#jform_datadefault_other').removeAttr('aria-required');
jQuery('#jform_datadefault_other').removeClass('required');
jform_vvvvwbtvxm_required = true;
jform_vvvvwbtvxl_required = true;
}
}
}
// the vvvvwbt Some function
function datadefault_vvvvwbt_SomeFunc(datadefault_vvvvwbt)
function datalenght_vvvvwbt_SomeFunc(datalenght_vvvvwbt)
{
// set the function logic
if (datadefault_vvvvwbt == 'Other')
if (datalenght_vvvvwbt == 'Other')
{
return true;
}
@ -159,59 +103,55 @@ function datadefault_vvvvwbt_SomeFunc(datadefault_vvvvwbt)
}
// the vvvvwbu function
function vvvvwbu(datatype_vvvvwbu)
function vvvvwbu(datadefault_vvvvwbu)
{
if (isSet(datatype_vvvvwbu) && datatype_vvvvwbu.constructor !== Array)
if (isSet(datadefault_vvvvwbu) && datadefault_vvvvwbu.constructor !== Array)
{
var temp_vvvvwbu = datatype_vvvvwbu;
var datatype_vvvvwbu = [];
datatype_vvvvwbu.push(temp_vvvvwbu);
var temp_vvvvwbu = datadefault_vvvvwbu;
var datadefault_vvvvwbu = [];
datadefault_vvvvwbu.push(temp_vvvvwbu);
}
else if (!isSet(datatype_vvvvwbu))
else if (!isSet(datadefault_vvvvwbu))
{
var datatype_vvvvwbu = [];
var datadefault_vvvvwbu = [];
}
var datatype = datatype_vvvvwbu.some(datatype_vvvvwbu_SomeFunc);
var datadefault = datadefault_vvvvwbu.some(datadefault_vvvvwbu_SomeFunc);
// set this function logic
if (datatype)
if (datadefault)
{
jQuery('#jform_datadefault').closest('.control-group').show();
jQuery('#jform_datalenght').closest('.control-group').show();
jQuery('#jform_indexes').closest('.control-group').show();
// add required attribute to indexes field
if (jform_vvvvwbuvxn_required)
jQuery('#jform_datadefault_other').closest('.control-group').show();
// add required attribute to datadefault_other field
if (jform_vvvvwbuvxm_required)
{
updateFieldRequired('indexes',0);
jQuery('#jform_indexes').prop('required','required');
jQuery('#jform_indexes').attr('aria-required',true);
jQuery('#jform_indexes').addClass('required');
jform_vvvvwbuvxn_required = false;
updateFieldRequired('datadefault_other',0);
jQuery('#jform_datadefault_other').prop('required','required');
jQuery('#jform_datadefault_other').attr('aria-required',true);
jQuery('#jform_datadefault_other').addClass('required');
jform_vvvvwbuvxm_required = false;
}
}
else
{
jQuery('#jform_datadefault').closest('.control-group').hide();
jQuery('#jform_datalenght').closest('.control-group').hide();
jQuery('#jform_indexes').closest('.control-group').hide();
// remove required attribute from indexes field
if (!jform_vvvvwbuvxn_required)
jQuery('#jform_datadefault_other').closest('.control-group').hide();
// remove required attribute from datadefault_other field
if (!jform_vvvvwbuvxm_required)
{
updateFieldRequired('indexes',1);
jQuery('#jform_indexes').removeAttr('required');
jQuery('#jform_indexes').removeAttr('aria-required');
jQuery('#jform_indexes').removeClass('required');
jform_vvvvwbuvxn_required = true;
updateFieldRequired('datadefault_other',1);
jQuery('#jform_datadefault_other').removeAttr('required');
jQuery('#jform_datadefault_other').removeAttr('aria-required');
jQuery('#jform_datadefault_other').removeClass('required');
jform_vvvvwbuvxm_required = true;
}
}
}
// the vvvvwbu Some function
function datatype_vvvvwbu_SomeFunc(datatype_vvvvwbu)
function datadefault_vvvvwbu_SomeFunc(datadefault_vvvvwbu)
{
// set the function logic
if (datatype_vvvvwbu == 'CHAR' || datatype_vvvvwbu == 'VARCHAR' || datatype_vvvvwbu == 'DATETIME' || datatype_vvvvwbu == 'DATE' || datatype_vvvvwbu == 'TIME' || datatype_vvvvwbu == 'INT' || datatype_vvvvwbu == 'TINYINT' || datatype_vvvvwbu == 'BIGINT' || datatype_vvvvwbu == 'FLOAT' || datatype_vvvvwbu == 'DECIMAL' || datatype_vvvvwbu == 'DOUBLE')
if (datadefault_vvvvwbu == 'Other')
{
return true;
}
@ -237,28 +177,32 @@ function vvvvwbv(datatype_vvvvwbv)
// set this function logic
if (datatype)
{
jQuery('#jform_store').closest('.control-group').show();
// add required attribute to store field
if (jform_vvvvwbvvxo_required)
jQuery('#jform_datadefault').closest('.control-group').show();
jQuery('#jform_datalenght').closest('.control-group').show();
jQuery('#jform_indexes').closest('.control-group').show();
// add required attribute to indexes field
if (jform_vvvvwbvvxn_required)
{
updateFieldRequired('store',0);
jQuery('#jform_store').prop('required','required');
jQuery('#jform_store').attr('aria-required',true);
jQuery('#jform_store').addClass('required');
jform_vvvvwbvvxo_required = false;
updateFieldRequired('indexes',0);
jQuery('#jform_indexes').prop('required','required');
jQuery('#jform_indexes').attr('aria-required',true);
jQuery('#jform_indexes').addClass('required');
jform_vvvvwbvvxn_required = false;
}
}
else
{
jQuery('#jform_store').closest('.control-group').hide();
// remove required attribute from store field
if (!jform_vvvvwbvvxo_required)
jQuery('#jform_datadefault').closest('.control-group').hide();
jQuery('#jform_datalenght').closest('.control-group').hide();
jQuery('#jform_indexes').closest('.control-group').hide();
// remove required attribute from indexes field
if (!jform_vvvvwbvvxn_required)
{
updateFieldRequired('store',1);
jQuery('#jform_store').removeAttr('required');
jQuery('#jform_store').removeAttr('aria-required');
jQuery('#jform_store').removeClass('required');
jform_vvvvwbvvxo_required = true;
updateFieldRequired('indexes',1);
jQuery('#jform_indexes').removeAttr('required');
jQuery('#jform_indexes').removeAttr('aria-required');
jQuery('#jform_indexes').removeClass('required');
jform_vvvvwbvvxn_required = true;
}
}
}
@ -267,7 +211,7 @@ function vvvvwbv(datatype_vvvvwbv)
function datatype_vvvvwbv_SomeFunc(datatype_vvvvwbv)
{
// set the function logic
if (datatype_vvvvwbv == 'CHAR' || datatype_vvvvwbv == 'VARCHAR' || datatype_vvvvwbv == 'TEXT' || datatype_vvvvwbv == 'MEDIUMTEXT' || datatype_vvvvwbv == 'LONGTEXT' || datatype_vvvvwbv == 'BLOB' || datatype_vvvvwbv == 'TINYBLOB' || datatype_vvvvwbv == 'MEDIUMBLOB' || datatype_vvvvwbv == 'LONGBLOB')
if (datatype_vvvvwbv == 'CHAR' || datatype_vvvvwbv == 'VARCHAR' || datatype_vvvvwbv == 'DATETIME' || datatype_vvvvwbv == 'DATE' || datatype_vvvvwbv == 'TIME' || datatype_vvvvwbv == 'INT' || datatype_vvvvwbv == 'TINYINT' || datatype_vvvvwbv == 'BIGINT' || datatype_vvvvwbv == 'FLOAT' || datatype_vvvvwbv == 'DECIMAL' || datatype_vvvvwbv == 'DOUBLE')
{
return true;
}
@ -275,20 +219,8 @@ function datatype_vvvvwbv_SomeFunc(datatype_vvvvwbv)
}
// the vvvvwbw function
function vvvvwbw(store_vvvvwbw,datatype_vvvvwbw)
function vvvvwbw(datatype_vvvvwbw)
{
if (isSet(store_vvvvwbw) && store_vvvvwbw.constructor !== Array)
{
var temp_vvvvwbw = store_vvvvwbw;
var store_vvvvwbw = [];
store_vvvvwbw.push(temp_vvvvwbw);
}
else if (!isSet(store_vvvvwbw))
{
var store_vvvvwbw = [];
}
var store = store_vvvvwbw.some(store_vvvvwbw_SomeFunc);
if (isSet(datatype_vvvvwbw) && datatype_vvvvwbw.constructor !== Array)
{
var temp_vvvvwbw = datatype_vvvvwbw;
@ -303,27 +235,34 @@ function vvvvwbw(store_vvvvwbw,datatype_vvvvwbw)
// set this function logic
if (store && datatype)
if (datatype)
{
jQuery('.note_whmcs_encryption').closest('.control-group').show();
jQuery('#jform_store').closest('.control-group').show();
// add required attribute to store field
if (jform_vvvvwbwvxo_required)
{
updateFieldRequired('store',0);
jQuery('#jform_store').prop('required','required');
jQuery('#jform_store').attr('aria-required',true);
jQuery('#jform_store').addClass('required');
jform_vvvvwbwvxo_required = false;
}
}
else
{
jQuery('.note_whmcs_encryption').closest('.control-group').hide();
jQuery('#jform_store').closest('.control-group').hide();
// remove required attribute from store field
if (!jform_vvvvwbwvxo_required)
{
updateFieldRequired('store',1);
jQuery('#jform_store').removeAttr('required');
jQuery('#jform_store').removeAttr('aria-required');
jQuery('#jform_store').removeClass('required');
jform_vvvvwbwvxo_required = true;
}
}
}
// the vvvvwbw Some function
function store_vvvvwbw_SomeFunc(store_vvvvwbw)
{
// set the function logic
if (store_vvvvwbw == 4)
{
return true;
}
return false;
}
// the vvvvwbw Some function
function datatype_vvvvwbw_SomeFunc(datatype_vvvvwbw)
{
@ -335,11 +274,72 @@ function datatype_vvvvwbw_SomeFunc(datatype_vvvvwbw)
return false;
}
// the vvvvwby function
function vvvvwby(add_css_view_vvvvwby)
// the vvvvwbx function
function vvvvwbx(store_vvvvwbx,datatype_vvvvwbx)
{
if (isSet(store_vvvvwbx) && store_vvvvwbx.constructor !== Array)
{
var temp_vvvvwbx = store_vvvvwbx;
var store_vvvvwbx = [];
store_vvvvwbx.push(temp_vvvvwbx);
}
else if (!isSet(store_vvvvwbx))
{
var store_vvvvwbx = [];
}
var store = store_vvvvwbx.some(store_vvvvwbx_SomeFunc);
if (isSet(datatype_vvvvwbx) && datatype_vvvvwbx.constructor !== Array)
{
var temp_vvvvwbx = datatype_vvvvwbx;
var datatype_vvvvwbx = [];
datatype_vvvvwbx.push(temp_vvvvwbx);
}
else if (!isSet(datatype_vvvvwbx))
{
var datatype_vvvvwbx = [];
}
var datatype = datatype_vvvvwbx.some(datatype_vvvvwbx_SomeFunc);
// set this function logic
if (store && datatype)
{
jQuery('.note_whmcs_encryption').closest('.control-group').show();
}
else
{
jQuery('.note_whmcs_encryption').closest('.control-group').hide();
}
}
// the vvvvwbx Some function
function store_vvvvwbx_SomeFunc(store_vvvvwbx)
{
// set the function logic
if (add_css_view_vvvvwby == 1)
if (store_vvvvwbx == 4)
{
return true;
}
return false;
}
// the vvvvwbx Some function
function datatype_vvvvwbx_SomeFunc(datatype_vvvvwbx)
{
// set the function logic
if (datatype_vvvvwbx == 'CHAR' || datatype_vvvvwbx == 'VARCHAR' || datatype_vvvvwbx == 'TEXT' || datatype_vvvvwbx == 'MEDIUMTEXT' || datatype_vvvvwbx == 'LONGTEXT' || datatype_vvvvwbx == 'BLOB' || datatype_vvvvwbx == 'TINYBLOB' || datatype_vvvvwbx == 'MEDIUMBLOB' || datatype_vvvvwbx == 'LONGBLOB')
{
return true;
}
return false;
}
// the vvvvwbz function
function vvvvwbz(add_css_view_vvvvwbz)
{
// set the function logic
if (add_css_view_vvvvwbz == 1)
{
jQuery('#jform_css_view-lbl').closest('.control-group').show();
}
@ -349,11 +349,11 @@ function vvvvwby(add_css_view_vvvvwby)
}
}
// the vvvvwbz function
function vvvvwbz(add_css_views_vvvvwbz)
// the vvvvwca function
function vvvvwca(add_css_views_vvvvwca)
{
// set the function logic
if (add_css_views_vvvvwbz == 1)
if (add_css_views_vvvvwca == 1)
{
jQuery('#jform_css_views-lbl').closest('.control-group').show();
}
@ -363,11 +363,11 @@ function vvvvwbz(add_css_views_vvvvwbz)
}
}
// the vvvvwca function
function vvvvwca(add_javascript_view_footer_vvvvwca)
// the vvvvwcb function
function vvvvwcb(add_javascript_view_footer_vvvvwcb)
{
// set the function logic
if (add_javascript_view_footer_vvvvwca == 1)
if (add_javascript_view_footer_vvvvwcb == 1)
{
jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show();
}
@ -377,11 +377,11 @@ function vvvvwca(add_javascript_view_footer_vvvvwca)
}
}
// the vvvvwcb function
function vvvvwcb(add_javascript_views_footer_vvvvwcb)
// the vvvvwcc function
function vvvvwcc(add_javascript_views_footer_vvvvwcc)
{
// set the function logic
if (add_javascript_views_footer_vvvvwcb == 1)
if (add_javascript_views_footer_vvvvwcc == 1)
{
jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show();
}

File diff suppressed because it is too large Load Diff

View File

@ -9,23 +9,20 @@
*/
// Some Global Values
jform_vvvvwcyvyh_required = false;
jform_vvvvwczvyi_required = false;
jform_vvvvwdavyj_required = false;
jform_vvvvwdbvyk_required = false;
jform_vvvvwddvyl_required = false;
jform_vvvvwczvyh_required = false;
jform_vvvvwdavyi_required = false;
jform_vvvvwdbvyj_required = false;
jform_vvvvwdcvyk_required = false;
jform_vvvvwdevyl_required = false;
// Initial Script
jQuery(document).ready(function()
{
var location_vvvvwcy = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwcy(location_vvvvwcy);
var location_vvvvwcz = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwcz(location_vvvvwcz);
var type_vvvvwda = jQuery("#jform_type").val();
vvvvwda(type_vvvvwda);
var location_vvvvwda = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwda(location_vvvvwda);
var type_vvvvwdb = jQuery("#jform_type").val();
vvvvwdb(type_vvvvwdb);
@ -33,130 +30,77 @@ jQuery(document).ready(function()
var type_vvvvwdc = jQuery("#jform_type").val();
vvvvwdc(type_vvvvwdc);
var target_vvvvwdd = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwdd(target_vvvvwdd);
var type_vvvvwdd = jQuery("#jform_type").val();
vvvvwdd(type_vvvvwdd);
var target_vvvvwde = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwde(target_vvvvwde);
});
// the vvvvwcy function
function vvvvwcy(location_vvvvwcy)
// the vvvvwcz function
function vvvvwcz(location_vvvvwcz)
{
// set the function logic
if (location_vvvvwcy == 1)
if (location_vvvvwcz == 1)
{
jQuery('#jform_admin_view').closest('.control-group').show();
// add required attribute to admin_view field
if (jform_vvvvwcyvyh_required)
if (jform_vvvvwczvyh_required)
{
updateFieldRequired('admin_view',0);
jQuery('#jform_admin_view').prop('required','required');
jQuery('#jform_admin_view').attr('aria-required',true);
jQuery('#jform_admin_view').addClass('required');
jform_vvvvwcyvyh_required = false;
jform_vvvvwczvyh_required = false;
}
}
else
{
jQuery('#jform_admin_view').closest('.control-group').hide();
// remove required attribute from admin_view field
if (!jform_vvvvwcyvyh_required)
if (!jform_vvvvwczvyh_required)
{
updateFieldRequired('admin_view',1);
jQuery('#jform_admin_view').removeAttr('required');
jQuery('#jform_admin_view').removeAttr('aria-required');
jQuery('#jform_admin_view').removeClass('required');
jform_vvvvwcyvyh_required = true;
jform_vvvvwczvyh_required = true;
}
}
}
// the vvvvwcz function
function vvvvwcz(location_vvvvwcz)
// the vvvvwda function
function vvvvwda(location_vvvvwda)
{
// set the function logic
if (location_vvvvwcz == 2)
if (location_vvvvwda == 2)
{
jQuery('#jform_site_view').closest('.control-group').show();
// add required attribute to site_view field
if (jform_vvvvwczvyi_required)
if (jform_vvvvwdavyi_required)
{
updateFieldRequired('site_view',0);
jQuery('#jform_site_view').prop('required','required');
jQuery('#jform_site_view').attr('aria-required',true);
jQuery('#jform_site_view').addClass('required');
jform_vvvvwczvyi_required = false;
jform_vvvvwdavyi_required = false;
}
}
else
{
jQuery('#jform_site_view').closest('.control-group').hide();
// remove required attribute from site_view field
if (!jform_vvvvwczvyi_required)
if (!jform_vvvvwdavyi_required)
{
updateFieldRequired('site_view',1);
jQuery('#jform_site_view').removeAttr('required');
jQuery('#jform_site_view').removeAttr('aria-required');
jQuery('#jform_site_view').removeClass('required');
jform_vvvvwczvyi_required = true;
jform_vvvvwdavyi_required = true;
}
}
}
// the vvvvwda function
function vvvvwda(type_vvvvwda)
{
if (isSet(type_vvvvwda) && type_vvvvwda.constructor !== Array)
{
var temp_vvvvwda = type_vvvvwda;
var type_vvvvwda = [];
type_vvvvwda.push(temp_vvvvwda);
}
else if (!isSet(type_vvvvwda))
{
var type_vvvvwda = [];
}
var type = type_vvvvwda.some(type_vvvvwda_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_url').closest('.control-group').show();
// add required attribute to url field
if (jform_vvvvwdavyj_required)
{
updateFieldRequired('url',0);
jQuery('#jform_url').prop('required','required');
jQuery('#jform_url').attr('aria-required',true);
jQuery('#jform_url').addClass('required');
jform_vvvvwdavyj_required = false;
}
}
else
{
jQuery('#jform_url').closest('.control-group').hide();
// remove required attribute from url field
if (!jform_vvvvwdavyj_required)
{
updateFieldRequired('url',1);
jQuery('#jform_url').removeAttr('required');
jQuery('#jform_url').removeAttr('aria-required');
jQuery('#jform_url').removeClass('required');
jform_vvvvwdavyj_required = true;
}
}
}
// the vvvvwda Some function
function type_vvvvwda_SomeFunc(type_vvvvwda)
{
// set the function logic
if (type_vvvvwda == 3)
{
return true;
}
return false;
}
// the vvvvwdb function
function vvvvwdb(type_vvvvwdb)
{
@ -176,28 +120,28 @@ function vvvvwdb(type_vvvvwdb)
// set this function logic
if (type)
{
jQuery('#jform_article').closest('.control-group').show();
// add required attribute to article field
if (jform_vvvvwdbvyk_required)
jQuery('#jform_url').closest('.control-group').show();
// add required attribute to url field
if (jform_vvvvwdbvyj_required)
{
updateFieldRequired('article',0);
jQuery('#jform_article').prop('required','required');
jQuery('#jform_article').attr('aria-required',true);
jQuery('#jform_article').addClass('required');
jform_vvvvwdbvyk_required = false;
updateFieldRequired('url',0);
jQuery('#jform_url').prop('required','required');
jQuery('#jform_url').attr('aria-required',true);
jQuery('#jform_url').addClass('required');
jform_vvvvwdbvyj_required = false;
}
}
else
{
jQuery('#jform_article').closest('.control-group').hide();
// remove required attribute from article field
if (!jform_vvvvwdbvyk_required)
jQuery('#jform_url').closest('.control-group').hide();
// remove required attribute from url field
if (!jform_vvvvwdbvyj_required)
{
updateFieldRequired('article',1);
jQuery('#jform_article').removeAttr('required');
jQuery('#jform_article').removeAttr('aria-required');
jQuery('#jform_article').removeClass('required');
jform_vvvvwdbvyk_required = true;
updateFieldRequired('url',1);
jQuery('#jform_url').removeAttr('required');
jQuery('#jform_url').removeAttr('aria-required');
jQuery('#jform_url').removeClass('required');
jform_vvvvwdbvyj_required = true;
}
}
}
@ -206,7 +150,7 @@ function vvvvwdb(type_vvvvwdb)
function type_vvvvwdb_SomeFunc(type_vvvvwdb)
{
// set the function logic
if (type_vvvvwdb == 1)
if (type_vvvvwdb == 3)
{
return true;
}
@ -229,6 +173,62 @@ function vvvvwdc(type_vvvvwdc)
var type = type_vvvvwdc.some(type_vvvvwdc_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_article').closest('.control-group').show();
// add required attribute to article field
if (jform_vvvvwdcvyk_required)
{
updateFieldRequired('article',0);
jQuery('#jform_article').prop('required','required');
jQuery('#jform_article').attr('aria-required',true);
jQuery('#jform_article').addClass('required');
jform_vvvvwdcvyk_required = false;
}
}
else
{
jQuery('#jform_article').closest('.control-group').hide();
// remove required attribute from article field
if (!jform_vvvvwdcvyk_required)
{
updateFieldRequired('article',1);
jQuery('#jform_article').removeAttr('required');
jQuery('#jform_article').removeAttr('aria-required');
jQuery('#jform_article').removeClass('required');
jform_vvvvwdcvyk_required = true;
}
}
}
// the vvvvwdc Some function
function type_vvvvwdc_SomeFunc(type_vvvvwdc)
{
// set the function logic
if (type_vvvvwdc == 1)
{
return true;
}
return false;
}
// the vvvvwdd function
function vvvvwdd(type_vvvvwdd)
{
if (isSet(type_vvvvwdd) && type_vvvvwdd.constructor !== Array)
{
var temp_vvvvwdd = type_vvvvwdd;
var type_vvvvwdd = [];
type_vvvvwdd.push(temp_vvvvwdd);
}
else if (!isSet(type_vvvvwdd))
{
var type_vvvvwdd = [];
}
var type = type_vvvvwdd.some(type_vvvvwdd_SomeFunc);
// set this function logic
if (type)
{
@ -240,45 +240,45 @@ function vvvvwdc(type_vvvvwdc)
}
}
// the vvvvwdc Some function
function type_vvvvwdc_SomeFunc(type_vvvvwdc)
// the vvvvwdd Some function
function type_vvvvwdd_SomeFunc(type_vvvvwdd)
{
// set the function logic
if (type_vvvvwdc == 2)
if (type_vvvvwdd == 2)
{
return true;
}
return false;
}
// the vvvvwdd function
function vvvvwdd(target_vvvvwdd)
// the vvvvwde function
function vvvvwde(target_vvvvwde)
{
// set the function logic
if (target_vvvvwdd == 1)
if (target_vvvvwde == 1)
{
jQuery('#jform_groups').closest('.control-group').show();
// add required attribute to groups field
if (jform_vvvvwddvyl_required)
if (jform_vvvvwdevyl_required)
{
updateFieldRequired('groups',0);
jQuery('#jform_groups').prop('required','required');
jQuery('#jform_groups').attr('aria-required',true);
jQuery('#jform_groups').addClass('required');
jform_vvvvwddvyl_required = false;
jform_vvvvwdevyl_required = false;
}
}
else
{
jQuery('#jform_groups').closest('.control-group').hide();
// remove required attribute from groups field
if (!jform_vvvvwddvyl_required)
if (!jform_vvvvwdevyl_required)
{
updateFieldRequired('groups',1);
jQuery('#jform_groups').removeAttr('required');
jQuery('#jform_groups').removeAttr('aria-required');
jQuery('#jform_groups').removeClass('required');
jform_vvvvwddvyl_required = true;
jform_vvvvwdevyl_required = true;
}
}
}

View File

@ -10,9 +10,9 @@
// Some Global Values
jform_vvvvvxevwd_required = false;
jform_vvvvvxsvwe_required = false;
jform_vvvvvxtvwf_required = false;
jform_vvvvvxuvwg_required = false;
jform_vvvvvxtvwe_required = false;
jform_vvvvvxuvwf_required = false;
jform_vvvvvxvvwg_required = false;
// Initial Script
jQuery(document).ready(function()
@ -32,57 +32,60 @@ jQuery(document).ready(function()
var class_extends_vvvvvxe = jQuery("#jform_class_extends").val();
vvvvvxe(add_head_vvvvvxe,class_extends_vvvvvxe);
var add_php_preflight_install_vvvvvxg = jQuery("#jform_add_php_preflight_install input[type='radio']:checked").val();
vvvvvxg(add_php_preflight_install_vvvvvxg);
var add_php_script_construct_vvvvvxg = jQuery("#jform_add_php_script_construct input[type='radio']:checked").val();
vvvvvxg(add_php_script_construct_vvvvvxg);
var add_php_preflight_update_vvvvvxh = jQuery("#jform_add_php_preflight_update input[type='radio']:checked").val();
vvvvvxh(add_php_preflight_update_vvvvvxh);
var add_php_preflight_install_vvvvvxh = jQuery("#jform_add_php_preflight_install input[type='radio']:checked").val();
vvvvvxh(add_php_preflight_install_vvvvvxh);
var add_php_preflight_uninstall_vvvvvxi = jQuery("#jform_add_php_preflight_uninstall input[type='radio']:checked").val();
vvvvvxi(add_php_preflight_uninstall_vvvvvxi);
var add_php_preflight_update_vvvvvxi = jQuery("#jform_add_php_preflight_update input[type='radio']:checked").val();
vvvvvxi(add_php_preflight_update_vvvvvxi);
var add_php_postflight_install_vvvvvxj = jQuery("#jform_add_php_postflight_install input[type='radio']:checked").val();
vvvvvxj(add_php_postflight_install_vvvvvxj);
var add_php_preflight_uninstall_vvvvvxj = jQuery("#jform_add_php_preflight_uninstall input[type='radio']:checked").val();
vvvvvxj(add_php_preflight_uninstall_vvvvvxj);
var add_php_postflight_update_vvvvvxk = jQuery("#jform_add_php_postflight_update input[type='radio']:checked").val();
vvvvvxk(add_php_postflight_update_vvvvvxk);
var add_php_postflight_install_vvvvvxk = jQuery("#jform_add_php_postflight_install input[type='radio']:checked").val();
vvvvvxk(add_php_postflight_install_vvvvvxk);
var add_php_method_uninstall_vvvvvxl = jQuery("#jform_add_php_method_uninstall input[type='radio']:checked").val();
vvvvvxl(add_php_method_uninstall_vvvvvxl);
var add_php_postflight_update_vvvvvxl = jQuery("#jform_add_php_postflight_update input[type='radio']:checked").val();
vvvvvxl(add_php_postflight_update_vvvvvxl);
var update_server_target_vvvvvxm = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvxm = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvxm(update_server_target_vvvvvxm,add_update_server_vvvvvxm);
var add_php_method_uninstall_vvvvvxm = jQuery("#jform_add_php_method_uninstall input[type='radio']:checked").val();
vvvvvxm(add_php_method_uninstall_vvvvvxm);
var add_update_server_vvvvvxn = jQuery("#jform_add_update_server input[type='radio']:checked").val();
var update_server_target_vvvvvxn = jQuery("#jform_update_server_target input[type='radio']:checked").val();
vvvvvxn(add_update_server_vvvvvxn,update_server_target_vvvvvxn);
var add_update_server_vvvvvxn = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvxn(update_server_target_vvvvvxn,add_update_server_vvvvvxn);
var update_server_target_vvvvvxo = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvxo = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvxo(update_server_target_vvvvvxo,add_update_server_vvvvvxo);
var update_server_target_vvvvvxo = jQuery("#jform_update_server_target input[type='radio']:checked").val();
vvvvvxo(add_update_server_vvvvvxo,update_server_target_vvvvvxo);
var update_server_target_vvvvvxq = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvxq = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvxq(update_server_target_vvvvvxq,add_update_server_vvvvvxq);
var update_server_target_vvvvvxp = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvxp = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvxp(update_server_target_vvvvvxp,add_update_server_vvvvvxp);
var add_update_server_vvvvvxs = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvxs(add_update_server_vvvvvxs);
var update_server_target_vvvvvxr = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvxr = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvxr(update_server_target_vvvvvxr,add_update_server_vvvvvxr);
var add_sql_vvvvvxt = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvxt(add_sql_vvvvvxt);
var add_update_server_vvvvvxt = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvxt(add_update_server_vvvvvxt);
var add_sql_uninstall_vvvvvxu = jQuery("#jform_add_sql_uninstall input[type='radio']:checked").val();
vvvvvxu(add_sql_uninstall_vvvvvxu);
var add_sql_vvvvvxu = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvxu(add_sql_vvvvvxu);
var add_update_server_vvvvvxv = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvxv(add_update_server_vvvvvxv);
var add_sql_uninstall_vvvvvxv = jQuery("#jform_add_sql_uninstall input[type='radio']:checked").val();
vvvvvxv(add_sql_uninstall_vvvvvxv);
var add_sales_server_vvvvvxw = jQuery("#jform_add_sales_server input[type='radio']:checked").val();
vvvvvxw(add_sales_server_vvvvvxw);
var add_update_server_vvvvvxw = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvxw(add_update_server_vvvvvxw);
var addreadme_vvvvvxx = jQuery("#jform_addreadme input[type='radio']:checked").val();
vvvvvxx(addreadme_vvvvvxx);
var add_sales_server_vvvvvxx = jQuery("#jform_add_sales_server input[type='radio']:checked").val();
vvvvvxx(add_sales_server_vvvvvxx);
var addreadme_vvvvvxy = jQuery("#jform_addreadme input[type='radio']:checked").val();
vvvvvxy(addreadme_vvvvvxy);
});
// the vvvvvxb function
@ -333,10 +336,24 @@ function class_extends_vvvvvxe_SomeFunc(class_extends_vvvvvxe)
}
// the vvvvvxg function
function vvvvvxg(add_php_preflight_install_vvvvvxg)
function vvvvvxg(add_php_script_construct_vvvvvxg)
{
// set the function logic
if (add_php_preflight_install_vvvvvxg == 1)
if (add_php_script_construct_vvvvvxg == 1)
{
jQuery('#jform_php_script_construct-lbl').closest('.control-group').show();
}
else
{
jQuery('#jform_php_script_construct-lbl').closest('.control-group').hide();
}
}
// the vvvvvxh function
function vvvvvxh(add_php_preflight_install_vvvvvxh)
{
// set the function logic
if (add_php_preflight_install_vvvvvxh == 1)
{
jQuery('#jform_php_preflight_install-lbl').closest('.control-group').show();
}
@ -346,11 +363,11 @@ function vvvvvxg(add_php_preflight_install_vvvvvxg)
}
}
// the vvvvvxh function
function vvvvvxh(add_php_preflight_update_vvvvvxh)
// the vvvvvxi function
function vvvvvxi(add_php_preflight_update_vvvvvxi)
{
// set the function logic
if (add_php_preflight_update_vvvvvxh == 1)
if (add_php_preflight_update_vvvvvxi == 1)
{
jQuery('#jform_php_preflight_update-lbl').closest('.control-group').show();
}
@ -360,11 +377,11 @@ function vvvvvxh(add_php_preflight_update_vvvvvxh)
}
}
// the vvvvvxi function
function vvvvvxi(add_php_preflight_uninstall_vvvvvxi)
// the vvvvvxj function
function vvvvvxj(add_php_preflight_uninstall_vvvvvxj)
{
// set the function logic
if (add_php_preflight_uninstall_vvvvvxi == 1)
if (add_php_preflight_uninstall_vvvvvxj == 1)
{
jQuery('#jform_php_preflight_uninstall-lbl').closest('.control-group').show();
}
@ -374,11 +391,11 @@ function vvvvvxi(add_php_preflight_uninstall_vvvvvxi)
}
}
// the vvvvvxj function
function vvvvvxj(add_php_postflight_install_vvvvvxj)
// the vvvvvxk function
function vvvvvxk(add_php_postflight_install_vvvvvxk)
{
// set the function logic
if (add_php_postflight_install_vvvvvxj == 1)
if (add_php_postflight_install_vvvvvxk == 1)
{
jQuery('#jform_php_postflight_install-lbl').closest('.control-group').show();
}
@ -388,11 +405,11 @@ function vvvvvxj(add_php_postflight_install_vvvvvxj)
}
}
// the vvvvvxk function
function vvvvvxk(add_php_postflight_update_vvvvvxk)
// the vvvvvxl function
function vvvvvxl(add_php_postflight_update_vvvvvxl)
{
// set the function logic
if (add_php_postflight_update_vvvvvxk == 1)
if (add_php_postflight_update_vvvvvxl == 1)
{
jQuery('#jform_php_postflight_update-lbl').closest('.control-group').show();
}
@ -402,11 +419,11 @@ function vvvvvxk(add_php_postflight_update_vvvvvxk)
}
}
// the vvvvvxl function
function vvvvvxl(add_php_method_uninstall_vvvvvxl)
// the vvvvvxm function
function vvvvvxm(add_php_method_uninstall_vvvvvxm)
{
// set the function logic
if (add_php_method_uninstall_vvvvvxl == 1)
if (add_php_method_uninstall_vvvvvxm == 1)
{
jQuery('#jform_php_method_uninstall-lbl').closest('.control-group').show();
}
@ -416,27 +433,11 @@ function vvvvvxl(add_php_method_uninstall_vvvvvxl)
}
}
// the vvvvvxm function
function vvvvvxm(update_server_target_vvvvvxm,add_update_server_vvvvvxm)
{
// set the function logic
if (update_server_target_vvvvvxm == 1 && add_update_server_vvvvvxm == 1)
{
jQuery('#jform_update_server').closest('.control-group').show();
jQuery('.note_update_server_note_ftp').closest('.control-group').show();
}
else
{
jQuery('#jform_update_server').closest('.control-group').hide();
jQuery('.note_update_server_note_ftp').closest('.control-group').hide();
}
}
// the vvvvvxn function
function vvvvvxn(add_update_server_vvvvvxn,update_server_target_vvvvvxn)
function vvvvvxn(update_server_target_vvvvvxn,add_update_server_vvvvvxn)
{
// set the function logic
if (add_update_server_vvvvvxn == 1 && update_server_target_vvvvvxn == 1)
if (update_server_target_vvvvvxn == 1 && add_update_server_vvvvvxn == 1)
{
jQuery('#jform_update_server').closest('.control-group').show();
jQuery('.note_update_server_note_ftp').closest('.control-group').show();
@ -449,10 +450,26 @@ function vvvvvxn(add_update_server_vvvvvxn,update_server_target_vvvvvxn)
}
// the vvvvvxo function
function vvvvvxo(update_server_target_vvvvvxo,add_update_server_vvvvvxo)
function vvvvvxo(add_update_server_vvvvvxo,update_server_target_vvvvvxo)
{
// set the function logic
if (update_server_target_vvvvvxo == 2 && add_update_server_vvvvvxo == 1)
if (add_update_server_vvvvvxo == 1 && update_server_target_vvvvvxo == 1)
{
jQuery('#jform_update_server').closest('.control-group').show();
jQuery('.note_update_server_note_ftp').closest('.control-group').show();
}
else
{
jQuery('#jform_update_server').closest('.control-group').hide();
jQuery('.note_update_server_note_ftp').closest('.control-group').hide();
}
}
// the vvvvvxp function
function vvvvvxp(update_server_target_vvvvvxp,add_update_server_vvvvvxp)
{
// set the function logic
if (update_server_target_vvvvvxp == 2 && add_update_server_vvvvvxp == 1)
{
jQuery('.note_update_server_note_zip').closest('.control-group').show();
}
@ -462,11 +479,11 @@ function vvvvvxo(update_server_target_vvvvvxo,add_update_server_vvvvvxo)
}
}
// the vvvvvxq function
function vvvvvxq(update_server_target_vvvvvxq,add_update_server_vvvvvxq)
// the vvvvvxr function
function vvvvvxr(update_server_target_vvvvvxr,add_update_server_vvvvvxr)
{
// set the function logic
if (update_server_target_vvvvvxq == 3 && add_update_server_vvvvvxq == 1)
if (update_server_target_vvvvvxr == 3 && add_update_server_vvvvvxr == 1)
{
jQuery('.note_update_server_note_other').closest('.control-group').show();
}
@ -476,107 +493,107 @@ function vvvvvxq(update_server_target_vvvvvxq,add_update_server_vvvvvxq)
}
}
// the vvvvvxs function
function vvvvvxs(add_update_server_vvvvvxs)
// the vvvvvxt function
function vvvvvxt(add_update_server_vvvvvxt)
{
// set the function logic
if (add_update_server_vvvvvxs == 1)
if (add_update_server_vvvvvxt == 1)
{
jQuery('#jform_update_server_target').closest('.control-group').show();
// add required attribute to update_server_target field
if (jform_vvvvvxsvwe_required)
if (jform_vvvvvxtvwe_required)
{
updateFieldRequired('update_server_target',0);
jQuery('#jform_update_server_target').prop('required','required');
jQuery('#jform_update_server_target').attr('aria-required',true);
jQuery('#jform_update_server_target').addClass('required');
jform_vvvvvxsvwe_required = false;
jform_vvvvvxtvwe_required = false;
}
}
else
{
jQuery('#jform_update_server_target').closest('.control-group').hide();
// remove required attribute from update_server_target field
if (!jform_vvvvvxsvwe_required)
if (!jform_vvvvvxtvwe_required)
{
updateFieldRequired('update_server_target',1);
jQuery('#jform_update_server_target').removeAttr('required');
jQuery('#jform_update_server_target').removeAttr('aria-required');
jQuery('#jform_update_server_target').removeClass('required');
jform_vvvvvxsvwe_required = true;
jform_vvvvvxtvwe_required = true;
}
}
}
// the vvvvvxt function
function vvvvvxt(add_sql_vvvvvxt)
// the vvvvvxu function
function vvvvvxu(add_sql_vvvvvxu)
{
// set the function logic
if (add_sql_vvvvvxt == 1)
if (add_sql_vvvvvxu == 1)
{
jQuery('#jform_sql').closest('.control-group').show();
// add required attribute to sql field
if (jform_vvvvvxtvwf_required)
if (jform_vvvvvxuvwf_required)
{
updateFieldRequired('sql',0);
jQuery('#jform_sql').prop('required','required');
jQuery('#jform_sql').attr('aria-required',true);
jQuery('#jform_sql').addClass('required');
jform_vvvvvxtvwf_required = false;
jform_vvvvvxuvwf_required = false;
}
}
else
{
jQuery('#jform_sql').closest('.control-group').hide();
// remove required attribute from sql field
if (!jform_vvvvvxtvwf_required)
if (!jform_vvvvvxuvwf_required)
{
updateFieldRequired('sql',1);
jQuery('#jform_sql').removeAttr('required');
jQuery('#jform_sql').removeAttr('aria-required');
jQuery('#jform_sql').removeClass('required');
jform_vvvvvxtvwf_required = true;
jform_vvvvvxuvwf_required = true;
}
}
}
// the vvvvvxu function
function vvvvvxu(add_sql_uninstall_vvvvvxu)
// the vvvvvxv function
function vvvvvxv(add_sql_uninstall_vvvvvxv)
{
// set the function logic
if (add_sql_uninstall_vvvvvxu == 1)
if (add_sql_uninstall_vvvvvxv == 1)
{
jQuery('#jform_sql_uninstall').closest('.control-group').show();
// add required attribute to sql_uninstall field
if (jform_vvvvvxuvwg_required)
if (jform_vvvvvxvvwg_required)
{
updateFieldRequired('sql_uninstall',0);
jQuery('#jform_sql_uninstall').prop('required','required');
jQuery('#jform_sql_uninstall').attr('aria-required',true);
jQuery('#jform_sql_uninstall').addClass('required');
jform_vvvvvxuvwg_required = false;
jform_vvvvvxvvwg_required = false;
}
}
else
{
jQuery('#jform_sql_uninstall').closest('.control-group').hide();
// remove required attribute from sql_uninstall field
if (!jform_vvvvvxuvwg_required)
if (!jform_vvvvvxvvwg_required)
{
updateFieldRequired('sql_uninstall',1);
jQuery('#jform_sql_uninstall').removeAttr('required');
jQuery('#jform_sql_uninstall').removeAttr('aria-required');
jQuery('#jform_sql_uninstall').removeClass('required');
jform_vvvvvxuvwg_required = true;
jform_vvvvvxvvwg_required = true;
}
}
}
// the vvvvvxv function
function vvvvvxv(add_update_server_vvvvvxv)
// the vvvvvxw function
function vvvvvxw(add_update_server_vvvvvxw)
{
// set the function logic
if (add_update_server_vvvvvxv == 1)
if (add_update_server_vvvvvxw == 1)
{
jQuery('#jform_update_server_url').closest('.control-group').show();
}
@ -586,11 +603,11 @@ function vvvvvxv(add_update_server_vvvvvxv)
}
}
// the vvvvvxw function
function vvvvvxw(add_sales_server_vvvvvxw)
// the vvvvvxx function
function vvvvvxx(add_sales_server_vvvvvxx)
{
// set the function logic
if (add_sales_server_vvvvvxw == 1)
if (add_sales_server_vvvvvxx == 1)
{
jQuery('#jform_sales_server').closest('.control-group').show();
}
@ -600,11 +617,11 @@ function vvvvvxw(add_sales_server_vvvvvxw)
}
}
// the vvvvvxx function
function vvvvvxx(addreadme_vvvvvxx)
// the vvvvvxy function
function vvvvvxy(addreadme_vvvvvxy)
{
// set the function logic
if (addreadme_vvvvvxx == 1)
if (addreadme_vvvvvxy == 1)
{
jQuery('#jform_readme-lbl').closest('.control-group').show();
}

View File

@ -121,19 +121,6 @@
required="true"
button="true"
/>
<!-- Sql_uninstall Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="sql_uninstall"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SQL_UNINSTALL_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SQL_UNINSTALL_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SQL_UNINSTALL_HINT"
required="true"
/>
<!-- Sql Field. Type: Textarea. (joomla) -->
<field
type="textarea"
@ -195,22 +182,52 @@
filter="raw"
validate="code"
/>
<!-- Add_sales_server Field. Type: Radio. (joomla) -->
<!-- Description Field. Type: Textarea. (joomla) -->
<field
type="radio"
name="add_sales_server"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_SALES_SERVER_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NO</option>
</field>
<!-- Note_update_server_note_ftp Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_update_server_note_ftp" label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_UPDATE_SERVER_NOTE_FTP_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_UPDATE_SERVER_NOTE_FTP_DESCRIPTION" heading="h4" class="alert alert-success note_update_server_note_ftp" />
type="textarea"
name="description"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_DESCRIPTION_LABEL"
rows="11"
cols="10"
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_DESCRIPTION_DESCRIPTION"
class="text_area span12"
filter="HTML"
hint="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_DESCRIPTION_HINT"
/>
<!-- Note_update_server_note_other Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_update_server_note_other" label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_UPDATE_SERVER_NOTE_OTHER_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_UPDATE_SERVER_NOTE_OTHER_DESCRIPTION" heading="h4" class="alert alert-success note_update_server_note_other" />
<!-- Update_server_url Field. Type: Url. (joomla) -->
<field
type="url"
name="update_server_url"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER_URL_LABEL"
size="60"
maxlength="150"
default=""
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER_URL_DESCRIPTION"
class="text_area span12"
filter="url"
validated="url"
message="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER_URL_MESSAGE"
hint="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER_URL_HINT"
/>
<!-- Head Field. Type: Editor. (joomla) -->
<field
type="editor"
name="head"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_HEAD_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_HEAD_DESCRIPTION"
width="100%"
height="100px"
cols="15"
rows="10"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
required="false"
validate="code"
/>
<!-- Method_selection Field. Type: Subform. (joomla) -->
<field
type="subform"
@ -279,6 +296,19 @@
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NO</option>
</field>
<!-- Sql_uninstall Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="sql_uninstall"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SQL_UNINSTALL_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SQL_UNINSTALL_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SQL_UNINSTALL_HINT"
required="true"
/>
<!-- Readme Field. Type: Editor. (joomla) -->
<field
type="editor"
@ -291,40 +321,6 @@
editor="none"
filter="raw"
/>
<!-- Update_server_url Field. Type: Url. (joomla) -->
<field
type="url"
name="update_server_url"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER_URL_LABEL"
size="60"
maxlength="150"
default=""
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER_URL_DESCRIPTION"
class="text_area span12"
filter="url"
validated="url"
message="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER_URL_MESSAGE"
hint="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER_URL_HINT"
/>
<!-- Head Field. Type: Editor. (joomla) -->
<field
type="editor"
name="head"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_HEAD_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_HEAD_DESCRIPTION"
width="100%"
height="100px"
cols="15"
rows="10"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
required="false"
validate="code"
/>
<!-- Note_update_server_note_other Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_update_server_note_other" label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_UPDATE_SERVER_NOTE_OTHER_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_UPDATE_SERVER_NOTE_OTHER_DESCRIPTION" heading="h4" class="alert alert-success note_update_server_note_other" />
<!-- Main_class_code Field. Type: Editor. (joomla) -->
<field
type="editor"
@ -341,29 +337,15 @@
filter="raw"
validate="code"
/>
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NAME_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NAME_HINT"
/>
<!-- Note_update_server_note_ftp Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_update_server_note_ftp" label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_UPDATE_SERVER_NOTE_FTP_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_UPDATE_SERVER_NOTE_FTP_DESCRIPTION" heading="h4" class="alert alert-success note_update_server_note_ftp" />
<!-- Note_linked_to_notice Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_linked_to_notice" label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_LINKED_TO_NOTICE_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_LINKED_TO_NOTICE_DESCRIPTION" heading="h4" class="note_linked_to_notice" />
<!-- Add_php_postflight_update Field. Type: Radio. (joomla) -->
<!-- Add_sales_server Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_postflight_update"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_PHP_POSTFLIGHT_UPDATE_LABEL"
name="add_sales_server"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_SALES_SERVER_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
@ -379,11 +361,40 @@
name="not_required"
default="[]"
/>
<!-- Add_php_method_uninstall Field. Type: Radio. (joomla) -->
<!-- Add_php_postflight_install Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_method_uninstall"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_PHP_METHOD_UNINSTALL_LABEL"
name="add_php_postflight_install"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_PHP_POSTFLIGHT_INSTALL_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NO</option>
</field>
<!-- Plugin_version Field. Type: Text. (joomla) -->
<field
type="text"
name="plugin_version"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PLUGIN_VERSION_LABEL"
size="40"
maxlength="50"
default="1.0.0"
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PLUGIN_VERSION_DESCRIPTION"
class="text_area"
required="true"
filter="CMD"
message="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PLUGIN_VERSION_MESSAGE"
hint="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PLUGIN_VERSION_HINT"
/>
<!-- Add_php_postflight_update Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_postflight_update"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_PHP_POSTFLIGHT_UPDATE_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
@ -432,6 +443,34 @@
/>
</form>
</field>
<!-- Add_php_method_uninstall Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_method_uninstall"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_PHP_METHOD_UNINSTALL_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NO</option>
</field>
<!-- Add_php_script_construct Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_script_construct"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_PHP_SCRIPT_CONSTRUCT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NO</option>
</field>
<!-- Add_sql Field. Type: Radio. (joomla) -->
<field
type="radio"
@ -446,6 +485,36 @@
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NO</option>
</field>
<!-- Php_script_construct Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_script_construct"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_SCRIPT_CONSTRUCT_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_SCRIPT_CONSTRUCT_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
validate="code"
/>
<!-- Add_sql_uninstall Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_sql_uninstall"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_SQL_UNINSTALL_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NO</option>
</field>
<!-- Add_php_preflight_install Field. Type: Radio. (joomla) -->
<field
type="radio"
@ -460,14 +529,13 @@
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NO</option>
</field>
<!-- Add_sql_uninstall Field. Type: Radio. (joomla) -->
<!-- Addreadme Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_sql_uninstall"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_SQL_UNINSTALL_LABEL"
name="addreadme"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADDREADME_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
default="0">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_YES</option>
@ -490,13 +558,14 @@
filter="raw"
validate="code"
/>
<!-- Addreadme Field. Type: Radio. (joomla) -->
<!-- Add_update_server Field. Type: Radio. (joomla) -->
<field
type="radio"
name="addreadme"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADDREADME_LABEL"
name="add_update_server"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_UPDATE_SERVER_LABEL"
class="btn-group btn-group-yesno"
default="0">
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_YES</option>
@ -517,36 +586,6 @@
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NO</option>
</field>
<!-- Add_update_server Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_update_server"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_UPDATE_SERVER_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NO</option>
</field>
<!-- Php_preflight_update Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_preflight_update"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_PREFLIGHT_UPDATE_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_PREFLIGHT_UPDATE_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
validate="code"
/>
<!-- Update_server_target Field. Type: Radio. (joomla) -->
<field
type="radio"
@ -564,6 +603,24 @@
<option value="3">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_OTHER</option>
</field>
<!-- Php_preflight_update Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_preflight_update"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_PREFLIGHT_UPDATE_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_PREFLIGHT_UPDATE_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
validate="code"
/>
<!-- Note_update_server_note_zip Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_update_server_note_zip" label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_UPDATE_SERVER_NOTE_ZIP_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_UPDATE_SERVER_NOTE_ZIP_DESCRIPTION" heading="h4" class="alert alert-info note_update_server_note_zip" />
<!-- Add_php_preflight_uninstall Field. Type: Radio. (joomla) -->
<field
type="radio"
@ -578,8 +635,17 @@
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NO</option>
</field>
<!-- Note_update_server_note_zip Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_update_server_note_zip" label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_UPDATE_SERVER_NOTE_ZIP_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_UPDATE_SERVER_NOTE_ZIP_DESCRIPTION" heading="h4" class="alert alert-info note_update_server_note_zip" />
<!-- Update_server Field. Type: Servers. (custom) -->
<field
type="servers"
name="update_server"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER_DESCRIPTION"
class="list_class"
multiple="false"
default="0"
button="true"
/>
<!-- Php_preflight_uninstall Field. Type: Editor. (joomla) -->
<field
type="editor"
@ -596,31 +662,6 @@
filter="raw"
validate="code"
/>
<!-- Update_server Field. Type: Servers. (custom) -->
<field
type="servers"
name="update_server"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER_DESCRIPTION"
class="list_class"
multiple="false"
default="0"
button="true"
/>
<!-- Add_php_postflight_install Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_postflight_install"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_PHP_POSTFLIGHT_INSTALL_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NO</option>
</field>
<!-- Sales_server Field. Type: Servers. (custom) -->
<field
type="servers"
@ -632,8 +673,22 @@
default="0"
button="true"
/>
<!-- Note_beta_stage Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_beta_stage" label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_BETA_STAGE_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_BETA_STAGE_DESCRIPTION" heading="h4" class="alert alert-warning note_beta_stage" />
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NAME_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NAME_HINT"
/>
</fieldset>
<!-- Access Control Fields. -->

View File

@ -0,0 +1,11 @@
/**
* @package Joomla.Component.Builder
*
* @created 30th April, 2015
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
* @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

View File

@ -0,0 +1,181 @@
<?xml version="1.0" encoding="utf-8"?>
<form
addrulepath="/administrator/components/com_componentbuilder/models/rules"
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_MODIFIED_DATE_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_VERSION_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_VERSION_DESC"
size="6"
readonly="true"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Joomla_plugin Field. Type: Joomlaplugins. (custom) -->
<field
type="joomlaplugins"
name="joomla_plugin"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_JOOMLA_PLUGIN_LABEL"
description="JFIELD_TITLE_DESC"
class="list_class span12"
multiple="false"
default="0"
readonly="true"
/>
<!-- Version_update Field. Type: Subform. (joomla) -->
<field
type="subform"
name="version_update"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_VERSION_UPDATE_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_VERSION_UPDATE_DESCRIPTION"
default=""
icon="list">
<form hidden="true" name="list_version_update_modal" repeat="true">
<!-- Version Field. Type: Text. (joomla) -->
<field
type="text"
name="version"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_VERSION_LABEL"
size="10"
maxlength="50"
default=""
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_VERSION_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="STRING"
message="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_VERSION_MESSAGE"
hint="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_VERSION_HINT"
/>
<!-- Mysql Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="mysql"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_MYSQL_LABEL"
rows="30"
cols="15"
default=""
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_MYSQL_DESCRIPTION"
class="text_area mysql_update"
filter="raw"
hint="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_MYSQL_HINT"
/>
<!-- Url Field. Type: Url. (joomla) -->
<field
type="url"
name="url"
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_URL_LABEL"
size="60"
maxlength="150"
default=""
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_URL_DESCRIPTION"
class="text_area version_url"
required="true"
filter="raw"
validated="url"
message="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_URL_MESSAGE"
hint="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_URL_HINT"
/>
</form>
</field>
</fieldset>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->
<field
name="asset_id"
type="hidden"
filter="unset"
/>
<!-- Rules Field. Type: Rules (joomla) -->
<field
name="rules"
type="rules"
label="Permissions in relation to this joomla_plugin_updates"
translate_label="false"
filter="rules"
validate="rules"
class="inputbox"
component="com_componentbuilder"
section="joomla_plugin_updates"
/>
</fieldset>
</form>

View File

@ -11,15 +11,15 @@
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvwac = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvwac(add_php_view_vvvvwac);
var add_php_view_vvvvwad = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvwad(add_php_view_vvvvwad);
});
// the vvvvwac function
function vvvvwac(add_php_view_vvvvwac)
// the vvvvwad function
function vvvvwad(add_php_view_vvvvwad)
{
// set the function logic
if (add_php_view_vvvvwac == 1)
if (add_php_view_vvvvwad == 1)
{
jQuery('#jform_php_view-lbl').closest('.control-group').show();
}

View File

@ -9,15 +9,12 @@
*/
// Some Global Values
jform_vvvvwblvxj_required = false;
jform_vvvvwbrvxk_required = false;
jform_vvvvwbmvxj_required = false;
jform_vvvvwbsvxk_required = false;
// Initial Script
jQuery(document).ready(function()
{
var how_vvvvwbk = jQuery("#jform_how").val();
vvvvwbk(how_vvvvwbk);
var how_vvvvwbl = jQuery("#jform_how").val();
vvvvwbl(how_vvvvwbl);
@ -36,48 +33,13 @@ jQuery(document).ready(function()
var how_vvvvwbq = jQuery("#jform_how").val();
vvvvwbq(how_vvvvwbq);
var type_vvvvwbr = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwbr(type_vvvvwbr);
var how_vvvvwbr = jQuery("#jform_how").val();
vvvvwbr(how_vvvvwbr);
var type_vvvvwbs = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwbs(type_vvvvwbs);
});
// the vvvvwbk function
function vvvvwbk(how_vvvvwbk)
{
if (isSet(how_vvvvwbk) && how_vvvvwbk.constructor !== Array)
{
var temp_vvvvwbk = how_vvvvwbk;
var how_vvvvwbk = [];
how_vvvvwbk.push(temp_vvvvwbk);
}
else if (!isSet(how_vvvvwbk))
{
var how_vvvvwbk = [];
}
var how = how_vvvvwbk.some(how_vvvvwbk_SomeFunc);
// set this function logic
if (how)
{
jQuery('#jform_addconditions-lbl').closest('.control-group').show();
}
else
{
jQuery('#jform_addconditions-lbl').closest('.control-group').hide();
}
}
// the vvvvwbk Some function
function how_vvvvwbk_SomeFunc(how_vvvvwbk)
{
// set the function logic
if (how_vvvvwbk == 2)
{
return true;
}
return false;
}
// the vvvvwbl function
function vvvvwbl(how_vvvvwbl)
{
@ -97,29 +59,11 @@ function vvvvwbl(how_vvvvwbl)
// set this function logic
if (how)
{
jQuery('#jform_php_setdocument').closest('.control-group').show();
// add required attribute to php_setdocument field
if (jform_vvvvwblvxj_required)
{
updateFieldRequired('php_setdocument',0);
jQuery('#jform_php_setdocument').prop('required','required');
jQuery('#jform_php_setdocument').attr('aria-required',true);
jQuery('#jform_php_setdocument').addClass('required');
jform_vvvvwblvxj_required = false;
}
jQuery('#jform_addconditions-lbl').closest('.control-group').show();
}
else
{
jQuery('#jform_php_setdocument').closest('.control-group').hide();
// remove required attribute from php_setdocument field
if (!jform_vvvvwblvxj_required)
{
updateFieldRequired('php_setdocument',1);
jQuery('#jform_php_setdocument').removeAttr('required');
jQuery('#jform_php_setdocument').removeAttr('aria-required');
jQuery('#jform_php_setdocument').removeClass('required');
jform_vvvvwblvxj_required = true;
}
jQuery('#jform_addconditions-lbl').closest('.control-group').hide();
}
}
@ -127,7 +71,7 @@ function vvvvwbl(how_vvvvwbl)
function how_vvvvwbl_SomeFunc(how_vvvvwbl)
{
// set the function logic
if (how_vvvvwbl == 3)
if (how_vvvvwbl == 2)
{
return true;
}
@ -153,11 +97,29 @@ function vvvvwbm(how_vvvvwbm)
// set this function logic
if (how)
{
jQuery('.note_display_library_config').closest('.control-group').show();
jQuery('#jform_php_setdocument').closest('.control-group').show();
// add required attribute to php_setdocument field
if (jform_vvvvwbmvxj_required)
{
updateFieldRequired('php_setdocument',0);
jQuery('#jform_php_setdocument').prop('required','required');
jQuery('#jform_php_setdocument').attr('aria-required',true);
jQuery('#jform_php_setdocument').addClass('required');
jform_vvvvwbmvxj_required = false;
}
}
else
{
jQuery('.note_display_library_config').closest('.control-group').hide();
jQuery('#jform_php_setdocument').closest('.control-group').hide();
// remove required attribute from php_setdocument field
if (!jform_vvvvwbmvxj_required)
{
updateFieldRequired('php_setdocument',1);
jQuery('#jform_php_setdocument').removeAttr('required');
jQuery('#jform_php_setdocument').removeAttr('aria-required');
jQuery('#jform_php_setdocument').removeClass('required');
jform_vvvvwbmvxj_required = true;
}
}
}
@ -165,7 +127,7 @@ function vvvvwbm(how_vvvvwbm)
function how_vvvvwbm_SomeFunc(how_vvvvwbm)
{
// set the function logic
if (how_vvvvwbm == 2 || how_vvvvwbm == 3)
if (how_vvvvwbm == 3)
{
return true;
}
@ -191,11 +153,11 @@ function vvvvwbn(how_vvvvwbn)
// set this function logic
if (how)
{
jQuery('.note_display_library_files_folders_urls').closest('.control-group').show();
jQuery('.note_display_library_config').closest('.control-group').show();
}
else
{
jQuery('.note_display_library_files_folders_urls').closest('.control-group').hide();
jQuery('.note_display_library_config').closest('.control-group').hide();
}
}
@ -203,7 +165,7 @@ function vvvvwbn(how_vvvvwbn)
function how_vvvvwbn_SomeFunc(how_vvvvwbn)
{
// set the function logic
if (how_vvvvwbn == 1 || how_vvvvwbn == 2 || how_vvvvwbn == 3)
if (how_vvvvwbn == 2 || how_vvvvwbn == 3)
{
return true;
}
@ -229,15 +191,11 @@ function vvvvwbo(how_vvvvwbo)
// set this function logic
if (how)
{
jQuery('.note_no_behaviour_one').closest('.control-group').show();
jQuery('.note_no_behaviour_three').closest('.control-group').show();
jQuery('.note_no_behaviour_two').closest('.control-group').show();
jQuery('.note_display_library_files_folders_urls').closest('.control-group').show();
}
else
{
jQuery('.note_no_behaviour_one').closest('.control-group').hide();
jQuery('.note_no_behaviour_three').closest('.control-group').hide();
jQuery('.note_no_behaviour_two').closest('.control-group').hide();
jQuery('.note_display_library_files_folders_urls').closest('.control-group').hide();
}
}
@ -245,7 +203,7 @@ function vvvvwbo(how_vvvvwbo)
function how_vvvvwbo_SomeFunc(how_vvvvwbo)
{
// set the function logic
if (how_vvvvwbo == 0)
if (how_vvvvwbo == 1 || how_vvvvwbo == 2 || how_vvvvwbo == 3)
{
return true;
}
@ -271,13 +229,15 @@ function vvvvwbp(how_vvvvwbp)
// set this function logic
if (how)
{
jQuery('.note_yes_behaviour_one').closest('.control-group').show();
jQuery('.note_yes_behaviour_two').closest('.control-group').show();
jQuery('.note_no_behaviour_one').closest('.control-group').show();
jQuery('.note_no_behaviour_three').closest('.control-group').show();
jQuery('.note_no_behaviour_two').closest('.control-group').show();
}
else
{
jQuery('.note_yes_behaviour_one').closest('.control-group').hide();
jQuery('.note_yes_behaviour_two').closest('.control-group').hide();
jQuery('.note_no_behaviour_one').closest('.control-group').hide();
jQuery('.note_no_behaviour_three').closest('.control-group').hide();
jQuery('.note_no_behaviour_two').closest('.control-group').hide();
}
}
@ -285,7 +245,7 @@ function vvvvwbp(how_vvvvwbp)
function how_vvvvwbp_SomeFunc(how_vvvvwbp)
{
// set the function logic
if (how_vvvvwbp == 1)
if (how_vvvvwbp == 0)
{
return true;
}
@ -308,6 +268,46 @@ function vvvvwbq(how_vvvvwbq)
var how = how_vvvvwbq.some(how_vvvvwbq_SomeFunc);
// set this function logic
if (how)
{
jQuery('.note_yes_behaviour_one').closest('.control-group').show();
jQuery('.note_yes_behaviour_two').closest('.control-group').show();
}
else
{
jQuery('.note_yes_behaviour_one').closest('.control-group').hide();
jQuery('.note_yes_behaviour_two').closest('.control-group').hide();
}
}
// the vvvvwbq Some function
function how_vvvvwbq_SomeFunc(how_vvvvwbq)
{
// set the function logic
if (how_vvvvwbq == 1)
{
return true;
}
return false;
}
// the vvvvwbr function
function vvvvwbr(how_vvvvwbr)
{
if (isSet(how_vvvvwbr) && how_vvvvwbr.constructor !== Array)
{
var temp_vvvvwbr = how_vvvvwbr;
var how_vvvvwbr = [];
how_vvvvwbr.push(temp_vvvvwbr);
}
else if (!isSet(how_vvvvwbr))
{
var how_vvvvwbr = [];
}
var how = how_vvvvwbr.some(how_vvvvwbr_SomeFunc);
// set this function logic
if (how)
{
@ -323,45 +323,45 @@ function vvvvwbq(how_vvvvwbq)
}
}
// the vvvvwbq Some function
function how_vvvvwbq_SomeFunc(how_vvvvwbq)
// the vvvvwbr Some function
function how_vvvvwbr_SomeFunc(how_vvvvwbr)
{
// set the function logic
if (how_vvvvwbq == 4)
if (how_vvvvwbr == 4)
{
return true;
}
return false;
}
// the vvvvwbr function
function vvvvwbr(type_vvvvwbr)
// the vvvvwbs function
function vvvvwbs(type_vvvvwbs)
{
// set the function logic
if (type_vvvvwbr == 2)
if (type_vvvvwbs == 2)
{
jQuery('#jform_libraries').closest('.control-group').show();
// add required attribute to libraries field
if (jform_vvvvwbrvxk_required)
if (jform_vvvvwbsvxk_required)
{
updateFieldRequired('libraries',0);
jQuery('#jform_libraries').prop('required','required');
jQuery('#jform_libraries').attr('aria-required',true);
jQuery('#jform_libraries').addClass('required');
jform_vvvvwbrvxk_required = false;
jform_vvvvwbsvxk_required = false;
}
}
else
{
jQuery('#jform_libraries').closest('.control-group').hide();
// remove required attribute from libraries field
if (!jform_vvvvwbrvxk_required)
if (!jform_vvvvwbsvxk_required)
{
updateFieldRequired('libraries',1);
jQuery('#jform_libraries').removeAttr('required');
jQuery('#jform_libraries').removeAttr('aria-required');
jQuery('#jform_libraries').removeClass('required');
jform_vvvvwbrvxk_required = true;
jform_vvvvwbsvxk_required = true;
}
}
}

View File

@ -9,180 +9,42 @@
*/
// Some Global Values
jform_vvvvwcovxx_required = false;
jform_vvvvwcovxy_required = false;
jform_vvvvwcovxz_required = false;
jform_vvvvwcovya_required = false;
jform_vvvvwcovyb_required = false;
jform_vvvvwcpvyc_required = false;
jform_vvvvwcqvyd_required = false;
jform_vvvvwcsvye_required = false;
jform_vvvvwcuvyf_required = false;
jform_vvvvwcpvxx_required = false;
jform_vvvvwcpvxy_required = false;
jform_vvvvwcpvxz_required = false;
jform_vvvvwcpvya_required = false;
jform_vvvvwcpvyb_required = false;
jform_vvvvwcqvyc_required = false;
jform_vvvvwcrvyd_required = false;
jform_vvvvwctvye_required = false;
jform_vvvvwcvvyf_required = false;
// Initial Script
jQuery(document).ready(function()
{
var protocol_vvvvwco = jQuery("#jform_protocol").val();
vvvvwco(protocol_vvvvwco);
var protocol_vvvvwcp = jQuery("#jform_protocol").val();
vvvvwcp(protocol_vvvvwcp);
var protocol_vvvvwcq = jQuery("#jform_protocol").val();
var authentication_vvvvwcq = jQuery("#jform_authentication").val();
vvvvwcq(protocol_vvvvwcq,authentication_vvvvwcq);
vvvvwcq(protocol_vvvvwcq);
var protocol_vvvvwcs = jQuery("#jform_protocol").val();
var authentication_vvvvwcs = jQuery("#jform_authentication").val();
vvvvwcs(protocol_vvvvwcs,authentication_vvvvwcs);
var protocol_vvvvwcr = jQuery("#jform_protocol").val();
var authentication_vvvvwcr = jQuery("#jform_authentication").val();
vvvvwcr(protocol_vvvvwcr,authentication_vvvvwcr);
var protocol_vvvvwcu = jQuery("#jform_protocol").val();
var authentication_vvvvwcu = jQuery("#jform_authentication").val();
vvvvwcu(protocol_vvvvwcu,authentication_vvvvwcu);
var protocol_vvvvwct = jQuery("#jform_protocol").val();
var authentication_vvvvwct = jQuery("#jform_authentication").val();
vvvvwct(protocol_vvvvwct,authentication_vvvvwct);
var protocol_vvvvwcw = jQuery("#jform_protocol").val();
var authentication_vvvvwcw = jQuery("#jform_authentication").val();
vvvvwcw(protocol_vvvvwcw,authentication_vvvvwcw);
var protocol_vvvvwcv = jQuery("#jform_protocol").val();
var authentication_vvvvwcv = jQuery("#jform_authentication").val();
vvvvwcv(protocol_vvvvwcv,authentication_vvvvwcv);
var protocol_vvvvwcx = jQuery("#jform_protocol").val();
var authentication_vvvvwcx = jQuery("#jform_authentication").val();
vvvvwcx(protocol_vvvvwcx,authentication_vvvvwcx);
});
// the vvvvwco function
function vvvvwco(protocol_vvvvwco)
{
if (isSet(protocol_vvvvwco) && protocol_vvvvwco.constructor !== Array)
{
var temp_vvvvwco = protocol_vvvvwco;
var protocol_vvvvwco = [];
protocol_vvvvwco.push(temp_vvvvwco);
}
else if (!isSet(protocol_vvvvwco))
{
var protocol_vvvvwco = [];
}
var protocol = protocol_vvvvwco.some(protocol_vvvvwco_SomeFunc);
// set this function logic
if (protocol)
{
jQuery('#jform_authentication').closest('.control-group').show();
// add required attribute to authentication field
if (jform_vvvvwcovxx_required)
{
updateFieldRequired('authentication',0);
jQuery('#jform_authentication').prop('required','required');
jQuery('#jform_authentication').attr('aria-required',true);
jQuery('#jform_authentication').addClass('required');
jform_vvvvwcovxx_required = false;
}
jQuery('#jform_host').closest('.control-group').show();
// add required attribute to host field
if (jform_vvvvwcovxy_required)
{
updateFieldRequired('host',0);
jQuery('#jform_host').prop('required','required');
jQuery('#jform_host').attr('aria-required',true);
jQuery('#jform_host').addClass('required');
jform_vvvvwcovxy_required = false;
}
jQuery('#jform_port').closest('.control-group').show();
// add required attribute to port field
if (jform_vvvvwcovxz_required)
{
updateFieldRequired('port',0);
jQuery('#jform_port').prop('required','required');
jQuery('#jform_port').attr('aria-required',true);
jQuery('#jform_port').addClass('required');
jform_vvvvwcovxz_required = false;
}
jQuery('#jform_path').closest('.control-group').show();
// add required attribute to path field
if (jform_vvvvwcovya_required)
{
updateFieldRequired('path',0);
jQuery('#jform_path').prop('required','required');
jQuery('#jform_path').attr('aria-required',true);
jQuery('#jform_path').addClass('required');
jform_vvvvwcovya_required = false;
}
jQuery('.note_ssh_security').closest('.control-group').show();
jQuery('#jform_username').closest('.control-group').show();
// add required attribute to username field
if (jform_vvvvwcovyb_required)
{
updateFieldRequired('username',0);
jQuery('#jform_username').prop('required','required');
jQuery('#jform_username').attr('aria-required',true);
jQuery('#jform_username').addClass('required');
jform_vvvvwcovyb_required = false;
}
}
else
{
jQuery('#jform_authentication').closest('.control-group').hide();
// remove required attribute from authentication field
if (!jform_vvvvwcovxx_required)
{
updateFieldRequired('authentication',1);
jQuery('#jform_authentication').removeAttr('required');
jQuery('#jform_authentication').removeAttr('aria-required');
jQuery('#jform_authentication').removeClass('required');
jform_vvvvwcovxx_required = true;
}
jQuery('#jform_host').closest('.control-group').hide();
// remove required attribute from host field
if (!jform_vvvvwcovxy_required)
{
updateFieldRequired('host',1);
jQuery('#jform_host').removeAttr('required');
jQuery('#jform_host').removeAttr('aria-required');
jQuery('#jform_host').removeClass('required');
jform_vvvvwcovxy_required = true;
}
jQuery('#jform_port').closest('.control-group').hide();
// remove required attribute from port field
if (!jform_vvvvwcovxz_required)
{
updateFieldRequired('port',1);
jQuery('#jform_port').removeAttr('required');
jQuery('#jform_port').removeAttr('aria-required');
jQuery('#jform_port').removeClass('required');
jform_vvvvwcovxz_required = true;
}
jQuery('#jform_path').closest('.control-group').hide();
// remove required attribute from path field
if (!jform_vvvvwcovya_required)
{
updateFieldRequired('path',1);
jQuery('#jform_path').removeAttr('required');
jQuery('#jform_path').removeAttr('aria-required');
jQuery('#jform_path').removeClass('required');
jform_vvvvwcovya_required = true;
}
jQuery('.note_ssh_security').closest('.control-group').hide();
jQuery('#jform_username').closest('.control-group').hide();
// remove required attribute from username field
if (!jform_vvvvwcovyb_required)
{
updateFieldRequired('username',1);
jQuery('#jform_username').removeAttr('required');
jQuery('#jform_username').removeAttr('aria-required');
jQuery('#jform_username').removeClass('required');
jform_vvvvwcovyb_required = true;
}
}
}
// the vvvvwco Some function
function protocol_vvvvwco_SomeFunc(protocol_vvvvwco)
{
// set the function logic
if (protocol_vvvvwco == 2)
{
return true;
}
return false;
}
// the vvvvwcp function
function vvvvwcp(protocol_vvvvwcp)
{
@ -202,30 +64,110 @@ function vvvvwcp(protocol_vvvvwcp)
// set this function logic
if (protocol)
{
jQuery('.note_ftp_signature').closest('.control-group').show();
jQuery('#jform_signature').closest('.control-group').show();
// add required attribute to signature field
if (jform_vvvvwcpvyc_required)
jQuery('#jform_authentication').closest('.control-group').show();
// add required attribute to authentication field
if (jform_vvvvwcpvxx_required)
{
updateFieldRequired('signature',0);
jQuery('#jform_signature').prop('required','required');
jQuery('#jform_signature').attr('aria-required',true);
jQuery('#jform_signature').addClass('required');
jform_vvvvwcpvyc_required = false;
updateFieldRequired('authentication',0);
jQuery('#jform_authentication').prop('required','required');
jQuery('#jform_authentication').attr('aria-required',true);
jQuery('#jform_authentication').addClass('required');
jform_vvvvwcpvxx_required = false;
}
jQuery('#jform_host').closest('.control-group').show();
// add required attribute to host field
if (jform_vvvvwcpvxy_required)
{
updateFieldRequired('host',0);
jQuery('#jform_host').prop('required','required');
jQuery('#jform_host').attr('aria-required',true);
jQuery('#jform_host').addClass('required');
jform_vvvvwcpvxy_required = false;
}
jQuery('#jform_port').closest('.control-group').show();
// add required attribute to port field
if (jform_vvvvwcpvxz_required)
{
updateFieldRequired('port',0);
jQuery('#jform_port').prop('required','required');
jQuery('#jform_port').attr('aria-required',true);
jQuery('#jform_port').addClass('required');
jform_vvvvwcpvxz_required = false;
}
jQuery('#jform_path').closest('.control-group').show();
// add required attribute to path field
if (jform_vvvvwcpvya_required)
{
updateFieldRequired('path',0);
jQuery('#jform_path').prop('required','required');
jQuery('#jform_path').attr('aria-required',true);
jQuery('#jform_path').addClass('required');
jform_vvvvwcpvya_required = false;
}
jQuery('.note_ssh_security').closest('.control-group').show();
jQuery('#jform_username').closest('.control-group').show();
// add required attribute to username field
if (jform_vvvvwcpvyb_required)
{
updateFieldRequired('username',0);
jQuery('#jform_username').prop('required','required');
jQuery('#jform_username').attr('aria-required',true);
jQuery('#jform_username').addClass('required');
jform_vvvvwcpvyb_required = false;
}
}
else
{
jQuery('.note_ftp_signature').closest('.control-group').hide();
jQuery('#jform_signature').closest('.control-group').hide();
// remove required attribute from signature field
if (!jform_vvvvwcpvyc_required)
jQuery('#jform_authentication').closest('.control-group').hide();
// remove required attribute from authentication field
if (!jform_vvvvwcpvxx_required)
{
updateFieldRequired('signature',1);
jQuery('#jform_signature').removeAttr('required');
jQuery('#jform_signature').removeAttr('aria-required');
jQuery('#jform_signature').removeClass('required');
jform_vvvvwcpvyc_required = true;
updateFieldRequired('authentication',1);
jQuery('#jform_authentication').removeAttr('required');
jQuery('#jform_authentication').removeAttr('aria-required');
jQuery('#jform_authentication').removeClass('required');
jform_vvvvwcpvxx_required = true;
}
jQuery('#jform_host').closest('.control-group').hide();
// remove required attribute from host field
if (!jform_vvvvwcpvxy_required)
{
updateFieldRequired('host',1);
jQuery('#jform_host').removeAttr('required');
jQuery('#jform_host').removeAttr('aria-required');
jQuery('#jform_host').removeClass('required');
jform_vvvvwcpvxy_required = true;
}
jQuery('#jform_port').closest('.control-group').hide();
// remove required attribute from port field
if (!jform_vvvvwcpvxz_required)
{
updateFieldRequired('port',1);
jQuery('#jform_port').removeAttr('required');
jQuery('#jform_port').removeAttr('aria-required');
jQuery('#jform_port').removeClass('required');
jform_vvvvwcpvxz_required = true;
}
jQuery('#jform_path').closest('.control-group').hide();
// remove required attribute from path field
if (!jform_vvvvwcpvya_required)
{
updateFieldRequired('path',1);
jQuery('#jform_path').removeAttr('required');
jQuery('#jform_path').removeAttr('aria-required');
jQuery('#jform_path').removeClass('required');
jform_vvvvwcpvya_required = true;
}
jQuery('.note_ssh_security').closest('.control-group').hide();
jQuery('#jform_username').closest('.control-group').hide();
// remove required attribute from username field
if (!jform_vvvvwcpvyb_required)
{
updateFieldRequired('username',1);
jQuery('#jform_username').removeAttr('required');
jQuery('#jform_username').removeAttr('aria-required');
jQuery('#jform_username').removeClass('required');
jform_vvvvwcpvyb_required = true;
}
}
}
@ -234,7 +176,7 @@ function vvvvwcp(protocol_vvvvwcp)
function protocol_vvvvwcp_SomeFunc(protocol_vvvvwcp)
{
// set the function logic
if (protocol_vvvvwcp == 1)
if (protocol_vvvvwcp == 2)
{
return true;
}
@ -242,7 +184,7 @@ function protocol_vvvvwcp_SomeFunc(protocol_vvvvwcp)
}
// the vvvvwcq function
function vvvvwcq(protocol_vvvvwcq,authentication_vvvvwcq)
function vvvvwcq(protocol_vvvvwcq)
{
if (isSet(protocol_vvvvwcq) && protocol_vvvvwcq.constructor !== Array)
{
@ -256,44 +198,34 @@ function vvvvwcq(protocol_vvvvwcq,authentication_vvvvwcq)
}
var protocol = protocol_vvvvwcq.some(protocol_vvvvwcq_SomeFunc);
if (isSet(authentication_vvvvwcq) && authentication_vvvvwcq.constructor !== Array)
{
var temp_vvvvwcq = authentication_vvvvwcq;
var authentication_vvvvwcq = [];
authentication_vvvvwcq.push(temp_vvvvwcq);
}
else if (!isSet(authentication_vvvvwcq))
{
var authentication_vvvvwcq = [];
}
var authentication = authentication_vvvvwcq.some(authentication_vvvvwcq_SomeFunc);
// set this function logic
if (protocol && authentication)
if (protocol)
{
jQuery('#jform_password').closest('.control-group').show();
// add required attribute to password field
if (jform_vvvvwcqvyd_required)
jQuery('.note_ftp_signature').closest('.control-group').show();
jQuery('#jform_signature').closest('.control-group').show();
// add required attribute to signature field
if (jform_vvvvwcqvyc_required)
{
updateFieldRequired('password',0);
jQuery('#jform_password').prop('required','required');
jQuery('#jform_password').attr('aria-required',true);
jQuery('#jform_password').addClass('required');
jform_vvvvwcqvyd_required = false;
updateFieldRequired('signature',0);
jQuery('#jform_signature').prop('required','required');
jQuery('#jform_signature').attr('aria-required',true);
jQuery('#jform_signature').addClass('required');
jform_vvvvwcqvyc_required = false;
}
}
else
{
jQuery('#jform_password').closest('.control-group').hide();
// remove required attribute from password field
if (!jform_vvvvwcqvyd_required)
jQuery('.note_ftp_signature').closest('.control-group').hide();
jQuery('#jform_signature').closest('.control-group').hide();
// remove required attribute from signature field
if (!jform_vvvvwcqvyc_required)
{
updateFieldRequired('password',1);
jQuery('#jform_password').removeAttr('required');
jQuery('#jform_password').removeAttr('aria-required');
jQuery('#jform_password').removeClass('required');
jform_vvvvwcqvyd_required = true;
updateFieldRequired('signature',1);
jQuery('#jform_signature').removeAttr('required');
jQuery('#jform_signature').removeAttr('aria-required');
jQuery('#jform_signature').removeClass('required');
jform_vvvvwcqvyc_required = true;
}
}
}
@ -302,50 +234,118 @@ function vvvvwcq(protocol_vvvvwcq,authentication_vvvvwcq)
function protocol_vvvvwcq_SomeFunc(protocol_vvvvwcq)
{
// set the function logic
if (protocol_vvvvwcq == 2)
if (protocol_vvvvwcq == 1)
{
return true;
}
return false;
}
// the vvvvwcq Some function
function authentication_vvvvwcq_SomeFunc(authentication_vvvvwcq)
// the vvvvwcr function
function vvvvwcr(protocol_vvvvwcr,authentication_vvvvwcr)
{
if (isSet(protocol_vvvvwcr) && protocol_vvvvwcr.constructor !== Array)
{
var temp_vvvvwcr = protocol_vvvvwcr;
var protocol_vvvvwcr = [];
protocol_vvvvwcr.push(temp_vvvvwcr);
}
else if (!isSet(protocol_vvvvwcr))
{
var protocol_vvvvwcr = [];
}
var protocol = protocol_vvvvwcr.some(protocol_vvvvwcr_SomeFunc);
if (isSet(authentication_vvvvwcr) && authentication_vvvvwcr.constructor !== Array)
{
var temp_vvvvwcr = authentication_vvvvwcr;
var authentication_vvvvwcr = [];
authentication_vvvvwcr.push(temp_vvvvwcr);
}
else if (!isSet(authentication_vvvvwcr))
{
var authentication_vvvvwcr = [];
}
var authentication = authentication_vvvvwcr.some(authentication_vvvvwcr_SomeFunc);
// set this function logic
if (protocol && authentication)
{
jQuery('#jform_password').closest('.control-group').show();
// add required attribute to password field
if (jform_vvvvwcrvyd_required)
{
updateFieldRequired('password',0);
jQuery('#jform_password').prop('required','required');
jQuery('#jform_password').attr('aria-required',true);
jQuery('#jform_password').addClass('required');
jform_vvvvwcrvyd_required = false;
}
}
else
{
jQuery('#jform_password').closest('.control-group').hide();
// remove required attribute from password field
if (!jform_vvvvwcrvyd_required)
{
updateFieldRequired('password',1);
jQuery('#jform_password').removeAttr('required');
jQuery('#jform_password').removeAttr('aria-required');
jQuery('#jform_password').removeClass('required');
jform_vvvvwcrvyd_required = true;
}
}
}
// the vvvvwcr Some function
function protocol_vvvvwcr_SomeFunc(protocol_vvvvwcr)
{
// set the function logic
if (authentication_vvvvwcq == 1 || authentication_vvvvwcq == 3 || authentication_vvvvwcq == 5)
if (protocol_vvvvwcr == 2)
{
return true;
}
return false;
}
// the vvvvwcs function
function vvvvwcs(protocol_vvvvwcs,authentication_vvvvwcs)
// the vvvvwcr Some function
function authentication_vvvvwcr_SomeFunc(authentication_vvvvwcr)
{
if (isSet(protocol_vvvvwcs) && protocol_vvvvwcs.constructor !== Array)
// set the function logic
if (authentication_vvvvwcr == 1 || authentication_vvvvwcr == 3 || authentication_vvvvwcr == 5)
{
var temp_vvvvwcs = protocol_vvvvwcs;
var protocol_vvvvwcs = [];
protocol_vvvvwcs.push(temp_vvvvwcs);
return true;
}
else if (!isSet(protocol_vvvvwcs))
{
var protocol_vvvvwcs = [];
}
var protocol = protocol_vvvvwcs.some(protocol_vvvvwcs_SomeFunc);
return false;
}
if (isSet(authentication_vvvvwcs) && authentication_vvvvwcs.constructor !== Array)
// the vvvvwct function
function vvvvwct(protocol_vvvvwct,authentication_vvvvwct)
{
if (isSet(protocol_vvvvwct) && protocol_vvvvwct.constructor !== Array)
{
var temp_vvvvwcs = authentication_vvvvwcs;
var authentication_vvvvwcs = [];
authentication_vvvvwcs.push(temp_vvvvwcs);
var temp_vvvvwct = protocol_vvvvwct;
var protocol_vvvvwct = [];
protocol_vvvvwct.push(temp_vvvvwct);
}
else if (!isSet(authentication_vvvvwcs))
else if (!isSet(protocol_vvvvwct))
{
var authentication_vvvvwcs = [];
var protocol_vvvvwct = [];
}
var authentication = authentication_vvvvwcs.some(authentication_vvvvwcs_SomeFunc);
var protocol = protocol_vvvvwct.some(protocol_vvvvwct_SomeFunc);
if (isSet(authentication_vvvvwct) && authentication_vvvvwct.constructor !== Array)
{
var temp_vvvvwct = authentication_vvvvwct;
var authentication_vvvvwct = [];
authentication_vvvvwct.push(temp_vvvvwct);
}
else if (!isSet(authentication_vvvvwct))
{
var authentication_vvvvwct = [];
}
var authentication = authentication_vvvvwct.some(authentication_vvvvwct_SomeFunc);
// set this function logic
@ -353,78 +353,78 @@ function vvvvwcs(protocol_vvvvwcs,authentication_vvvvwcs)
{
jQuery('#jform_private').closest('.control-group').show();
// add required attribute to private field
if (jform_vvvvwcsvye_required)
if (jform_vvvvwctvye_required)
{
updateFieldRequired('private',0);
jQuery('#jform_private').prop('required','required');
jQuery('#jform_private').attr('aria-required',true);
jQuery('#jform_private').addClass('required');
jform_vvvvwcsvye_required = false;
jform_vvvvwctvye_required = false;
}
}
else
{
jQuery('#jform_private').closest('.control-group').hide();
// remove required attribute from private field
if (!jform_vvvvwcsvye_required)
if (!jform_vvvvwctvye_required)
{
updateFieldRequired('private',1);
jQuery('#jform_private').removeAttr('required');
jQuery('#jform_private').removeAttr('aria-required');
jQuery('#jform_private').removeClass('required');
jform_vvvvwcsvye_required = true;
jform_vvvvwctvye_required = true;
}
}
}
// the vvvvwcs Some function
function protocol_vvvvwcs_SomeFunc(protocol_vvvvwcs)
// the vvvvwct Some function
function protocol_vvvvwct_SomeFunc(protocol_vvvvwct)
{
// set the function logic
if (protocol_vvvvwcs == 2)
if (protocol_vvvvwct == 2)
{
return true;
}
return false;
}
// the vvvvwcs Some function
function authentication_vvvvwcs_SomeFunc(authentication_vvvvwcs)
// the vvvvwct Some function
function authentication_vvvvwct_SomeFunc(authentication_vvvvwct)
{
// set the function logic
if (authentication_vvvvwcs == 2 || authentication_vvvvwcs == 3)
if (authentication_vvvvwct == 2 || authentication_vvvvwct == 3)
{
return true;
}
return false;
}
// the vvvvwcu function
function vvvvwcu(protocol_vvvvwcu,authentication_vvvvwcu)
// the vvvvwcv function
function vvvvwcv(protocol_vvvvwcv,authentication_vvvvwcv)
{
if (isSet(protocol_vvvvwcu) && protocol_vvvvwcu.constructor !== Array)
if (isSet(protocol_vvvvwcv) && protocol_vvvvwcv.constructor !== Array)
{
var temp_vvvvwcu = protocol_vvvvwcu;
var protocol_vvvvwcu = [];
protocol_vvvvwcu.push(temp_vvvvwcu);
var temp_vvvvwcv = protocol_vvvvwcv;
var protocol_vvvvwcv = [];
protocol_vvvvwcv.push(temp_vvvvwcv);
}
else if (!isSet(protocol_vvvvwcu))
else if (!isSet(protocol_vvvvwcv))
{
var protocol_vvvvwcu = [];
var protocol_vvvvwcv = [];
}
var protocol = protocol_vvvvwcu.some(protocol_vvvvwcu_SomeFunc);
var protocol = protocol_vvvvwcv.some(protocol_vvvvwcv_SomeFunc);
if (isSet(authentication_vvvvwcu) && authentication_vvvvwcu.constructor !== Array)
if (isSet(authentication_vvvvwcv) && authentication_vvvvwcv.constructor !== Array)
{
var temp_vvvvwcu = authentication_vvvvwcu;
var authentication_vvvvwcu = [];
authentication_vvvvwcu.push(temp_vvvvwcu);
var temp_vvvvwcv = authentication_vvvvwcv;
var authentication_vvvvwcv = [];
authentication_vvvvwcv.push(temp_vvvvwcv);
}
else if (!isSet(authentication_vvvvwcu))
else if (!isSet(authentication_vvvvwcv))
{
var authentication_vvvvwcu = [];
var authentication_vvvvwcv = [];
}
var authentication = authentication_vvvvwcu.some(authentication_vvvvwcu_SomeFunc);
var authentication = authentication_vvvvwcv.some(authentication_vvvvwcv_SomeFunc);
// set this function logic
@ -432,78 +432,78 @@ function vvvvwcu(protocol_vvvvwcu,authentication_vvvvwcu)
{
jQuery('#jform_private_key').closest('.control-group').show();
// add required attribute to private_key field
if (jform_vvvvwcuvyf_required)
if (jform_vvvvwcvvyf_required)
{
updateFieldRequired('private_key',0);
jQuery('#jform_private_key').prop('required','required');
jQuery('#jform_private_key').attr('aria-required',true);
jQuery('#jform_private_key').addClass('required');
jform_vvvvwcuvyf_required = false;
jform_vvvvwcvvyf_required = false;
}
}
else
{
jQuery('#jform_private_key').closest('.control-group').hide();
// remove required attribute from private_key field
if (!jform_vvvvwcuvyf_required)
if (!jform_vvvvwcvvyf_required)
{
updateFieldRequired('private_key',1);
jQuery('#jform_private_key').removeAttr('required');
jQuery('#jform_private_key').removeAttr('aria-required');
jQuery('#jform_private_key').removeClass('required');
jform_vvvvwcuvyf_required = true;
jform_vvvvwcvvyf_required = true;
}
}
}
// the vvvvwcu Some function
function protocol_vvvvwcu_SomeFunc(protocol_vvvvwcu)
// the vvvvwcv Some function
function protocol_vvvvwcv_SomeFunc(protocol_vvvvwcv)
{
// set the function logic
if (protocol_vvvvwcu == 2)
if (protocol_vvvvwcv == 2)
{
return true;
}
return false;
}
// the vvvvwcu Some function
function authentication_vvvvwcu_SomeFunc(authentication_vvvvwcu)
// the vvvvwcv Some function
function authentication_vvvvwcv_SomeFunc(authentication_vvvvwcv)
{
// set the function logic
if (authentication_vvvvwcu == 4 || authentication_vvvvwcu == 5)
if (authentication_vvvvwcv == 4 || authentication_vvvvwcv == 5)
{
return true;
}
return false;
}
// the vvvvwcw function
function vvvvwcw(protocol_vvvvwcw,authentication_vvvvwcw)
// the vvvvwcx function
function vvvvwcx(protocol_vvvvwcx,authentication_vvvvwcx)
{
if (isSet(protocol_vvvvwcw) && protocol_vvvvwcw.constructor !== Array)
if (isSet(protocol_vvvvwcx) && protocol_vvvvwcx.constructor !== Array)
{
var temp_vvvvwcw = protocol_vvvvwcw;
var protocol_vvvvwcw = [];
protocol_vvvvwcw.push(temp_vvvvwcw);
var temp_vvvvwcx = protocol_vvvvwcx;
var protocol_vvvvwcx = [];
protocol_vvvvwcx.push(temp_vvvvwcx);
}
else if (!isSet(protocol_vvvvwcw))
else if (!isSet(protocol_vvvvwcx))
{
var protocol_vvvvwcw = [];
var protocol_vvvvwcx = [];
}
var protocol = protocol_vvvvwcw.some(protocol_vvvvwcw_SomeFunc);
var protocol = protocol_vvvvwcx.some(protocol_vvvvwcx_SomeFunc);
if (isSet(authentication_vvvvwcw) && authentication_vvvvwcw.constructor !== Array)
if (isSet(authentication_vvvvwcx) && authentication_vvvvwcx.constructor !== Array)
{
var temp_vvvvwcw = authentication_vvvvwcw;
var authentication_vvvvwcw = [];
authentication_vvvvwcw.push(temp_vvvvwcw);
var temp_vvvvwcx = authentication_vvvvwcx;
var authentication_vvvvwcx = [];
authentication_vvvvwcx.push(temp_vvvvwcx);
}
else if (!isSet(authentication_vvvvwcw))
else if (!isSet(authentication_vvvvwcx))
{
var authentication_vvvvwcw = [];
var authentication_vvvvwcx = [];
}
var authentication = authentication_vvvvwcw.some(authentication_vvvvwcw_SomeFunc);
var authentication = authentication_vvvvwcx.some(authentication_vvvvwcx_SomeFunc);
// set this function logic
@ -517,22 +517,22 @@ function vvvvwcw(protocol_vvvvwcw,authentication_vvvvwcw)
}
}
// the vvvvwcw Some function
function protocol_vvvvwcw_SomeFunc(protocol_vvvvwcw)
// the vvvvwcx Some function
function protocol_vvvvwcx_SomeFunc(protocol_vvvvwcx)
{
// set the function logic
if (protocol_vvvvwcw == 2)
if (protocol_vvvvwcx == 2)
{
return true;
}
return false;
}
// the vvvvwcw Some function
function authentication_vvvvwcw_SomeFunc(authentication_vvvvwcw)
// the vvvvwcx Some function
function authentication_vvvvwcx_SomeFunc(authentication_vvvvwcx)
{
// set the function logic
if (authentication_vvvvwcw == 2 || authentication_vvvvwcw == 3 || authentication_vvvvwcw == 4 || authentication_vvvvwcw == 5)
if (authentication_vvvvwcx == 2 || authentication_vvvvwcx == 3 || authentication_vvvvwcx == 4 || authentication_vvvvwcx == 5)
{
return true;
}

View File

@ -11,45 +11,45 @@
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvvzq = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvzq(add_php_view_vvvvvzq);
var add_php_view_vvvvvzr = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvzr(add_php_view_vvvvvzr);
var add_php_jview_display_vvvvvzr = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
vvvvvzr(add_php_jview_display_vvvvvzr);
var add_php_jview_display_vvvvvzs = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
vvvvvzs(add_php_jview_display_vvvvvzs);
var add_php_jview_vvvvvzs = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
vvvvvzs(add_php_jview_vvvvvzs);
var add_php_jview_vvvvvzt = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
vvvvvzt(add_php_jview_vvvvvzt);
var add_php_document_vvvvvzt = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvzt(add_php_document_vvvvvzt);
var add_php_document_vvvvvzu = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvzu(add_php_document_vvvvvzu);
var add_css_document_vvvvvzu = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvvzu(add_css_document_vvvvvzu);
var add_css_document_vvvvvzv = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvvzv(add_css_document_vvvvvzv);
var add_javascript_file_vvvvvzv = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
vvvvvzv(add_javascript_file_vvvvvzv);
var add_javascript_file_vvvvvzw = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
vvvvvzw(add_javascript_file_vvvvvzw);
var add_js_document_vvvvvzw = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvvzw(add_js_document_vvvvvzw);
var add_js_document_vvvvvzx = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvvzx(add_js_document_vvvvvzx);
var add_css_vvvvvzx = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvzx(add_css_vvvvvzx);
var add_css_vvvvvzy = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvzy(add_css_vvvvvzy);
var add_php_ajax_vvvvvzy = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvzy(add_php_ajax_vvvvvzy);
var add_php_ajax_vvvvvzz = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvzz(add_php_ajax_vvvvvzz);
var add_custom_button_vvvvvzz = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvzz(add_custom_button_vvvvvzz);
var add_custom_button_vvvvwaa = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvwaa(add_custom_button_vvvvwaa);
var button_position_vvvvwaa = jQuery("#jform_button_position").val();
vvvvwaa(button_position_vvvvwaa);
var button_position_vvvvwab = jQuery("#jform_button_position").val();
vvvvwab(button_position_vvvvwab);
});
// the vvvvvzq function
function vvvvvzq(add_php_view_vvvvvzq)
// the vvvvvzr function
function vvvvvzr(add_php_view_vvvvvzr)
{
// set the function logic
if (add_php_view_vvvvvzq == 1)
if (add_php_view_vvvvvzr == 1)
{
jQuery('#jform_php_view-lbl').closest('.control-group').show();
}
@ -59,11 +59,11 @@ function vvvvvzq(add_php_view_vvvvvzq)
}
}
// the vvvvvzr function
function vvvvvzr(add_php_jview_display_vvvvvzr)
// the vvvvvzs function
function vvvvvzs(add_php_jview_display_vvvvvzs)
{
// set the function logic
if (add_php_jview_display_vvvvvzr == 1)
if (add_php_jview_display_vvvvvzs == 1)
{
jQuery('#jform_php_jview_display-lbl').closest('.control-group').show();
}
@ -73,11 +73,11 @@ function vvvvvzr(add_php_jview_display_vvvvvzr)
}
}
// the vvvvvzs function
function vvvvvzs(add_php_jview_vvvvvzs)
// the vvvvvzt function
function vvvvvzt(add_php_jview_vvvvvzt)
{
// set the function logic
if (add_php_jview_vvvvvzs == 1)
if (add_php_jview_vvvvvzt == 1)
{
jQuery('#jform_php_jview-lbl').closest('.control-group').show();
}
@ -87,11 +87,11 @@ function vvvvvzs(add_php_jview_vvvvvzs)
}
}
// the vvvvvzt function
function vvvvvzt(add_php_document_vvvvvzt)
// the vvvvvzu function
function vvvvvzu(add_php_document_vvvvvzu)
{
// set the function logic
if (add_php_document_vvvvvzt == 1)
if (add_php_document_vvvvvzu == 1)
{
jQuery('#jform_php_document-lbl').closest('.control-group').show();
}
@ -101,11 +101,11 @@ function vvvvvzt(add_php_document_vvvvvzt)
}
}
// the vvvvvzu function
function vvvvvzu(add_css_document_vvvvvzu)
// the vvvvvzv function
function vvvvvzv(add_css_document_vvvvvzv)
{
// set the function logic
if (add_css_document_vvvvvzu == 1)
if (add_css_document_vvvvvzv == 1)
{
jQuery('#jform_css_document-lbl').closest('.control-group').show();
}
@ -115,11 +115,11 @@ function vvvvvzu(add_css_document_vvvvvzu)
}
}
// the vvvvvzv function
function vvvvvzv(add_javascript_file_vvvvvzv)
// the vvvvvzw function
function vvvvvzw(add_javascript_file_vvvvvzw)
{
// set the function logic
if (add_javascript_file_vvvvvzv == 1)
if (add_javascript_file_vvvvvzw == 1)
{
jQuery('#jform_javascript_file-lbl').closest('.control-group').show();
}
@ -129,11 +129,11 @@ function vvvvvzv(add_javascript_file_vvvvvzv)
}
}
// the vvvvvzw function
function vvvvvzw(add_js_document_vvvvvzw)
// the vvvvvzx function
function vvvvvzx(add_js_document_vvvvvzx)
{
// set the function logic
if (add_js_document_vvvvvzw == 1)
if (add_js_document_vvvvvzx == 1)
{
jQuery('#jform_js_document-lbl').closest('.control-group').show();
}
@ -143,11 +143,11 @@ function vvvvvzw(add_js_document_vvvvvzw)
}
}
// the vvvvvzx function
function vvvvvzx(add_css_vvvvvzx)
// the vvvvvzy function
function vvvvvzy(add_css_vvvvvzy)
{
// set the function logic
if (add_css_vvvvvzx == 1)
if (add_css_vvvvvzy == 1)
{
jQuery('#jform_css-lbl').closest('.control-group').show();
}
@ -157,11 +157,11 @@ function vvvvvzx(add_css_vvvvvzx)
}
}
// the vvvvvzy function
function vvvvvzy(add_php_ajax_vvvvvzy)
// the vvvvvzz function
function vvvvvzz(add_php_ajax_vvvvvzz)
{
// set the function logic
if (add_php_ajax_vvvvvzy == 1)
if (add_php_ajax_vvvvvzz == 1)
{
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show();
@ -173,11 +173,11 @@ function vvvvvzy(add_php_ajax_vvvvvzy)
}
}
// the vvvvvzz function
function vvvvvzz(add_custom_button_vvvvvzz)
// the vvvvwaa function
function vvvvwaa(add_custom_button_vvvvwaa)
{
// set the function logic
if (add_custom_button_vvvvvzz == 1)
if (add_custom_button_vvvvwaa == 1)
{
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
jQuery('#jform_php_controller-lbl').closest('.control-group').show();
@ -191,20 +191,20 @@ function vvvvvzz(add_custom_button_vvvvvzz)
}
}
// the vvvvwaa function
function vvvvwaa(button_position_vvvvwaa)
// the vvvvwab function
function vvvvwab(button_position_vvvvwab)
{
if (isSet(button_position_vvvvwaa) && button_position_vvvvwaa.constructor !== Array)
if (isSet(button_position_vvvvwab) && button_position_vvvvwab.constructor !== Array)
{
var temp_vvvvwaa = button_position_vvvvwaa;
var button_position_vvvvwaa = [];
button_position_vvvvwaa.push(temp_vvvvwaa);
var temp_vvvvwab = button_position_vvvvwab;
var button_position_vvvvwab = [];
button_position_vvvvwab.push(temp_vvvvwab);
}
else if (!isSet(button_position_vvvvwaa))
else if (!isSet(button_position_vvvvwab))
{
var button_position_vvvvwaa = [];
var button_position_vvvvwab = [];
}
var button_position = button_position_vvvvwaa.some(button_position_vvvvwaa_SomeFunc);
var button_position = button_position_vvvvwab.some(button_position_vvvvwab_SomeFunc);
// set this function logic
@ -218,11 +218,11 @@ function vvvvwaa(button_position_vvvvwaa)
}
}
// the vvvvwaa Some function
function button_position_vvvvwaa_SomeFunc(button_position_vvvvwaa)
// the vvvvwab Some function
function button_position_vvvvwab_SomeFunc(button_position_vvvvwab)
{
// set the function logic
if (button_position_vvvvwaa == 5)
if (button_position_vvvvwab == 5)
{
return true;
}

View File

@ -11,15 +11,15 @@
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvwab = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvwab(add_php_view_vvvvwab);
var add_php_view_vvvvwac = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvwac(add_php_view_vvvvwac);
});
// the vvvvwab function
function vvvvwab(add_php_view_vvvvwab)
// the vvvvwac function
function vvvvwac(add_php_view_vvvvwac)
{
// set the function logic
if (add_php_view_vvvvwab == 1)
if (add_php_view_vvvvwac == 1)
{
jQuery('#jform_php_view-lbl').closest('.control-group').show();
}

View File

@ -27,8 +27,8 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin
protected $tabLayoutFields = array(
'code' => array(
'left' => array(
'note_beta_stage',
'name',
'description',
'class_extends',
'joomla_plugin_group',
'add_head',
@ -45,7 +45,8 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin
'not_required'
),
'above' => array(
'system_name'
'system_name',
'plugin_version'
)
),
'mysql' => array(
@ -58,6 +59,8 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin
),
'script_file' => array(
'fullwidth' => array(
'add_php_script_construct',
'php_script_construct',
'add_php_preflight_install',
'php_preflight_install',
'add_php_preflight_update',
@ -172,12 +175,6 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin
$item->metadata = $registry->toArray();
}
if (!empty($item->sql_uninstall))
{
// base64 Decode sql_uninstall.
$item->sql_uninstall = base64_decode($item->sql_uninstall);
}
if (!empty($item->sql))
{
// base64 Decode sql.
@ -202,24 +199,36 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin
$item->php_postflight_install = base64_decode($item->php_postflight_install);
}
if (!empty($item->readme))
{
// base64 Decode readme.
$item->readme = base64_decode($item->readme);
}
if (!empty($item->head))
{
// base64 Decode head.
$item->head = base64_decode($item->head);
}
if (!empty($item->sql_uninstall))
{
// base64 Decode sql_uninstall.
$item->sql_uninstall = base64_decode($item->sql_uninstall);
}
if (!empty($item->readme))
{
// base64 Decode readme.
$item->readme = base64_decode($item->readme);
}
if (!empty($item->main_class_code))
{
// base64 Decode main_class_code.
$item->main_class_code = base64_decode($item->main_class_code);
}
if (!empty($item->php_script_construct))
{
// base64 Decode php_script_construct.
$item->php_script_construct = base64_decode($item->php_script_construct);
}
if (!empty($item->php_preflight_install))
{
// base64 Decode php_preflight_install.
@ -630,7 +639,29 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin
if (!parent::delete($pks))
{
return false;
}
// we must also delete the linked tables found
if (ComponentbuilderHelper::checkArray($pks))
{
// linked tables to update
$_tablesArray = array(
'joomla_plugin_updates' => 'joomla_plugin',
'joomla_plugin_files_folders_urls' => 'joomla_plugin'
);
foreach($_tablesArray as $_updateTable => $_key)
{
// get the linked IDs
if ($_pks = ComponentbuilderHelper::getVars($_updateTable, $pks, $_key, 'id'))
{
// load the model
$_Model = ComponentbuilderHelper::getModel($_updateTable);
// change publish state
$_Model->delete($_pks);
}
}
}
return true;
}
@ -650,7 +681,29 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin
if (!parent::publish($pks, $value))
{
return false;
}
// we must also update all linked tables
if (ComponentbuilderHelper::checkArray($pks))
{
// linked tables to update
$_tablesArray = array(
'joomla_plugin_updates' => 'joomla_plugin',
'joomla_plugin_files_folders_urls' => 'joomla_plugin'
);
foreach($_tablesArray as $_updateTable => $_key)
{
// get the linked IDs
if ($_pks = ComponentbuilderHelper::getVars($_updateTable, $pks, $_key, 'id'))
{
// load the model
$_Model = ComponentbuilderHelper::getModel($_updateTable);
// change publish state
$_Model->publish($_pks, $value);
}
}
}
return true;
}
@ -1072,12 +1125,6 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin
$data['fields'] = '';
}
// Set the sql_uninstall string to base64 string.
if (isset($data['sql_uninstall']))
{
$data['sql_uninstall'] = base64_encode($data['sql_uninstall']);
}
// Set the sql string to base64 string.
if (isset($data['sql']))
{
@ -1102,24 +1149,36 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin
$data['php_postflight_install'] = base64_encode($data['php_postflight_install']);
}
// Set the readme string to base64 string.
if (isset($data['readme']))
{
$data['readme'] = base64_encode($data['readme']);
}
// Set the head string to base64 string.
if (isset($data['head']))
{
$data['head'] = base64_encode($data['head']);
}
// Set the sql_uninstall string to base64 string.
if (isset($data['sql_uninstall']))
{
$data['sql_uninstall'] = base64_encode($data['sql_uninstall']);
}
// Set the readme string to base64 string.
if (isset($data['readme']))
{
$data['readme'] = base64_encode($data['readme']);
}
// Set the main_class_code string to base64 string.
if (isset($data['main_class_code']))
{
$data['main_class_code'] = base64_encode($data['main_class_code']);
}
// Set the php_script_construct string to base64 string.
if (isset($data['php_script_construct']))
{
$data['php_script_construct'] = base64_encode($data['php_script_construct']);
}
// Set the php_preflight_install string to base64 string.
if (isset($data['php_preflight_install']))
{

View File

@ -0,0 +1,880 @@
<?php
/**
* @package Joomla.Component.Builder
*
* @created 30th April, 2015
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
* @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\Registry\Registry;
/**
* Componentbuilder Joomla_plugin_updates Model
*/
class ComponentbuilderModelJoomla_plugin_updates extends JModelAdmin
{
/**
* The tab layout fields array.
*
* @var array
*/
protected $tabLayoutFields = array(
'updates' => array(
'fullwidth' => array(
'version_update'
),
'above' => array(
'joomla_plugin'
)
)
);
/**
* @var string The prefix to use with controller messages.
* @since 1.6
*/
protected $text_prefix = 'COM_COMPONENTBUILDER';
/**
* The type alias for this content type.
*
* @var string
* @since 3.2
*/
public $typeAlias = 'com_componentbuilder.joomla_plugin_updates';
/**
* Returns a Table object, always creating it
*
* @param type $type The table type to instantiate
* @param string $prefix A prefix for the table class name. Optional.
* @param array $config Configuration array for model. Optional.
*
* @return JTable A database object
*
* @since 1.6
*/
public function getTable($type = 'joomla_plugin_updates', $prefix = 'ComponentbuilderTable', $config = array())
{
// add table path for when model gets used from other component
$this->addTablePath(JPATH_ADMINISTRATOR . '/components/com_componentbuilder/tables');
// get instance of the table
return JTable::getInstance($type, $prefix, $config);
}
/**
* Method to get a single record.
*
* @param integer $pk The id of the primary key.
*
* @return mixed Object on success, false on failure.
*
* @since 1.6
*/
public function getItem($pk = null)
{
if ($item = parent::getItem($pk))
{
if (!empty($item->params) && !is_array($item->params))
{
// Convert the params field to an array.
$registry = new Registry;
$registry->loadString($item->params);
$item->params = $registry->toArray();
}
if (!empty($item->metadata))
{
// Convert the metadata field to an array.
$registry = new Registry;
$registry->loadString($item->metadata);
$item->metadata = $registry->toArray();
}
if (!empty($item->version_update))
{
// Convert the version_update field to an array.
$version_update = new Registry;
$version_update->loadString($item->version_update);
$item->version_update = $version_update->toArray();
}
if (!empty($item->id))
{
$item->tags = new JHelperTags;
$item->tags->getTagIds($item->id, 'com_componentbuilder.joomla_plugin_updates');
}
}
return $item;
}
/**
* Method to get the record form.
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @param array $options Optional array of options for the form creation.
*
* @return mixed A JForm object on success, false on failure
*
* @since 1.6
*/
public function getForm($data = array(), $loadData = true, $options = array('control' => 'jform'))
{
// set load data option
$options['load_data'] = $loadData;
// Get the form.
$form = $this->loadForm('com_componentbuilder.joomla_plugin_updates', 'joomla_plugin_updates', $options);
if (empty($form))
{
return false;
}
$jinput = JFactory::getApplication()->input;
// The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
if ($jinput->get('a_id'))
{
$id = $jinput->get('a_id', 0, 'INT');
}
// The back end uses id so we use that the rest of the time and set it to 0 by default.
else
{
$id = $jinput->get('id', 0, 'INT');
}
$user = JFactory::getUser();
// Check for existing item.
// Modify the form based on Edit State access controls.
if ($id != 0 && (!$user->authorise('joomla_plugin_updates.edit.state', 'com_componentbuilder.joomla_plugin_updates.' . (int) $id))
|| ($id == 0 && !$user->authorise('joomla_plugin_updates.edit.state', 'com_componentbuilder')))
{
// Disable fields for display.
$form->setFieldAttribute('ordering', 'disabled', 'true');
$form->setFieldAttribute('published', 'disabled', 'true');
// Disable fields while saving.
$form->setFieldAttribute('ordering', 'filter', 'unset');
$form->setFieldAttribute('published', 'filter', 'unset');
}
// If this is a new item insure the greated by is set.
if (0 == $id)
{
// Set the created_by to this user
$form->setValue('created_by', null, $user->id);
}
// Modify the form based on Edit Creaded By access controls.
if ($id != 0 && (!$user->authorise('joomla_plugin_updates.edit.created_by', 'com_componentbuilder.joomla_plugin_updates.' . (int) $id))
|| ($id == 0 && !$user->authorise('joomla_plugin_updates.edit.created_by', 'com_componentbuilder')))
{
// Disable fields for display.
$form->setFieldAttribute('created_by', 'disabled', 'true');
// Disable fields for display.
$form->setFieldAttribute('created_by', 'readonly', 'true');
// Disable fields while saving.
$form->setFieldAttribute('created_by', 'filter', 'unset');
}
// Modify the form based on Edit Creaded Date access controls.
if ($id != 0 && (!$user->authorise('joomla_plugin_updates.edit.created', 'com_componentbuilder.joomla_plugin_updates.' . (int) $id))
|| ($id == 0 && !$user->authorise('joomla_plugin_updates.edit.created', 'com_componentbuilder')))
{
// Disable fields for display.
$form->setFieldAttribute('created', 'disabled', 'true');
// Disable fields while saving.
$form->setFieldAttribute('created', 'filter', 'unset');
}
// Only load these values if no id is found
if (0 == $id)
{
// Set redirected view name
$redirectedView = $jinput->get('ref', null, 'STRING');
// Set field name (or fall back to view name)
$redirectedField = $jinput->get('field', $redirectedView, 'STRING');
// Set redirected view id
$redirectedId = $jinput->get('refid', 0, 'INT');
// Set field id (or fall back to redirected view id)
$redirectedValue = $jinput->get('field_id', $redirectedId, 'INT');
if (0 != $redirectedValue && $redirectedField)
{
// Now set the local-redirected field default value
$form->setValue($redirectedField, null, $redirectedValue);
}
}
return $form;
}
/**
* Method to get the script that have to be included on the form
*
* @return string script files
*/
public function getScript()
{
return 'administrator/components/com_componentbuilder/models/forms/joomla_plugin_updates.js';
}
/**
* Method to test whether a record can be deleted.
*
* @param object $record A record object.
*
* @return boolean True if allowed to delete the record. Defaults to the permission set in the component.
*
* @since 1.6
*/
protected function canDelete($record)
{
if (!empty($record->id))
{
if ($record->published != -2)
{
return;
}
$user = JFactory::getUser();
// The record has been set. Check the record permissions.
return $user->authorise('joomla_plugin_updates.delete', 'com_componentbuilder.joomla_plugin_updates.' . (int) $record->id);
}
return false;
}
/**
* Method to test whether a record can have its state edited.
*
* @param object $record A record object.
*
* @return boolean True if allowed to change the state of the record. Defaults to the permission set in the component.
*
* @since 1.6
*/
protected function canEditState($record)
{
$user = JFactory::getUser();
$recordId = (!empty($record->id)) ? $record->id : 0;
if ($recordId)
{
// The record has been set. Check the record permissions.
$permission = $user->authorise('joomla_plugin_updates.edit.state', 'com_componentbuilder.joomla_plugin_updates.' . (int) $recordId);
if (!$permission && !is_null($permission))
{
return false;
}
}
// In the absense of better information, revert to the component permissions.
return $user->authorise('joomla_plugin_updates.edit.state', 'com_componentbuilder');
}
/**
* Method override to check if you can edit an existing record.
*
* @param array $data An array of input data.
* @param string $key The name of the key for the primary key.
*
* @return boolean
* @since 2.5
*/
protected function allowEdit($data = array(), $key = 'id')
{
// Check specific edit permission then general edit permission.
$user = JFactory::getUser();
return $user->authorise('joomla_plugin_updates.edit', 'com_componentbuilder.joomla_plugin_updates.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('joomla_plugin_updates.edit', 'com_componentbuilder');
}
/**
* Prepare and sanitise the table data prior to saving.
*
* @param JTable $table A JTable object.
*
* @return void
*
* @since 1.6
*/
protected function prepareTable($table)
{
$date = JFactory::getDate();
$user = JFactory::getUser();
if (isset($table->name))
{
$table->name = htmlspecialchars_decode($table->name, ENT_QUOTES);
}
if (isset($table->alias) && empty($table->alias))
{
$table->generateAlias();
}
if (empty($table->id))
{
$table->created = $date->toSql();
// set the user
if ($table->created_by == 0 || empty($table->created_by))
{
$table->created_by = $user->id;
}
// Set ordering to the last item if not set
if (empty($table->ordering))
{
$db = JFactory::getDbo();
$query = $db->getQuery(true)
->select('MAX(ordering)')
->from($db->quoteName('#__componentbuilder_joomla_plugin_updates'));
$db->setQuery($query);
$max = $db->loadResult();
$table->ordering = $max + 1;
}
}
else
{
$table->modified = $date->toSql();
$table->modified_by = $user->id;
}
if (!empty($table->id))
{
// Increment the items version number.
$table->version++;
}
}
/**
* Method to get the data that should be injected in the form.
*
* @return mixed The data for the form.
*
* @since 1.6
*/
protected function loadFormData()
{
// Check the session for previously entered form data.
$data = JFactory::getApplication()->getUserState('com_componentbuilder.edit.joomla_plugin_updates.data', array());
if (empty($data))
{
$data = $this->getItem();
}
return $data;
}
/**
* Method to get the unique fields of this table.
*
* @return mixed An array of field names, boolean false if none is set.
*
* @since 3.0
*/
protected function getUniqeFields()
{
return false;
}
/**
* Method to delete one or more records.
*
* @param array &$pks An array of record primary keys.
*
* @return boolean True if successful, false if an error occurs.
*
* @since 12.2
*/
public function delete(&$pks)
{
if (!parent::delete($pks))
{
return false;
}
return true;
}
/**
* Method to change the published state of one or more records.
*
* @param array &$pks A list of the primary keys to change.
* @param integer $value The value of the published state.
*
* @return boolean True on success.
*
* @since 12.2
*/
public function publish(&$pks, $value = 1)
{
if (!parent::publish($pks, $value))
{
return false;
}
return true;
}
/**
* Method to perform batch operations on an item or a set of items.
*
* @param array $commands An array of commands to perform.
* @param array $pks An array of item ids.
* @param array $contexts An array of item contexts.
*
* @return boolean Returns true on success, false on failure.
*
* @since 12.2
*/
public function batch($commands, $pks, $contexts)
{
// Sanitize ids.
$pks = array_unique($pks);
JArrayHelper::toInteger($pks);
// Remove any values of zero.
if (array_search(0, $pks, true))
{
unset($pks[array_search(0, $pks, true)]);
}
if (empty($pks))
{
$this->setError(JText::_('JGLOBAL_NO_ITEM_SELECTED'));
return false;
}
$done = false;
// Set some needed variables.
$this->user = JFactory::getUser();
$this->table = $this->getTable();
$this->tableClassName = get_class($this->table);
$this->contentType = new JUcmType;
$this->type = $this->contentType->getTypeByTable($this->tableClassName);
$this->canDo = ComponentbuilderHelper::getActions('joomla_plugin_updates');
$this->batchSet = true;
if (!$this->canDo->get('core.batch'))
{
$this->setError(JText::_('JLIB_APPLICATION_ERROR_INSUFFICIENT_BATCH_INFORMATION'));
return false;
}
if ($this->type == false)
{
$type = new JUcmType;
$this->type = $type->getTypeByAlias($this->typeAlias);
}
$this->tagsObserver = $this->table->getObserverOfClass('JTableObserverTags');
if (!empty($commands['move_copy']))
{
$cmd = JArrayHelper::getValue($commands, 'move_copy', 'c');
if ($cmd == 'c')
{
$result = $this->batchCopy($commands, $pks, $contexts);
if (is_array($result))
{
foreach ($result as $old => $new)
{
$contexts[$new] = $contexts[$old];
}
$pks = array_values($result);
}
else
{
return false;
}
}
elseif ($cmd == 'm' && !$this->batchMove($commands, $pks, $contexts))
{
return false;
}
$done = true;
}
if (!$done)
{
$this->setError(JText::_('JLIB_APPLICATION_ERROR_INSUFFICIENT_BATCH_INFORMATION'));
return false;
}
// Clear the cache
$this->cleanCache();
return true;
}
/**
* Batch copy items to a new category or current.
*
* @param integer $values The new values.
* @param array $pks An array of row IDs.
* @param array $contexts An array of item contexts.
*
* @return mixed An array of new IDs on success, boolean false on failure.
*
* @since 12.2
*/
protected function batchCopy($values, $pks, $contexts)
{
if (empty($this->batchSet))
{
// Set some needed variables.
$this->user = JFactory::getUser();
$this->table = $this->getTable();
$this->tableClassName = get_class($this->table);
$this->canDo = ComponentbuilderHelper::getActions('joomla_plugin_updates');
}
if (!$this->canDo->get('joomla_plugin_updates.create') && !$this->canDo->get('joomla_plugin_updates.batch'))
{
return false;
}
// get list of uniqe fields
$uniqeFields = $this->getUniqeFields();
// remove move_copy from array
unset($values['move_copy']);
// make sure published is set
if (!isset($values['published']))
{
$values['published'] = 0;
}
elseif (isset($values['published']) && !$this->canDo->get('joomla_plugin_updates.edit.state'))
{
$values['published'] = 0;
}
$newIds = array();
// Parent exists so let's proceed
while (!empty($pks))
{
// Pop the first ID off the stack
$pk = array_shift($pks);
$this->table->reset();
// only allow copy if user may edit this item.
if (!$this->user->authorise('joomla_plugin_updates.edit', $contexts[$pk]))
{
// Not fatal error
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
continue;
}
// Check that the row actually exists
if (!$this->table->load($pk))
{
if ($error = $this->table->getError())
{
// Fatal error
$this->setError($error);
return false;
}
else
{
// Not fatal error
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
continue;
}
}
// Only for strings
if (ComponentbuilderHelper::checkString($this->table->joomla_plugin) && !is_numeric($this->table->joomla_plugin))
{
$this->table->joomla_plugin = $this->generateUniqe('joomla_plugin',$this->table->joomla_plugin);
}
// insert all set values
if (ComponentbuilderHelper::checkArray($values))
{
foreach ($values as $key => $value)
{
if (strlen($value) > 0 && isset($this->table->$key))
{
$this->table->$key = $value;
}
}
}
// update all uniqe fields
if (ComponentbuilderHelper::checkArray($uniqeFields))
{
foreach ($uniqeFields as $uniqeField)
{
$this->table->$uniqeField = $this->generateUniqe($uniqeField,$this->table->$uniqeField);
}
}
// Reset the ID because we are making a copy
$this->table->id = 0;
// TODO: Deal with ordering?
// $this->table->ordering = 1;
// Check the row.
if (!$this->table->check())
{
$this->setError($this->table->getError());
return false;
}
if (!empty($this->type))
{
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
}
// Store the row.
if (!$this->table->store())
{
$this->setError($this->table->getError());
return false;
}
// Get the new item ID
$newId = $this->table->get('id');
// Add the new ID to the array
$newIds[$pk] = $newId;
}
// Clean the cache
$this->cleanCache();
return $newIds;
}
/**
* Batch move items to a new category
*
* @param integer $value The new category ID.
* @param array $pks An array of row IDs.
* @param array $contexts An array of item contexts.
*
* @return boolean True if successful, false otherwise and internal error is set.
*
* @since 12.2
*/
protected function batchMove($values, $pks, $contexts)
{
if (empty($this->batchSet))
{
// Set some needed variables.
$this->user = JFactory::getUser();
$this->table = $this->getTable();
$this->tableClassName = get_class($this->table);
$this->canDo = ComponentbuilderHelper::getActions('joomla_plugin_updates');
}
if (!$this->canDo->get('joomla_plugin_updates.edit') && !$this->canDo->get('joomla_plugin_updates.batch'))
{
$this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT'));
return false;
}
// make sure published only updates if user has the permission.
if (isset($values['published']) && !$this->canDo->get('joomla_plugin_updates.edit.state'))
{
unset($values['published']);
}
// remove move_copy from array
unset($values['move_copy']);
// Parent exists so we proceed
foreach ($pks as $pk)
{
if (!$this->user->authorise('joomla_plugin_updates.edit', $contexts[$pk]))
{
$this->setError(JText::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT'));
return false;
}
// Check that the row actually exists
if (!$this->table->load($pk))
{
if ($error = $this->table->getError())
{
// Fatal error
$this->setError($error);
return false;
}
else
{
// Not fatal error
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
continue;
}
}
// insert all set values.
if (ComponentbuilderHelper::checkArray($values))
{
foreach ($values as $key => $value)
{
// Do special action for access.
if ('access' === $key && strlen($value) > 0)
{
$this->table->$key = $value;
}
elseif (strlen($value) > 0 && isset($this->table->$key))
{
$this->table->$key = $value;
}
}
}
// Check the row.
if (!$this->table->check())
{
$this->setError($this->table->getError());
return false;
}
if (!empty($this->type))
{
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
}
// Store the row.
if (!$this->table->store())
{
$this->setError($this->table->getError());
return false;
}
}
// Clean the cache
$this->cleanCache();
return true;
}
/**
* Method to save the form data.
*
* @param array $data The form data.
*
* @return boolean True on success.
*
* @since 1.6
*/
public function save($data)
{
$input = JFactory::getApplication()->input;
$filter = JFilterInput::getInstance();
// set the metadata to the Item Data
if (isset($data['metadata']) && isset($data['metadata']['author']))
{
$data['metadata']['author'] = $filter->clean($data['metadata']['author'], 'TRIM');
$metadata = new JRegistry;
$metadata->loadArray($data['metadata']);
$data['metadata'] = (string) $metadata;
}
// Set the version_update items to data.
if (isset($data['version_update']) && is_array($data['version_update']))
{
$version_update = new JRegistry;
$version_update->loadArray($data['version_update']);
$data['version_update'] = (string) $version_update;
}
elseif (!isset($data['version_update']))
{
// Set the empty version_update to data
$data['version_update'] = '';
}
// Set the Params Items to data
if (isset($data['params']) && is_array($data['params']))
{
$params = new JRegistry;
$params->loadArray($data['params']);
$data['params'] = (string) $params;
}
// Alter the uniqe field for save as copy
if ($input->get('task') === 'save2copy')
{
// Automatic handling of other uniqe fields
$uniqeFields = $this->getUniqeFields();
if (ComponentbuilderHelper::checkArray($uniqeFields))
{
foreach ($uniqeFields as $uniqeField)
{
$data[$uniqeField] = $this->generateUniqe($uniqeField,$data[$uniqeField]);
}
}
}
if (parent::save($data))
{
return true;
}
return false;
}
/**
* Method to generate a uniqe value.
*
* @param string $field name.
* @param string $value data.
*
* @return string New value.
*
* @since 3.0
*/
protected function generateUniqe($field,$value)
{
// set field value uniqe
$table = $this->getTable();
while ($table->load(array($field => $value)))
{
$value = JString::increment($value);
}
return $value;
}
/**
* Method to change the title
*
* @param string $title The title.
*
* @return array Contains the modified title and alias.
*
*/
protected function _generateNewTitle($title)
{
// Alter the title
$table = $this->getTable();
while ($table->load(array('title' => $title)))
{
$title = JString::increment($title);
}
return $title;
}
}

View File

@ -363,7 +363,7 @@ class ComponentbuilderModelJoomla_plugins extends JModelList
else
{
$search = $db->quote('%' . $db->escape($search) . '%');
$query->where('(a.system_name LIKE '.$search.' OR a.class_extends LIKE '.$search.' OR g.name LIKE '.$search.' OR a.joomla_plugin_group LIKE '.$search.' OR h.name LIKE '.$search.' OR a.name LIKE '.$search.')');
$query->where('(a.system_name LIKE '.$search.' OR a.class_extends LIKE '.$search.' OR g.name LIKE '.$search.' OR a.joomla_plugin_group LIKE '.$search.' OR h.name LIKE '.$search.' OR a.description LIKE '.$search.' OR a.name LIKE '.$search.')');
}
}

View File

@ -0,0 +1,237 @@
<?php
/**
* @package Joomla.Component.Builder
*
* @created 30th April, 2015
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
* @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
/**
* Joomla_plugins_updates Model
*/
class ComponentbuilderModelJoomla_plugins_updates extends JModelList
{
public function __construct($config = array())
{
if (empty($config['filter_fields']))
{
$config['filter_fields'] = array(
'a.id','id',
'a.published','published',
'a.ordering','ordering',
'a.created_by','created_by',
'a.modified_by','modified_by'
);
}
parent::__construct($config);
}
/**
* Method to auto-populate the model state.
*
* @return void
*/
protected function populateState($ordering = null, $direction = null)
{
$app = JFactory::getApplication();
// Adjust the context to support modal layouts.
if ($layout = $app->input->get('layout'))
{
$this->context .= '.' . $layout;
}
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
$this->setState('filter.sorting', $sorting);
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
$this->setState('filter.access', $access);
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
$this->setState('filter.search', $search);
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
$this->setState('filter.published', $published);
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
$this->setState('filter.created_by', $created_by);
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
$this->setState('filter.created', $created);
// List state information.
parent::populateState($ordering, $direction);
}
/**
* Method to get an array of data items.
*
* @return mixed An array of data items on success, false on failure.
*/
public function getItems()
{
// check in items
$this->checkInNow();
// load parent items
$items = parent::getItems();
// set values to display correctly.
if (ComponentbuilderHelper::checkArray($items))
{
foreach ($items as $nr => &$item)
{
$access = (JFactory::getUser()->authorise('joomla_plugin_updates.access', 'com_componentbuilder.joomla_plugin_updates.' . (int) $item->id) && JFactory::getUser()->authorise('joomla_plugin_updates.access', 'com_componentbuilder'));
if (!$access)
{
unset($items[$nr]);
continue;
}
}
}
// return items
return $items;
}
/**
* Method to build an SQL query to load the list data.
*
* @return string An SQL query
*/
protected function getListQuery()
{
// Get the user object.
$user = JFactory::getUser();
// Create a new query object.
$db = JFactory::getDBO();
$query = $db->getQuery(true);
// Select some fields
$query->select('a.*');
// From the componentbuilder_item table
$query->from($db->quoteName('#__componentbuilder_joomla_plugin_updates', 'a'));
// From the componentbuilder_joomla_plugin table.
$query->select($db->quoteName('g.system_name','joomla_plugin_system_name'));
$query->join('LEFT', $db->quoteName('#__componentbuilder_joomla_plugin', 'g') . ' ON (' . $db->quoteName('a.joomla_plugin') . ' = ' . $db->quoteName('g.id') . ')');
// Filter by published state
$published = $this->getState('filter.published');
if (is_numeric($published))
{
$query->where('a.published = ' . (int) $published);
}
elseif ($published === '')
{
$query->where('(a.published = 0 OR a.published = 1)');
}
// Join over the asset groups.
$query->select('ag.title AS access_level');
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
// Filter by access level.
if ($access = $this->getState('filter.access'))
{
$query->where('a.access = ' . (int) $access);
}
// Implement View Level Access
if (!$user->authorise('core.options', 'com_componentbuilder'))
{
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')');
}
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'asc');
if ($orderCol != '')
{
$query->order($db->escape($orderCol . ' ' . $orderDirn));
}
return $query;
}
/**
* Method to get a store id based on model configuration state.
*
* @return string A store id.
*
*/
protected function getStoreId($id = '')
{
// Compile the store id.
$id .= ':' . $this->getState('filter.id');
$id .= ':' . $this->getState('filter.search');
$id .= ':' . $this->getState('filter.published');
$id .= ':' . $this->getState('filter.ordering');
$id .= ':' . $this->getState('filter.created_by');
$id .= ':' . $this->getState('filter.modified_by');
return parent::getStoreId($id);
}
/**
* Build an SQL query to checkin all items left checked out longer then a set time.
*
* @return a bool
*
*/
protected function checkInNow()
{
// Get set check in time
$time = JComponentHelper::getParams('com_componentbuilder')->get('check_in');
if ($time)
{
// Get a db connection.
$db = JFactory::getDbo();
// reset query
$query = $db->getQuery(true);
$query->select('*');
$query->from($db->quoteName('#__componentbuilder_joomla_plugin_updates'));
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
// Get Yesterdays date
$date = JFactory::getDate()->modify($time)->toSql();
// reset query
$query = $db->getQuery(true);
// Fields to update.
$fields = array(
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
$db->quoteName('checked_out') . '=0'
);
// Conditions for which records should be updated.
$conditions = array(
$db->quoteName('checked_out') . '!=0',
$db->quoteName('checked_out_time') . '<\''.$date.'\''
);
// Check table
$query->update($db->quoteName('#__componentbuilder_joomla_plugin_updates'))->set($fields)->where($conditions);
$db->setQuery($query);
$db->execute();
}
}
return false;
}
}