Added Joomla Module builder - GUI

This commit is contained in:
2019-12-03 04:17:35 +02:00
parent 850ee4b7e9
commit ffbb733576
161 changed files with 18943 additions and 3699 deletions

View File

@ -2368,7 +2368,7 @@ class ComponentbuilderModelAjax extends JModelList
'search' => array('id', 'system_name', 'php_preflight_install', 'php_postflight_install',
'php_preflight_update', 'php_postflight_update', 'php_method_uninstall',
'php_helper_admin', 'php_admin_event', 'php_helper_both', 'php_helper_site',
'php_site_event', 'javascript'),
'php_site_event', 'javascript', 'readme', 'sql', 'sql_uninstall'),
'views' => 'joomla_components',
'not_base64' => array(),
'name' => 'system_name'

View File

@ -25,7 +25,7 @@ class ComponentbuilderModelComponentbuilder extends JModelList
$icons = array();
// view groups array
$viewGroups = array(
'main' => array('png.compiler', 'png.joomla_components', 'png.joomla_plugins', 'png.admin_view.add', 'png.admin_views', 'png||importjcbpackages||index.php?option=com_componentbuilder&view=joomla_components&task=joomla_components.smartImport', 'png.custom_admin_view.add', 'png.custom_admin_views', 'png.site_view.add', 'png.site_views', 'png.template.add', 'png.templates', 'png.layout.add', 'png.layouts', 'png.dynamic_get.add', 'png.dynamic_gets', 'png.custom_codes', 'png.placeholders', 'png.libraries', 'png.snippets', 'png.get_snippets', 'png.validation_rules', 'png.field.add', 'png.fields', 'png.fields.catid', 'png.fieldtypes', 'png.fieldtypes.catid', 'png.language_translations', 'png.servers', 'png.help_documents')
'main' => array('png.compiler', 'png.joomla_components', 'png.joomla_modules', 'png.joomla_plugins', 'png||importjcbpackages||index.php?option=com_componentbuilder&view=joomla_components&task=joomla_components.smartImport', 'png.admin_view.add', 'png.admin_views', 'png.custom_admin_view.add', 'png.custom_admin_views', 'png.site_view.add', 'png.site_views', 'png.template.add', 'png.templates', 'png.layouts', 'png.dynamic_get.add', 'png.dynamic_gets', 'png.custom_codes', 'png.placeholders', 'png.libraries', 'png.snippets', 'png.get_snippets', 'png.validation_rules', 'png.field.add', 'png.fields', 'png.fields.catid', 'png.fieldtypes', 'png.fieldtypes.catid', 'png.language_translations', 'png.servers', 'png.help_documents')
);
// view access array
$viewAccess = array(
@ -38,6 +38,11 @@ class ComponentbuilderModelComponentbuilder extends JModelList
'joomla_component.access' => 'joomla_component.access',
'joomla_components.submenu' => 'joomla_component.submenu',
'joomla_components.dashboard_list' => 'joomla_component.dashboard_list',
'joomla_module.create' => 'joomla_module.create',
'joomla_modules.access' => 'joomla_module.access',
'joomla_module.access' => 'joomla_module.access',
'joomla_modules.submenu' => 'joomla_module.submenu',
'joomla_modules.dashboard_list' => 'joomla_module.dashboard_list',
'joomla_plugin.create' => 'joomla_plugin.create',
'joomla_plugins.access' => 'joomla_plugin.access',
'joomla_plugin.access' => 'joomla_plugin.access',
@ -68,7 +73,6 @@ class ComponentbuilderModelComponentbuilder extends JModelList
'layout.access' => 'layout.access',
'layouts.submenu' => 'layout.submenu',
'layouts.dashboard_list' => 'layout.dashboard_list',
'layout.dashboard_add' => 'layout.dashboard_add',
'dynamic_get.create' => 'dynamic_get.create',
'dynamic_gets.access' => 'dynamic_get.access',
'dynamic_get.access' => 'dynamic_get.access',
@ -192,6 +196,12 @@ class ComponentbuilderModelComponentbuilder extends JModelList
'class_extends.create' => 'class_extends.create',
'class_extendings.access' => 'class_extends.access',
'class_extends.access' => 'class_extends.access',
'joomla_module_updates.create' => 'joomla_module_updates.create',
'joomla_modules_updates.access' => 'joomla_module_updates.access',
'joomla_module_updates.access' => 'joomla_module_updates.access',
'joomla_module_files_folders_urls.create' => 'joomla_module_files_folders_urls.create',
'joomla_modules_files_folders_urls.access' => 'joomla_module_files_folders_urls.access',
'joomla_module_files_folders_urls.access' => 'joomla_module_files_folders_urls.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',
@ -497,7 +507,7 @@ class ComponentbuilderModelComponentbuilder extends JModelList
$document->addScript(JURI::root() . "media/com_componentbuilder/js/marked.js");
$document->addScriptDeclaration('
var token = "'.JSession::getFormToken().'";
var noticeboard = "https://www.vdm.io/componentbuilder-noticeboard-md";
var noticeboard = "https://vdm.bz/componentbuilder-noticeboard-md";
jQuery(document).ready(function () {
jQuery.get(noticeboard)
.success(function(board) {
@ -532,9 +542,9 @@ class ComponentbuilderModelComponentbuilder extends JModelList
// to check is READ/NEW
function getIS(type,notice){
if(type == 1){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.isNew&format=json";
var getUrl = "index.php?option=com_componentbuilder&task=ajax.isNew&format=json&raw=true";
} else if (type == 2) {
var getUrl = "index.php?option=com_componentbuilder&task=ajax.isRead&format=json";
var getUrl = "index.php?option=com_componentbuilder&task=ajax.isRead&format=json&raw=true";
}
if(token.length > 0 && notice.length){
var request = "token="+token+"&notice="+notice;
@ -542,9 +552,9 @@ class ComponentbuilderModelComponentbuilder extends JModelList
return jQuery.ajax({
type: "POST",
url: getUrl,
dataType: "jsonp",
dataType: "json",
data: request,
jsonp: "callback"
jsonp: false
});
}
@ -564,6 +574,29 @@ jQuery(document).ready( function($) {
return '<div id="noticeboard-md">'.JText::_('COM_COMPONENTBUILDER_THE_NOTICE_BOARD_IS_LOADING').'.<span class="loading-dots">.</span></small></div>';
}
public function getProboard()
{
// get the document to load the scripts
$document = JFactory::getDocument();
$document->addScriptDeclaration('
var proboard = "https://vdm.bz/componentbuilder-pro-noticeboard-md";
jQuery(document).ready(function () {
jQuery.get(proboard)
.success(function(board) {
if (board.length > 5) {
jQuery("#proboard-md").html(marked(board));
} else {
jQuery("#proboard-md").html("'.JText::_('COM_COMPONENTBUILDER_ALL_IS_GOOD_PLEASE_CHECK_AGAIN_LATTER').'");
}
})
.error(function(jqXHR, textStatus, errorThrown) {
jQuery("#proboard-md").html("'.JText::_('COM_COMPONENTBUILDER_ALL_IS_GOOD_PLEASE_CHECK_AGAIN_LATTER').'");
});
});');
return '<div id="proboard-md">'.JText::_('COM_COMPONENTBUILDER_THE_PRO_BOARD_IS_LOADING').'.<span class="loading-dots">.</span></small></div>';
}
public function getReadme()
{
$document = JFactory::getDocument();

View File

@ -35,22 +35,23 @@ class JFormFieldComponents extends JFormFieldList
*/
protected function getOptions()
{
$db = JFactory::getDBO();
$query = $db->getQuery(true);
$query->select($db->quoteName(array('a.id','a.system_name'),array('id','components_system_name')));
$query->from($db->quoteName('#__componentbuilder_joomla_component', 'a'));
$query->where($db->quoteName('a.published') . ' >= 1');
$query->order('a.system_name ASC');
$db->setQuery((string)$query);
$items = $db->loadObjectList();
$options = array();
if ($items)
{
foreach($items as $item)
{
$options[] = JHtml::_('select.option', $item->id, $item->components_system_name);
}
}
$db = JFactory::getDBO();
$query = $db->getQuery(true);
$query->select($db->quoteName(array('a.id','a.system_name'),array('id','components_system_name')));
$query->from($db->quoteName('#__componentbuilder_joomla_component', 'a'));
$query->where($db->quoteName('a.published') . ' >= 1');
$query->order('a.system_name ASC');
$db->setQuery((string)$query);
$items = $db->loadObjectList();
$options = array();
if ($items)
{
foreach($items as $item)
{
$options[] = JHtml::_('select.option', $item->id, $item->components_system_name);
}
}
return $options;
}
}

View File

@ -0,0 +1,71 @@
<?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');
// import the list field type
jimport('joomla.form.helper');
JFormHelper::loadFieldClass('list');
/**
* Joomlamodules Form Field class for the Componentbuilder component
*/
class JFormFieldJoomlamodules extends JFormFieldList
{
/**
* The joomlamodules field type.
*
* @var string
*/
public $type = 'joomlamodules';
/**
* Method to get a list of options for a list input.
*
* @return array An array of JHtml options.
*/
protected function getOptions()
{
// Get the user object.
$user = JFactory::getUser();
// Get the databse object.
$db = JFactory::getDBO();
$query = $db->getQuery(true);
$query->select($db->quoteName(array('a.id','a.system_name'),array('id','joomla_module_system_name')));
$query->from($db->quoteName('#__componentbuilder_joomla_module', 'a'));
$query->where($db->quoteName('a.published') . ' >= 1');
$query->order('a.system_name ASC');
// Implement View Level Access (if set in table)
if (!$user->authorise('core.options', 'com_componentbuilder'))
{
$columns = $db->getTableColumns('#__componentbuilder_joomla_module');
if(isset($columns['access']))
{
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')');
}
}
$db->setQuery((string)$query);
$items = $db->loadObjectList();
$options = array();
if ($items)
{
$options[] = JHtml::_('select.option', '', 'Select a module');
foreach($items as $item)
{
// set a full class name
$options[] = JHtml::_('select.option', $item->id, $item->joomla_module_system_name);
}
}
return $options;
}
}

View File

@ -247,7 +247,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
public function getVyifields()
public function getVymfields()
{
// Get the user object.
$user = JFactory::getUser();
@ -335,13 +335,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
foreach ($items as $nr => &$item)
{
// convert datatype
$item->datatype = $this->selectionTranslationVyifields($item->datatype, 'datatype');
$item->datatype = $this->selectionTranslationVymfields($item->datatype, 'datatype');
// convert indexes
$item->indexes = $this->selectionTranslationVyifields($item->indexes, 'indexes');
$item->indexes = $this->selectionTranslationVymfields($item->indexes, 'indexes');
// convert null_switch
$item->null_switch = $this->selectionTranslationVyifields($item->null_switch, 'null_switch');
$item->null_switch = $this->selectionTranslationVymfields($item->null_switch, 'null_switch');
// convert store
$item->store = $this->selectionTranslationVyifields($item->store, 'store');
$item->store = $this->selectionTranslationVymfields($item->store, 'store');
}
}
@ -355,7 +355,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
*
* @return translatable string
*/
public function selectionTranslationVyifields($value,$name)
public function selectionTranslationVymfields($value,$name)
{
// Array of datatype language strings
if ($name === 'datatype')

View File

@ -9,123 +9,123 @@
*/
// Some Global Values
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;
jform_vvvvvzvvwl_required = false;
jform_vvvvvzwvwm_required = false;
jform_vvvvwaavwn_required = false;
jform_vvvvwaavwo_required = false;
jform_vvvvwaavwp_required = false;
jform_vvvvwaavwq_required = false;
jform_vvvvwaavwr_required = false;
jform_vvvvwaavws_required = false;
jform_vvvvwaavwt_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_css_view_vvvvvxz = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvvxz(add_css_view_vvvvvxz);
var add_css_view_vvvvvyv = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvvyv(add_css_view_vvvvvyv);
var add_css_views_vvvvvya = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvvya(add_css_views_vvvvvya);
var add_css_views_vvvvvyw = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvvyw(add_css_views_vvvvvyw);
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_view_file_vvvvvyx = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
vvvvvyx(add_javascript_view_file_vvvvvyx);
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_views_file_vvvvvyy = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
vvvvvyy(add_javascript_views_file_vvvvvyy);
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_view_footer_vvvvvyz = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvvyz(add_javascript_view_footer_vvvvvyz);
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_javascript_views_footer_vvvvvza = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvvza(add_javascript_views_footer_vvvvvza);
var add_php_ajax_vvvvvyf = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvyf(add_php_ajax_vvvvvyf);
var add_php_ajax_vvvvvzb = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvzb(add_php_ajax_vvvvvzb);
var add_php_getitem_vvvvvyg = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
vvvvvyg(add_php_getitem_vvvvvyg);
var add_php_getitem_vvvvvzc = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
vvvvvzc(add_php_getitem_vvvvvzc);
var add_php_getitems_vvvvvyh = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
vvvvvyh(add_php_getitems_vvvvvyh);
var add_php_getitems_vvvvvzd = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
vvvvvzd(add_php_getitems_vvvvvzd);
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_getitems_after_all_vvvvvze = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
vvvvvze(add_php_getitems_after_all_vvvvvze);
var add_php_getlistquery_vvvvvyj = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
vvvvvyj(add_php_getlistquery_vvvvvyj);
var add_php_getlistquery_vvvvvzf = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
vvvvvzf(add_php_getlistquery_vvvvvzf);
var add_php_getform_vvvvvyk = jQuery("#jform_add_php_getform input[type='radio']:checked").val();
vvvvvyk(add_php_getform_vvvvvyk);
var add_php_getform_vvvvvzg = jQuery("#jform_add_php_getform input[type='radio']:checked").val();
vvvvvzg(add_php_getform_vvvvvzg);
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_before_save_vvvvvzh = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
vvvvvzh(add_php_before_save_vvvvvzh);
var add_php_save_vvvvvym = jQuery("#jform_add_php_save input[type='radio']:checked").val();
vvvvvym(add_php_save_vvvvvym);
var add_php_save_vvvvvzi = jQuery("#jform_add_php_save input[type='radio']:checked").val();
vvvvvzi(add_php_save_vvvvvzi);
var add_php_postsavehook_vvvvvyn = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
vvvvvyn(add_php_postsavehook_vvvvvyn);
var add_php_postsavehook_vvvvvzj = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
vvvvvzj(add_php_postsavehook_vvvvvzj);
var add_php_allowadd_vvvvvyo = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val();
vvvvvyo(add_php_allowadd_vvvvvyo);
var add_php_allowadd_vvvvvzk = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val();
vvvvvzk(add_php_allowadd_vvvvvzk);
var add_php_allowedit_vvvvvyp = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
vvvvvyp(add_php_allowedit_vvvvvyp);
var add_php_allowedit_vvvvvzl = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
vvvvvzl(add_php_allowedit_vvvvvzl);
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_before_cancel_vvvvvzm = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val();
vvvvvzm(add_php_before_cancel_vvvvvzm);
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_after_cancel_vvvvvzn = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val();
vvvvvzn(add_php_after_cancel_vvvvvzn);
var add_php_batchcopy_vvvvvys = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
vvvvvys(add_php_batchcopy_vvvvvys);
var add_php_batchcopy_vvvvvzo = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
vvvvvzo(add_php_batchcopy_vvvvvzo);
var add_php_batchmove_vvvvvyt = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
vvvvvyt(add_php_batchmove_vvvvvyt);
var add_php_batchmove_vvvvvzp = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
vvvvvzp(add_php_batchmove_vvvvvzp);
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_before_publish_vvvvvzq = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
vvvvvzq(add_php_before_publish_vvvvvzq);
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_after_publish_vvvvvzr = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
vvvvvzr(add_php_after_publish_vvvvvzr);
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_before_delete_vvvvvzs = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
vvvvvzs(add_php_before_delete_vvvvvzs);
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_after_delete_vvvvvzt = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
vvvvvzt(add_php_after_delete_vvvvvzt);
var add_php_document_vvvvvyy = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvyy(add_php_document_vvvvvyy);
var add_php_document_vvvvvzu = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvzu(add_php_document_vvvvvzu);
var add_sql_vvvvvyz = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvyz(add_sql_vvvvvyz);
var add_sql_vvvvvzv = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvzv(add_sql_vvvvvzv);
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 source_vvvvvzw = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvzw = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvzw(source_vvvvvzw,add_sql_vvvvvzw);
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 source_vvvvvzy = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvzy = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvzy(source_vvvvvzy,add_sql_vvvvvzy);
var add_custom_import_vvvvvze = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
vvvvvze(add_custom_import_vvvvvze);
var add_custom_import_vvvvwaa = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
vvvvwaa(add_custom_import_vvvvwaa);
var add_custom_import_vvvvvzf = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
vvvvvzf(add_custom_import_vvvvvzf);
var add_custom_import_vvvvwab = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
vvvvwab(add_custom_import_vvvvwab);
var add_custom_button_vvvvvzg = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvzg(add_custom_button_vvvvvzg);
var add_custom_button_vvvvwac = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvwac(add_custom_button_vvvvwac);
});
// the vvvvvxz function
function vvvvvxz(add_css_view_vvvvvxz)
// the vvvvvyv function
function vvvvvyv(add_css_view_vvvvvyv)
{
// set the function logic
if (add_css_view_vvvvvxz == 1)
if (add_css_view_vvvvvyv == 1)
{
jQuery('#jform_css_view-lbl').closest('.control-group').show();
}
@ -135,11 +135,11 @@ function vvvvvxz(add_css_view_vvvvvxz)
}
}
// the vvvvvya function
function vvvvvya(add_css_views_vvvvvya)
// the vvvvvyw function
function vvvvvyw(add_css_views_vvvvvyw)
{
// set the function logic
if (add_css_views_vvvvvya == 1)
if (add_css_views_vvvvvyw == 1)
{
jQuery('#jform_css_views-lbl').closest('.control-group').show();
}
@ -149,11 +149,11 @@ function vvvvvya(add_css_views_vvvvvya)
}
}
// the vvvvvyb function
function vvvvvyb(add_javascript_view_file_vvvvvyb)
// the vvvvvyx function
function vvvvvyx(add_javascript_view_file_vvvvvyx)
{
// set the function logic
if (add_javascript_view_file_vvvvvyb == 1)
if (add_javascript_view_file_vvvvvyx == 1)
{
jQuery('#jform_javascript_view_file-lbl').closest('.control-group').show();
}
@ -163,11 +163,11 @@ function vvvvvyb(add_javascript_view_file_vvvvvyb)
}
}
// the vvvvvyc function
function vvvvvyc(add_javascript_views_file_vvvvvyc)
// the vvvvvyy function
function vvvvvyy(add_javascript_views_file_vvvvvyy)
{
// set the function logic
if (add_javascript_views_file_vvvvvyc == 1)
if (add_javascript_views_file_vvvvvyy == 1)
{
jQuery('#jform_javascript_views_file-lbl').closest('.control-group').show();
}
@ -177,11 +177,11 @@ function vvvvvyc(add_javascript_views_file_vvvvvyc)
}
}
// the vvvvvyd function
function vvvvvyd(add_javascript_view_footer_vvvvvyd)
// the vvvvvyz function
function vvvvvyz(add_javascript_view_footer_vvvvvyz)
{
// set the function logic
if (add_javascript_view_footer_vvvvvyd == 1)
if (add_javascript_view_footer_vvvvvyz == 1)
{
jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show();
}
@ -191,11 +191,11 @@ function vvvvvyd(add_javascript_view_footer_vvvvvyd)
}
}
// the vvvvvye function
function vvvvvye(add_javascript_views_footer_vvvvvye)
// the vvvvvza function
function vvvvvza(add_javascript_views_footer_vvvvvza)
{
// set the function logic
if (add_javascript_views_footer_vvvvvye == 1)
if (add_javascript_views_footer_vvvvvza == 1)
{
jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show();
}
@ -205,11 +205,11 @@ function vvvvvye(add_javascript_views_footer_vvvvvye)
}
}
// the vvvvvyf function
function vvvvvyf(add_php_ajax_vvvvvyf)
// the vvvvvzb function
function vvvvvzb(add_php_ajax_vvvvvzb)
{
// set the function logic
if (add_php_ajax_vvvvvyf == 1)
if (add_php_ajax_vvvvvzb == 1)
{
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show();
@ -221,11 +221,11 @@ function vvvvvyf(add_php_ajax_vvvvvyf)
}
}
// the vvvvvyg function
function vvvvvyg(add_php_getitem_vvvvvyg)
// the vvvvvzc function
function vvvvvzc(add_php_getitem_vvvvvzc)
{
// set the function logic
if (add_php_getitem_vvvvvyg == 1)
if (add_php_getitem_vvvvvzc == 1)
{
jQuery('#jform_php_getitem-lbl').closest('.control-group').show();
}
@ -235,11 +235,11 @@ function vvvvvyg(add_php_getitem_vvvvvyg)
}
}
// the vvvvvyh function
function vvvvvyh(add_php_getitems_vvvvvyh)
// the vvvvvzd function
function vvvvvzd(add_php_getitems_vvvvvzd)
{
// set the function logic
if (add_php_getitems_vvvvvyh == 1)
if (add_php_getitems_vvvvvzd == 1)
{
jQuery('#jform_php_getitems-lbl').closest('.control-group').show();
}
@ -249,11 +249,11 @@ function vvvvvyh(add_php_getitems_vvvvvyh)
}
}
// the vvvvvyi function
function vvvvvyi(add_php_getitems_after_all_vvvvvyi)
// the vvvvvze function
function vvvvvze(add_php_getitems_after_all_vvvvvze)
{
// set the function logic
if (add_php_getitems_after_all_vvvvvyi == 1)
if (add_php_getitems_after_all_vvvvvze == 1)
{
jQuery('#jform_php_getitems_after_all-lbl').closest('.control-group').show();
}
@ -263,11 +263,11 @@ function vvvvvyi(add_php_getitems_after_all_vvvvvyi)
}
}
// the vvvvvyj function
function vvvvvyj(add_php_getlistquery_vvvvvyj)
// the vvvvvzf function
function vvvvvzf(add_php_getlistquery_vvvvvzf)
{
// set the function logic
if (add_php_getlistquery_vvvvvyj == 1)
if (add_php_getlistquery_vvvvvzf == 1)
{
jQuery('#jform_php_getlistquery-lbl').closest('.control-group').show();
}
@ -277,11 +277,11 @@ function vvvvvyj(add_php_getlistquery_vvvvvyj)
}
}
// the vvvvvyk function
function vvvvvyk(add_php_getform_vvvvvyk)
// the vvvvvzg function
function vvvvvzg(add_php_getform_vvvvvzg)
{
// set the function logic
if (add_php_getform_vvvvvyk == 1)
if (add_php_getform_vvvvvzg == 1)
{
jQuery('#jform_php_getform-lbl').closest('.control-group').show();
}
@ -291,11 +291,11 @@ function vvvvvyk(add_php_getform_vvvvvyk)
}
}
// the vvvvvyl function
function vvvvvyl(add_php_before_save_vvvvvyl)
// the vvvvvzh function
function vvvvvzh(add_php_before_save_vvvvvzh)
{
// set the function logic
if (add_php_before_save_vvvvvyl == 1)
if (add_php_before_save_vvvvvzh == 1)
{
jQuery('#jform_php_before_save-lbl').closest('.control-group').show();
}
@ -305,11 +305,11 @@ function vvvvvyl(add_php_before_save_vvvvvyl)
}
}
// the vvvvvym function
function vvvvvym(add_php_save_vvvvvym)
// the vvvvvzi function
function vvvvvzi(add_php_save_vvvvvzi)
{
// set the function logic
if (add_php_save_vvvvvym == 1)
if (add_php_save_vvvvvzi == 1)
{
jQuery('#jform_php_save-lbl').closest('.control-group').show();
}
@ -319,11 +319,11 @@ function vvvvvym(add_php_save_vvvvvym)
}
}
// the vvvvvyn function
function vvvvvyn(add_php_postsavehook_vvvvvyn)
// the vvvvvzj function
function vvvvvzj(add_php_postsavehook_vvvvvzj)
{
// set the function logic
if (add_php_postsavehook_vvvvvyn == 1)
if (add_php_postsavehook_vvvvvzj == 1)
{
jQuery('#jform_php_postsavehook-lbl').closest('.control-group').show();
}
@ -333,11 +333,11 @@ function vvvvvyn(add_php_postsavehook_vvvvvyn)
}
}
// the vvvvvyo function
function vvvvvyo(add_php_allowadd_vvvvvyo)
// the vvvvvzk function
function vvvvvzk(add_php_allowadd_vvvvvzk)
{
// set the function logic
if (add_php_allowadd_vvvvvyo == 1)
if (add_php_allowadd_vvvvvzk == 1)
{
jQuery('#jform_php_allowadd-lbl').closest('.control-group').show();
}
@ -347,11 +347,11 @@ function vvvvvyo(add_php_allowadd_vvvvvyo)
}
}
// the vvvvvyp function
function vvvvvyp(add_php_allowedit_vvvvvyp)
// the vvvvvzl function
function vvvvvzl(add_php_allowedit_vvvvvzl)
{
// set the function logic
if (add_php_allowedit_vvvvvyp == 1)
if (add_php_allowedit_vvvvvzl == 1)
{
jQuery('#jform_php_allowedit-lbl').closest('.control-group').show();
}
@ -361,11 +361,11 @@ function vvvvvyp(add_php_allowedit_vvvvvyp)
}
}
// the vvvvvyq function
function vvvvvyq(add_php_before_cancel_vvvvvyq)
// the vvvvvzm function
function vvvvvzm(add_php_before_cancel_vvvvvzm)
{
// set the function logic
if (add_php_before_cancel_vvvvvyq == 1)
if (add_php_before_cancel_vvvvvzm == 1)
{
jQuery('#jform_php_before_cancel-lbl').closest('.control-group').show();
}
@ -375,11 +375,11 @@ function vvvvvyq(add_php_before_cancel_vvvvvyq)
}
}
// the vvvvvyr function
function vvvvvyr(add_php_after_cancel_vvvvvyr)
// the vvvvvzn function
function vvvvvzn(add_php_after_cancel_vvvvvzn)
{
// set the function logic
if (add_php_after_cancel_vvvvvyr == 1)
if (add_php_after_cancel_vvvvvzn == 1)
{
jQuery('#jform_php_after_cancel-lbl').closest('.control-group').show();
}
@ -389,11 +389,11 @@ function vvvvvyr(add_php_after_cancel_vvvvvyr)
}
}
// the vvvvvys function
function vvvvvys(add_php_batchcopy_vvvvvys)
// the vvvvvzo function
function vvvvvzo(add_php_batchcopy_vvvvvzo)
{
// set the function logic
if (add_php_batchcopy_vvvvvys == 1)
if (add_php_batchcopy_vvvvvzo == 1)
{
jQuery('#jform_php_batchcopy-lbl').closest('.control-group').show();
}
@ -403,11 +403,11 @@ function vvvvvys(add_php_batchcopy_vvvvvys)
}
}
// the vvvvvyt function
function vvvvvyt(add_php_batchmove_vvvvvyt)
// the vvvvvzp function
function vvvvvzp(add_php_batchmove_vvvvvzp)
{
// set the function logic
if (add_php_batchmove_vvvvvyt == 1)
if (add_php_batchmove_vvvvvzp == 1)
{
jQuery('#jform_php_batchmove-lbl').closest('.control-group').show();
}
@ -417,11 +417,11 @@ function vvvvvyt(add_php_batchmove_vvvvvyt)
}
}
// the vvvvvyu function
function vvvvvyu(add_php_before_publish_vvvvvyu)
// the vvvvvzq function
function vvvvvzq(add_php_before_publish_vvvvvzq)
{
// set the function logic
if (add_php_before_publish_vvvvvyu == 1)
if (add_php_before_publish_vvvvvzq == 1)
{
jQuery('#jform_php_before_publish-lbl').closest('.control-group').show();
}
@ -431,11 +431,11 @@ function vvvvvyu(add_php_before_publish_vvvvvyu)
}
}
// the vvvvvyv function
function vvvvvyv(add_php_after_publish_vvvvvyv)
// the vvvvvzr function
function vvvvvzr(add_php_after_publish_vvvvvzr)
{
// set the function logic
if (add_php_after_publish_vvvvvyv == 1)
if (add_php_after_publish_vvvvvzr == 1)
{
jQuery('#jform_php_after_publish-lbl').closest('.control-group').show();
}
@ -445,11 +445,11 @@ function vvvvvyv(add_php_after_publish_vvvvvyv)
}
}
// the vvvvvyw function
function vvvvvyw(add_php_before_delete_vvvvvyw)
// the vvvvvzs function
function vvvvvzs(add_php_before_delete_vvvvvzs)
{
// set the function logic
if (add_php_before_delete_vvvvvyw == 1)
if (add_php_before_delete_vvvvvzs == 1)
{
jQuery('#jform_php_before_delete-lbl').closest('.control-group').show();
}
@ -459,11 +459,11 @@ function vvvvvyw(add_php_before_delete_vvvvvyw)
}
}
// the vvvvvyx function
function vvvvvyx(add_php_after_delete_vvvvvyx)
// the vvvvvzt function
function vvvvvzt(add_php_after_delete_vvvvvzt)
{
// set the function logic
if (add_php_after_delete_vvvvvyx == 1)
if (add_php_after_delete_vvvvvzt == 1)
{
jQuery('#jform_php_after_delete-lbl').closest('.control-group').show();
}
@ -473,11 +473,11 @@ function vvvvvyx(add_php_after_delete_vvvvvyx)
}
}
// the vvvvvyy function
function vvvvvyy(add_php_document_vvvvvyy)
// the vvvvvzu function
function vvvvvzu(add_php_document_vvvvvzu)
{
// set the function logic
if (add_php_document_vvvvvyy == 1)
if (add_php_document_vvvvvzu == 1)
{
jQuery('#jform_php_document-lbl').closest('.control-group').show();
}
@ -487,75 +487,75 @@ function vvvvvyy(add_php_document_vvvvvyy)
}
}
// the vvvvvyz function
function vvvvvyz(add_sql_vvvvvyz)
// the vvvvvzv function
function vvvvvzv(add_sql_vvvvvzv)
{
// set the function logic
if (add_sql_vvvvvyz == 1)
if (add_sql_vvvvvzv == 1)
{
jQuery('#jform_source').closest('.control-group').show();
// add required attribute to source field
if (jform_vvvvvyzvwh_required)
if (jform_vvvvvzvvwl_required)
{
updateFieldRequired('source',0);
jQuery('#jform_source').prop('required','required');
jQuery('#jform_source').attr('aria-required',true);
jQuery('#jform_source').addClass('required');
jform_vvvvvyzvwh_required = false;
jform_vvvvvzvvwl_required = false;
}
}
else
{
jQuery('#jform_source').closest('.control-group').hide();
// remove required attribute from source field
if (!jform_vvvvvyzvwh_required)
if (!jform_vvvvvzvvwl_required)
{
updateFieldRequired('source',1);
jQuery('#jform_source').removeAttr('required');
jQuery('#jform_source').removeAttr('aria-required');
jQuery('#jform_source').removeClass('required');
jform_vvvvvyzvwh_required = true;
jform_vvvvvzvvwl_required = true;
}
}
}
// the vvvvvza function
function vvvvvza(source_vvvvvza,add_sql_vvvvvza)
// the vvvvvzw function
function vvvvvzw(source_vvvvvzw,add_sql_vvvvvzw)
{
// set the function logic
if (source_vvvvvza == 2 && add_sql_vvvvvza == 1)
if (source_vvvvvzw == 2 && add_sql_vvvvvzw == 1)
{
jQuery('#jform_sql').closest('.control-group').show();
// add required attribute to sql field
if (jform_vvvvvzavwi_required)
if (jform_vvvvvzwvwm_required)
{
updateFieldRequired('sql',0);
jQuery('#jform_sql').prop('required','required');
jQuery('#jform_sql').attr('aria-required',true);
jQuery('#jform_sql').addClass('required');
jform_vvvvvzavwi_required = false;
jform_vvvvvzwvwm_required = false;
}
}
else
{
jQuery('#jform_sql').closest('.control-group').hide();
// remove required attribute from sql field
if (!jform_vvvvvzavwi_required)
if (!jform_vvvvvzwvwm_required)
{
updateFieldRequired('sql',1);
jQuery('#jform_sql').removeAttr('required');
jQuery('#jform_sql').removeAttr('aria-required');
jQuery('#jform_sql').removeClass('required');
jform_vvvvvzavwi_required = true;
jform_vvvvvzwvwm_required = true;
}
}
}
// the vvvvvzc function
function vvvvvzc(source_vvvvvzc,add_sql_vvvvvzc)
// the vvvvvzy function
function vvvvvzy(source_vvvvvzy,add_sql_vvvvvzy)
{
// set the function logic
if (source_vvvvvzc == 1 && add_sql_vvvvvzc == 1)
if (source_vvvvvzy == 1 && add_sql_vvvvvzy == 1)
{
jQuery('#jform_addtables-lbl').closest('.control-group').show();
}
@ -565,165 +565,165 @@ function vvvvvzc(source_vvvvvzc,add_sql_vvvvvzc)
}
}
// the vvvvvze function
function vvvvvze(add_custom_import_vvvvvze)
// the vvvvwaa function
function vvvvwaa(add_custom_import_vvvvwaa)
{
// set the function logic
if (add_custom_import_vvvvvze == 1)
if (add_custom_import_vvvvwaa == 1)
{
jQuery('#jform_html_import_view').closest('.control-group').show();
// add required attribute to html_import_view field
if (jform_vvvvvzevwj_required)
if (jform_vvvvwaavwn_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_vvvvvzevwj_required = false;
jform_vvvvwaavwn_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_vvvvvzevwk_required)
if (jform_vvvvwaavwo_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_vvvvvzevwk_required = false;
jform_vvvvwaavwo_required = false;
}
jQuery('#jform_php_import_ext').closest('.control-group').show();
// add required attribute to php_import_ext field
if (jform_vvvvvzevwl_required)
if (jform_vvvvwaavwp_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_vvvvvzevwl_required = false;
jform_vvvvwaavwp_required = false;
}
jQuery('#jform_php_import_headers').closest('.control-group').show();
// add required attribute to php_import_headers field
if (jform_vvvvvzevwm_required)
if (jform_vvvvwaavwq_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_vvvvvzevwm_required = false;
jform_vvvvwaavwq_required = false;
}
jQuery('#jform_php_import').closest('.control-group').show();
// add required attribute to php_import field
if (jform_vvvvvzevwn_required)
if (jform_vvvvwaavwr_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_vvvvvzevwn_required = false;
jform_vvvvwaavwr_required = false;
}
jQuery('#jform_php_import_save').closest('.control-group').show();
// add required attribute to php_import_save field
if (jform_vvvvvzevwo_required)
if (jform_vvvvwaavws_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_vvvvvzevwo_required = false;
jform_vvvvwaavws_required = false;
}
jQuery('#jform_php_import_setdata').closest('.control-group').show();
// add required attribute to php_import_setdata field
if (jform_vvvvvzevwp_required)
if (jform_vvvvwaavwt_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_vvvvvzevwp_required = false;
jform_vvvvwaavwt_required = false;
}
}
else
{
jQuery('#jform_html_import_view').closest('.control-group').hide();
// remove required attribute from html_import_view field
if (!jform_vvvvvzevwj_required)
if (!jform_vvvvwaavwn_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_vvvvvzevwj_required = true;
jform_vvvvwaavwn_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_vvvvvzevwk_required)
if (!jform_vvvvwaavwo_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_vvvvvzevwk_required = true;
jform_vvvvwaavwo_required = true;
}
jQuery('#jform_php_import_ext').closest('.control-group').hide();
// remove required attribute from php_import_ext field
if (!jform_vvvvvzevwl_required)
if (!jform_vvvvwaavwp_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_vvvvvzevwl_required = true;
jform_vvvvwaavwp_required = true;
}
jQuery('#jform_php_import_headers').closest('.control-group').hide();
// remove required attribute from php_import_headers field
if (!jform_vvvvvzevwm_required)
if (!jform_vvvvwaavwq_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_vvvvvzevwm_required = true;
jform_vvvvwaavwq_required = true;
}
jQuery('#jform_php_import').closest('.control-group').hide();
// remove required attribute from php_import field
if (!jform_vvvvvzevwn_required)
if (!jform_vvvvwaavwr_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_vvvvvzevwn_required = true;
jform_vvvvwaavwr_required = true;
}
jQuery('#jform_php_import_save').closest('.control-group').hide();
// remove required attribute from php_import_save field
if (!jform_vvvvvzevwo_required)
if (!jform_vvvvwaavws_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_vvvvvzevwo_required = true;
jform_vvvvwaavws_required = true;
}
jQuery('#jform_php_import_setdata').closest('.control-group').hide();
// remove required attribute from php_import_setdata field
if (!jform_vvvvvzevwp_required)
if (!jform_vvvvwaavwt_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_vvvvvzevwp_required = true;
jform_vvvvwaavwt_required = true;
}
}
}
// the vvvvvzf function
function vvvvvzf(add_custom_import_vvvvvzf)
// the vvvvwab function
function vvvvwab(add_custom_import_vvvvwab)
{
// set the function logic
if (add_custom_import_vvvvvzf == 0)
if (add_custom_import_vvvvwab == 0)
{
jQuery('.note_beginner_import').closest('.control-group').show();
}
@ -733,11 +733,11 @@ function vvvvvzf(add_custom_import_vvvvvzf)
}
}
// the vvvvvzg function
function vvvvvzg(add_custom_button_vvvvvzg)
// the vvvvwac function
function vvvvwac(add_custom_button_vvvvwac)
{
// set the function logic
if (add_custom_button_vvvvvzg == 1)
if (add_custom_button_vvvvwac == 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_vvvvwbkvxi_required = false;
jform_vvvvwcgvxm_required = false;
// Initial Script
jQuery(document).ready(function()
{
var extension_type_vvvvwbk = jQuery("#jform_extension_type").val();
vvvvwbk(extension_type_vvvvwbk);
var extension_type_vvvvwcg = jQuery("#jform_extension_type").val();
vvvvwcg(extension_type_vvvvwcg);
});
// the vvvvwbk function
function vvvvwbk(extension_type_vvvvwbk)
// the vvvvwcg function
function vvvvwcg(extension_type_vvvvwcg)
{
if (isSet(extension_type_vvvvwbk) && extension_type_vvvvwbk.constructor !== Array)
if (isSet(extension_type_vvvvwcg) && extension_type_vvvvwcg.constructor !== Array)
{
var temp_vvvvwbk = extension_type_vvvvwbk;
var extension_type_vvvvwbk = [];
extension_type_vvvvwbk.push(temp_vvvvwbk);
var temp_vvvvwcg = extension_type_vvvvwcg;
var extension_type_vvvvwcg = [];
extension_type_vvvvwcg.push(temp_vvvvwcg);
}
else if (!isSet(extension_type_vvvvwbk))
else if (!isSet(extension_type_vvvvwcg))
{
var extension_type_vvvvwbk = [];
var extension_type_vvvvwcg = [];
}
var extension_type = extension_type_vvvvwbk.some(extension_type_vvvvwbk_SomeFunc);
var extension_type = extension_type_vvvvwcg.some(extension_type_vvvvwcg_SomeFunc);
// set this function logic
@ -39,35 +39,35 @@ function vvvvwbk(extension_type_vvvvwbk)
{
jQuery('#jform_joomla_plugin_group').closest('.control-group').show();
// add required attribute to joomla_plugin_group field
if (jform_vvvvwbkvxi_required)
if (jform_vvvvwcgvxm_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_vvvvwbkvxi_required = false;
jform_vvvvwcgvxm_required = false;
}
}
else
{
jQuery('#jform_joomla_plugin_group').closest('.control-group').hide();
// remove required attribute from joomla_plugin_group field
if (!jform_vvvvwbkvxi_required)
if (!jform_vvvvwcgvxm_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_vvvvwbkvxi_required = true;
jform_vvvvwcgvxm_required = true;
}
}
}
// the vvvvwbk Some function
function extension_type_vvvvwbk_SomeFunc(extension_type_vvvvwbk)
// the vvvvwcg Some function
function extension_type_vvvvwcg_SomeFunc(extension_type_vvvvwcg)
{
// set the function logic
if (extension_type_vvvvwbk == 'plugins' || extension_type_vvvvwbk == 'plugin')
if (extension_type_vvvvwcg == 'plugins' || extension_type_vvvvwcg == 'plugin')
{
return true;
}

View File

@ -9,29 +9,29 @@
*/
// Some Global Values
jform_vvvvwbjvxh_required = false;
jform_vvvvwcfvxl_required = false;
// Initial Script
jQuery(document).ready(function()
{
var extension_type_vvvvwbj = jQuery("#jform_extension_type").val();
vvvvwbj(extension_type_vvvvwbj);
var extension_type_vvvvwcf = jQuery("#jform_extension_type").val();
vvvvwcf(extension_type_vvvvwcf);
});
// the vvvvwbj function
function vvvvwbj(extension_type_vvvvwbj)
// the vvvvwcf function
function vvvvwcf(extension_type_vvvvwcf)
{
if (isSet(extension_type_vvvvwbj) && extension_type_vvvvwbj.constructor !== Array)
if (isSet(extension_type_vvvvwcf) && extension_type_vvvvwcf.constructor !== Array)
{
var temp_vvvvwbj = extension_type_vvvvwbj;
var extension_type_vvvvwbj = [];
extension_type_vvvvwbj.push(temp_vvvvwbj);
var temp_vvvvwcf = extension_type_vvvvwcf;
var extension_type_vvvvwcf = [];
extension_type_vvvvwcf.push(temp_vvvvwcf);
}
else if (!isSet(extension_type_vvvvwbj))
else if (!isSet(extension_type_vvvvwcf))
{
var extension_type_vvvvwbj = [];
var extension_type_vvvvwcf = [];
}
var extension_type = extension_type_vvvvwbj.some(extension_type_vvvvwbj_SomeFunc);
var extension_type = extension_type_vvvvwcf.some(extension_type_vvvvwcf_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_vvvvwbjvxh_required)
if (jform_vvvvwcfvxl_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_vvvvwbjvxh_required = false;
jform_vvvvwcfvxl_required = false;
}
}
else
{
jQuery('#jform_joomla_plugin_group').closest('.control-group').hide();
// remove required attribute from joomla_plugin_group field
if (!jform_vvvvwbjvxh_required)
if (!jform_vvvvwcfvxl_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_vvvvwbjvxh_required = true;
jform_vvvvwcfvxl_required = true;
}
}
}
// the vvvvwbj Some function
function extension_type_vvvvwbj_SomeFunc(extension_type_vvvvwbj)
// the vvvvwcf Some function
function extension_type_vvvvwcf_SomeFunc(extension_type_vvvvwcf)
{
// set the function logic
if (extension_type_vvvvwbj == 'plugins' || extension_type_vvvvwbj == 'plugin')
if (extension_type_vvvvwcf == 'plugins' || extension_type_vvvvwcf == 'plugin')
{
return true;
}

View File

@ -11,42 +11,42 @@
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvvzh = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvzh(add_php_view_vvvvvzh);
var add_php_view_vvvvwad = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvwad(add_php_view_vvvvwad);
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_display_vvvvwae = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
vvvvwae(add_php_jview_display_vvvvwae);
var add_php_jview_vvvvvzj = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
vvvvvzj(add_php_jview_vvvvvzj);
var add_php_jview_vvvvwaf = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
vvvvwaf(add_php_jview_vvvvwaf);
var add_php_document_vvvvvzk = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvzk(add_php_document_vvvvvzk);
var add_php_document_vvvvwag = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvwag(add_php_document_vvvvwag);
var add_css_document_vvvvvzl = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvvzl(add_css_document_vvvvvzl);
var add_css_document_vvvvwah = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvwah(add_css_document_vvvvwah);
var add_javascript_file_vvvvvzm = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
vvvvvzm(add_javascript_file_vvvvvzm);
var add_javascript_file_vvvvwai = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
vvvvwai(add_javascript_file_vvvvwai);
var add_js_document_vvvvvzn = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvvzn(add_js_document_vvvvvzn);
var add_js_document_vvvvwaj = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvwaj(add_js_document_vvvvwaj);
var add_custom_button_vvvvvzo = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvzo(add_custom_button_vvvvvzo);
var add_custom_button_vvvvwak = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvwak(add_custom_button_vvvvwak);
var add_css_vvvvvzp = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvzp(add_css_vvvvvzp);
var add_css_vvvvwal = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvwal(add_css_vvvvwal);
var add_php_ajax_vvvvvzq = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvzq(add_php_ajax_vvvvvzq);
var add_php_ajax_vvvvwam = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvwam(add_php_ajax_vvvvwam);
});
// the vvvvvzh function
function vvvvvzh(add_php_view_vvvvvzh)
// the vvvvwad function
function vvvvwad(add_php_view_vvvvwad)
{
// set the function logic
if (add_php_view_vvvvvzh == 1)
if (add_php_view_vvvvwad == 1)
{
jQuery('#jform_php_view-lbl').closest('.control-group').show();
}
@ -56,11 +56,11 @@ function vvvvvzh(add_php_view_vvvvvzh)
}
}
// the vvvvvzi function
function vvvvvzi(add_php_jview_display_vvvvvzi)
// the vvvvwae function
function vvvvwae(add_php_jview_display_vvvvwae)
{
// set the function logic
if (add_php_jview_display_vvvvvzi == 1)
if (add_php_jview_display_vvvvwae == 1)
{
jQuery('#jform_php_jview_display-lbl').closest('.control-group').show();
}
@ -70,11 +70,11 @@ function vvvvvzi(add_php_jview_display_vvvvvzi)
}
}
// the vvvvvzj function
function vvvvvzj(add_php_jview_vvvvvzj)
// the vvvvwaf function
function vvvvwaf(add_php_jview_vvvvwaf)
{
// set the function logic
if (add_php_jview_vvvvvzj == 1)
if (add_php_jview_vvvvwaf == 1)
{
jQuery('#jform_php_jview-lbl').closest('.control-group').show();
}
@ -84,11 +84,11 @@ function vvvvvzj(add_php_jview_vvvvvzj)
}
}
// the vvvvvzk function
function vvvvvzk(add_php_document_vvvvvzk)
// the vvvvwag function
function vvvvwag(add_php_document_vvvvwag)
{
// set the function logic
if (add_php_document_vvvvvzk == 1)
if (add_php_document_vvvvwag == 1)
{
jQuery('#jform_php_document-lbl').closest('.control-group').show();
}
@ -98,11 +98,11 @@ function vvvvvzk(add_php_document_vvvvvzk)
}
}
// the vvvvvzl function
function vvvvvzl(add_css_document_vvvvvzl)
// the vvvvwah function
function vvvvwah(add_css_document_vvvvwah)
{
// set the function logic
if (add_css_document_vvvvvzl == 1)
if (add_css_document_vvvvwah == 1)
{
jQuery('#jform_css_document-lbl').closest('.control-group').show();
}
@ -112,11 +112,11 @@ function vvvvvzl(add_css_document_vvvvvzl)
}
}
// the vvvvvzm function
function vvvvvzm(add_javascript_file_vvvvvzm)
// the vvvvwai function
function vvvvwai(add_javascript_file_vvvvwai)
{
// set the function logic
if (add_javascript_file_vvvvvzm == 1)
if (add_javascript_file_vvvvwai == 1)
{
jQuery('#jform_javascript_file-lbl').closest('.control-group').show();
}
@ -126,11 +126,11 @@ function vvvvvzm(add_javascript_file_vvvvvzm)
}
}
// the vvvvvzn function
function vvvvvzn(add_js_document_vvvvvzn)
// the vvvvwaj function
function vvvvwaj(add_js_document_vvvvwaj)
{
// set the function logic
if (add_js_document_vvvvvzn == 1)
if (add_js_document_vvvvwaj == 1)
{
jQuery('#jform_js_document-lbl').closest('.control-group').show();
}
@ -140,11 +140,11 @@ function vvvvvzn(add_js_document_vvvvvzn)
}
}
// the vvvvvzo function
function vvvvvzo(add_custom_button_vvvvvzo)
// the vvvvwak function
function vvvvwak(add_custom_button_vvvvwak)
{
// set the function logic
if (add_custom_button_vvvvvzo == 1)
if (add_custom_button_vvvvwak == 1)
{
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
jQuery('#jform_php_controller-lbl').closest('.control-group').show();
@ -158,11 +158,11 @@ function vvvvvzo(add_custom_button_vvvvvzo)
}
}
// the vvvvvzp function
function vvvvvzp(add_css_vvvvvzp)
// the vvvvwal function
function vvvvwal(add_css_vvvvwal)
{
// set the function logic
if (add_css_vvvvvzp == 1)
if (add_css_vvvvwal == 1)
{
jQuery('#jform_css-lbl').closest('.control-group').show();
}
@ -172,11 +172,11 @@ function vvvvvzp(add_css_vvvvvzp)
}
}
// the vvvvvzq function
function vvvvvzq(add_php_ajax_vvvvvzq)
// the vvvvwam function
function vvvvwam(add_php_ajax_vvvvwam)
{
// set the function logic
if (add_php_ajax_vvvvvzq == 1)
if (add_php_ajax_vvvvwam == 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_vvvvwbfvxd_required = false;
jform_vvvvwbgvxe_required = false;
jform_vvvvwbgvxf_required = false;
jform_vvvvwbgvxg_required = false;
jform_vvvvwcbvxh_required = false;
jform_vvvvwccvxi_required = false;
jform_vvvvwccvxj_required = false;
jform_vvvvwccvxk_required = false;
// Initial Script
jQuery(document).ready(function()
{
var target_vvvvwbf = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwbf(target_vvvvwbf);
var target_vvvvwcb = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwcb(target_vvvvwcb);
var target_vvvvwbg = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwbg(target_vvvvwbg);
var target_vvvvwcc = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwcc(target_vvvvwcc);
var target_vvvvwbh = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvwbh = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwbh(target_vvvvwbh,type_vvvvwbh);
var target_vvvvwcd = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvwcd = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwcd(target_vvvvwcd,type_vvvvwcd);
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);
var type_vvvvwce = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwce = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwce(type_vvvvwce,target_vvvvwce);
});
// the vvvvwbf function
function vvvvwbf(target_vvvvwbf)
// the vvvvwcb function
function vvvvwcb(target_vvvvwcb)
{
// set the function logic
if (target_vvvvwbf == 2)
if (target_vvvvwcb == 2)
{
jQuery('#jform_function_name').closest('.control-group').show();
// add required attribute to function_name field
if (jform_vvvvwbfvxd_required)
if (jform_vvvvwcbvxh_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_vvvvwbfvxd_required = false;
jform_vvvvwcbvxh_required = false;
}
jQuery('.note_jcb_placeholder').closest('.control-group').show();
jQuery('#jform_system_name').closest('.control-group').show();
@ -55,102 +55,102 @@ function vvvvwbf(target_vvvvwbf)
{
jQuery('#jform_function_name').closest('.control-group').hide();
// remove required attribute from function_name field
if (!jform_vvvvwbfvxd_required)
if (!jform_vvvvwcbvxh_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_vvvvwbfvxd_required = true;
jform_vvvvwcbvxh_required = true;
}
jQuery('.note_jcb_placeholder').closest('.control-group').hide();
jQuery('#jform_system_name').closest('.control-group').hide();
}
}
// the vvvvwbg function
function vvvvwbg(target_vvvvwbg)
// the vvvvwcc function
function vvvvwcc(target_vvvvwcc)
{
// set the function logic
if (target_vvvvwbg == 1)
if (target_vvvvwcc == 1)
{
jQuery('#jform_component').closest('.control-group').show();
// add required attribute to component field
if (jform_vvvvwbgvxe_required)
if (jform_vvvvwccvxi_required)
{
updateFieldRequired('component',0);
jQuery('#jform_component').prop('required','required');
jQuery('#jform_component').attr('aria-required',true);
jQuery('#jform_component').addClass('required');
jform_vvvvwbgvxe_required = false;
jform_vvvvwccvxi_required = false;
}
jQuery('#jform_path').closest('.control-group').show();
// add required attribute to path field
if (jform_vvvvwbgvxf_required)
if (jform_vvvvwccvxj_required)
{
updateFieldRequired('path',0);
jQuery('#jform_path').prop('required','required');
jQuery('#jform_path').attr('aria-required',true);
jQuery('#jform_path').addClass('required');
jform_vvvvwbgvxf_required = false;
jform_vvvvwccvxj_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_vvvvwbgvxg_required)
if (jform_vvvvwccvxk_required)
{
updateFieldRequired('type',0);
jQuery('#jform_type').prop('required','required');
jQuery('#jform_type').attr('aria-required',true);
jQuery('#jform_type').addClass('required');
jform_vvvvwbgvxg_required = false;
jform_vvvvwccvxk_required = false;
}
}
else
{
jQuery('#jform_component').closest('.control-group').hide();
// remove required attribute from component field
if (!jform_vvvvwbgvxe_required)
if (!jform_vvvvwccvxi_required)
{
updateFieldRequired('component',1);
jQuery('#jform_component').removeAttr('required');
jQuery('#jform_component').removeAttr('aria-required');
jQuery('#jform_component').removeClass('required');
jform_vvvvwbgvxe_required = true;
jform_vvvvwccvxi_required = true;
}
jQuery('#jform_path').closest('.control-group').hide();
// remove required attribute from path field
if (!jform_vvvvwbgvxf_required)
if (!jform_vvvvwccvxj_required)
{
updateFieldRequired('path',1);
jQuery('#jform_path').removeAttr('required');
jQuery('#jform_path').removeAttr('aria-required');
jQuery('#jform_path').removeClass('required');
jform_vvvvwbgvxf_required = true;
jform_vvvvwccvxj_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_vvvvwbgvxg_required)
if (!jform_vvvvwccvxk_required)
{
updateFieldRequired('type',1);
jQuery('#jform_type').removeAttr('required');
jQuery('#jform_type').removeAttr('aria-required');
jQuery('#jform_type').removeClass('required');
jform_vvvvwbgvxg_required = true;
jform_vvvvwccvxk_required = true;
}
}
}
// the vvvvwbh function
function vvvvwbh(target_vvvvwbh,type_vvvvwbh)
// the vvvvwcd function
function vvvvwcd(target_vvvvwcd,type_vvvvwcd)
{
// set the function logic
if (target_vvvvwbh == 1 && type_vvvvwbh == 1)
if (target_vvvvwcd == 1 && type_vvvvwcd == 1)
{
jQuery('#jform_hashendtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();
@ -162,11 +162,11 @@ function vvvvwbh(target_vvvvwbh,type_vvvvwbh)
}
}
// the vvvvwbi function
function vvvvwbi(type_vvvvwbi,target_vvvvwbi)
// the vvvvwce function
function vvvvwce(type_vvvvwce,target_vvvvwce)
{
// set the function logic
if (type_vvvvwbi == 1 && target_vvvvwbi == 1)
if (type_vvvvwce == 1 && target_vvvvwce == 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,77 +9,77 @@
*/
// Some Global Values
jform_vvvvwcdvxn_required = false;
jform_vvvvwcevxo_required = false;
jform_vvvvwcfvxp_required = false;
jform_vvvvwcgvxq_required = false;
jform_vvvvwchvxr_required = false;
jform_vvvvwckvxs_required = false;
jform_vvvvwckvxt_required = false;
jform_vvvvwckvxu_required = false;
jform_vvvvwckvxv_required = false;
jform_vvvvwclvxw_required = false;
jform_vvvvwclvxx_required = false;
jform_vvvvwclvxy_required = false;
jform_vvvvwclvxz_required = false;
jform_vvvvwczvxr_required = false;
jform_vvvvwdavxs_required = false;
jform_vvvvwdbvxt_required = false;
jform_vvvvwdcvxu_required = false;
jform_vvvvwddvxv_required = false;
jform_vvvvwdgvxw_required = false;
jform_vvvvwdgvxx_required = false;
jform_vvvvwdgvxy_required = false;
jform_vvvvwdgvxz_required = false;
jform_vvvvwdhvya_required = false;
jform_vvvvwdhvyb_required = false;
jform_vvvvwdhvyc_required = false;
jform_vvvvwdhvyd_required = false;
// Initial Script
jQuery(document).ready(function()
{
var datalenght_vvvvwcd = jQuery("#jform_datalenght").val();
vvvvwcd(datalenght_vvvvwcd);
var datalenght_vvvvwcz = jQuery("#jform_datalenght").val();
vvvvwcz(datalenght_vvvvwcz);
var datadefault_vvvvwce = jQuery("#jform_datadefault").val();
vvvvwce(datadefault_vvvvwce);
var datadefault_vvvvwda = jQuery("#jform_datadefault").val();
vvvvwda(datadefault_vvvvwda);
var datatype_vvvvwcf = jQuery("#jform_datatype").val();
vvvvwcf(datatype_vvvvwcf);
var datatype_vvvvwdb = jQuery("#jform_datatype").val();
vvvvwdb(datatype_vvvvwdb);
var datatype_vvvvwcg = jQuery("#jform_datatype").val();
vvvvwcg(datatype_vvvvwcg);
var datatype_vvvvwdc = jQuery("#jform_datatype").val();
vvvvwdc(datatype_vvvvwdc);
var datatype_vvvvwch = jQuery("#jform_datatype").val();
vvvvwch(datatype_vvvvwch);
var datatype_vvvvwdd = jQuery("#jform_datatype").val();
vvvvwdd(datatype_vvvvwdd);
var store_vvvvwci = jQuery("#jform_store").val();
var datatype_vvvvwci = jQuery("#jform_datatype").val();
vvvvwci(store_vvvvwci,datatype_vvvvwci);
var store_vvvvwde = jQuery("#jform_store").val();
var datatype_vvvvwde = jQuery("#jform_datatype").val();
vvvvwde(store_vvvvwde,datatype_vvvvwde);
var store_vvvvwck = jQuery("#jform_store").val();
var datatype_vvvvwck = jQuery("#jform_datatype").val();
vvvvwck(store_vvvvwck,datatype_vvvvwck);
var store_vvvvwdg = jQuery("#jform_store").val();
var datatype_vvvvwdg = jQuery("#jform_datatype").val();
vvvvwdg(store_vvvvwdg,datatype_vvvvwdg);
var datatype_vvvvwcl = jQuery("#jform_datatype").val();
var store_vvvvwcl = jQuery("#jform_store").val();
vvvvwcl(datatype_vvvvwcl,store_vvvvwcl);
var datatype_vvvvwdh = jQuery("#jform_datatype").val();
var store_vvvvwdh = jQuery("#jform_store").val();
vvvvwdh(datatype_vvvvwdh,store_vvvvwdh);
var add_css_view_vvvvwcm = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvwcm(add_css_view_vvvvwcm);
var add_css_view_vvvvwdi = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvwdi(add_css_view_vvvvwdi);
var add_css_views_vvvvwcn = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvwcn(add_css_views_vvvvwcn);
var add_css_views_vvvvwdj = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvwdj(add_css_views_vvvvwdj);
var add_javascript_view_footer_vvvvwco = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvwco(add_javascript_view_footer_vvvvwco);
var add_javascript_view_footer_vvvvwdk = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvwdk(add_javascript_view_footer_vvvvwdk);
var add_javascript_views_footer_vvvvwcp = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvwcp(add_javascript_views_footer_vvvvwcp);
var add_javascript_views_footer_vvvvwdl = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvwdl(add_javascript_views_footer_vvvvwdl);
});
// the vvvvwcd function
function vvvvwcd(datalenght_vvvvwcd)
// the vvvvwcz function
function vvvvwcz(datalenght_vvvvwcz)
{
if (isSet(datalenght_vvvvwcd) && datalenght_vvvvwcd.constructor !== Array)
if (isSet(datalenght_vvvvwcz) && datalenght_vvvvwcz.constructor !== Array)
{
var temp_vvvvwcd = datalenght_vvvvwcd;
var datalenght_vvvvwcd = [];
datalenght_vvvvwcd.push(temp_vvvvwcd);
var temp_vvvvwcz = datalenght_vvvvwcz;
var datalenght_vvvvwcz = [];
datalenght_vvvvwcz.push(temp_vvvvwcz);
}
else if (!isSet(datalenght_vvvvwcd))
else if (!isSet(datalenght_vvvvwcz))
{
var datalenght_vvvvwcd = [];
var datalenght_vvvvwcz = [];
}
var datalenght = datalenght_vvvvwcd.some(datalenght_vvvvwcd_SomeFunc);
var datalenght = datalenght_vvvvwcz.some(datalenght_vvvvwcz_SomeFunc);
// set this function logic
@ -87,55 +87,55 @@ function vvvvwcd(datalenght_vvvvwcd)
{
jQuery('#jform_datalenght_other').closest('.control-group').show();
// add required attribute to datalenght_other field
if (jform_vvvvwcdvxn_required)
if (jform_vvvvwczvxr_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_vvvvwcdvxn_required = false;
jform_vvvvwczvxr_required = false;
}
}
else
{
jQuery('#jform_datalenght_other').closest('.control-group').hide();
// remove required attribute from datalenght_other field
if (!jform_vvvvwcdvxn_required)
if (!jform_vvvvwczvxr_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_vvvvwcdvxn_required = true;
jform_vvvvwczvxr_required = true;
}
}
}
// the vvvvwcd Some function
function datalenght_vvvvwcd_SomeFunc(datalenght_vvvvwcd)
// the vvvvwcz Some function
function datalenght_vvvvwcz_SomeFunc(datalenght_vvvvwcz)
{
// set the function logic
if (datalenght_vvvvwcd == 'Other')
if (datalenght_vvvvwcz == 'Other')
{
return true;
}
return false;
}
// the vvvvwce function
function vvvvwce(datadefault_vvvvwce)
// the vvvvwda function
function vvvvwda(datadefault_vvvvwda)
{
if (isSet(datadefault_vvvvwce) && datadefault_vvvvwce.constructor !== Array)
if (isSet(datadefault_vvvvwda) && datadefault_vvvvwda.constructor !== Array)
{
var temp_vvvvwce = datadefault_vvvvwce;
var datadefault_vvvvwce = [];
datadefault_vvvvwce.push(temp_vvvvwce);
var temp_vvvvwda = datadefault_vvvvwda;
var datadefault_vvvvwda = [];
datadefault_vvvvwda.push(temp_vvvvwda);
}
else if (!isSet(datadefault_vvvvwce))
else if (!isSet(datadefault_vvvvwda))
{
var datadefault_vvvvwce = [];
var datadefault_vvvvwda = [];
}
var datadefault = datadefault_vvvvwce.some(datadefault_vvvvwce_SomeFunc);
var datadefault = datadefault_vvvvwda.some(datadefault_vvvvwda_SomeFunc);
// set this function logic
@ -143,55 +143,55 @@ function vvvvwce(datadefault_vvvvwce)
{
jQuery('#jform_datadefault_other').closest('.control-group').show();
// add required attribute to datadefault_other field
if (jform_vvvvwcevxo_required)
if (jform_vvvvwdavxs_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_vvvvwcevxo_required = false;
jform_vvvvwdavxs_required = false;
}
}
else
{
jQuery('#jform_datadefault_other').closest('.control-group').hide();
// remove required attribute from datadefault_other field
if (!jform_vvvvwcevxo_required)
if (!jform_vvvvwdavxs_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_vvvvwcevxo_required = true;
jform_vvvvwdavxs_required = true;
}
}
}
// the vvvvwce Some function
function datadefault_vvvvwce_SomeFunc(datadefault_vvvvwce)
// the vvvvwda Some function
function datadefault_vvvvwda_SomeFunc(datadefault_vvvvwda)
{
// set the function logic
if (datadefault_vvvvwce == 'Other')
if (datadefault_vvvvwda == 'Other')
{
return true;
}
return false;
}
// the vvvvwcf function
function vvvvwcf(datatype_vvvvwcf)
// the vvvvwdb function
function vvvvwdb(datatype_vvvvwdb)
{
if (isSet(datatype_vvvvwcf) && datatype_vvvvwcf.constructor !== Array)
if (isSet(datatype_vvvvwdb) && datatype_vvvvwdb.constructor !== Array)
{
var temp_vvvvwcf = datatype_vvvvwcf;
var datatype_vvvvwcf = [];
datatype_vvvvwcf.push(temp_vvvvwcf);
var temp_vvvvwdb = datatype_vvvvwdb;
var datatype_vvvvwdb = [];
datatype_vvvvwdb.push(temp_vvvvwdb);
}
else if (!isSet(datatype_vvvvwcf))
else if (!isSet(datatype_vvvvwdb))
{
var datatype_vvvvwcf = [];
var datatype_vvvvwdb = [];
}
var datatype = datatype_vvvvwcf.some(datatype_vvvvwcf_SomeFunc);
var datatype = datatype_vvvvwdb.some(datatype_vvvvwdb_SomeFunc);
// set this function logic
@ -200,13 +200,13 @@ function vvvvwcf(datatype_vvvvwcf)
jQuery('#jform_datadefault').closest('.control-group').show();
jQuery('#jform_indexes').closest('.control-group').show();
// add required attribute to indexes field
if (jform_vvvvwcfvxp_required)
if (jform_vvvvwdbvxt_required)
{
updateFieldRequired('indexes',0);
jQuery('#jform_indexes').prop('required','required');
jQuery('#jform_indexes').attr('aria-required',true);
jQuery('#jform_indexes').addClass('required');
jform_vvvvwcfvxp_required = false;
jform_vvvvwdbvxt_required = false;
}
}
else
@ -214,42 +214,42 @@ function vvvvwcf(datatype_vvvvwcf)
jQuery('#jform_datadefault').closest('.control-group').hide();
jQuery('#jform_indexes').closest('.control-group').hide();
// remove required attribute from indexes field
if (!jform_vvvvwcfvxp_required)
if (!jform_vvvvwdbvxt_required)
{
updateFieldRequired('indexes',1);
jQuery('#jform_indexes').removeAttr('required');
jQuery('#jform_indexes').removeAttr('aria-required');
jQuery('#jform_indexes').removeClass('required');
jform_vvvvwcfvxp_required = true;
jform_vvvvwdbvxt_required = true;
}
}
}
// the vvvvwcf Some function
function datatype_vvvvwcf_SomeFunc(datatype_vvvvwcf)
// the vvvvwdb Some function
function datatype_vvvvwdb_SomeFunc(datatype_vvvvwdb)
{
// set the function logic
if (datatype_vvvvwcf == 'CHAR' || datatype_vvvvwcf == 'VARCHAR' || datatype_vvvvwcf == 'DATETIME' || datatype_vvvvwcf == 'DATE' || datatype_vvvvwcf == 'TIME' || datatype_vvvvwcf == 'INT' || datatype_vvvvwcf == 'TINYINT' || datatype_vvvvwcf == 'BIGINT' || datatype_vvvvwcf == 'FLOAT' || datatype_vvvvwcf == 'DECIMAL' || datatype_vvvvwcf == 'DOUBLE')
if (datatype_vvvvwdb == 'CHAR' || datatype_vvvvwdb == 'VARCHAR' || datatype_vvvvwdb == 'DATETIME' || datatype_vvvvwdb == 'DATE' || datatype_vvvvwdb == 'TIME' || datatype_vvvvwdb == 'INT' || datatype_vvvvwdb == 'TINYINT' || datatype_vvvvwdb == 'BIGINT' || datatype_vvvvwdb == 'FLOAT' || datatype_vvvvwdb == 'DECIMAL' || datatype_vvvvwdb == 'DOUBLE')
{
return true;
}
return false;
}
// the vvvvwcg function
function vvvvwcg(datatype_vvvvwcg)
// the vvvvwdc function
function vvvvwdc(datatype_vvvvwdc)
{
if (isSet(datatype_vvvvwcg) && datatype_vvvvwcg.constructor !== Array)
if (isSet(datatype_vvvvwdc) && datatype_vvvvwdc.constructor !== Array)
{
var temp_vvvvwcg = datatype_vvvvwcg;
var datatype_vvvvwcg = [];
datatype_vvvvwcg.push(temp_vvvvwcg);
var temp_vvvvwdc = datatype_vvvvwdc;
var datatype_vvvvwdc = [];
datatype_vvvvwdc.push(temp_vvvvwdc);
}
else if (!isSet(datatype_vvvvwcg))
else if (!isSet(datatype_vvvvwdc))
{
var datatype_vvvvwcg = [];
var datatype_vvvvwdc = [];
}
var datatype = datatype_vvvvwcg.some(datatype_vvvvwcg_SomeFunc);
var datatype = datatype_vvvvwdc.some(datatype_vvvvwdc_SomeFunc);
// set this function logic
@ -257,55 +257,55 @@ function vvvvwcg(datatype_vvvvwcg)
{
jQuery('#jform_datalenght').closest('.control-group').show();
// add required attribute to datalenght field
if (jform_vvvvwcgvxq_required)
if (jform_vvvvwdcvxu_required)
{
updateFieldRequired('datalenght',0);
jQuery('#jform_datalenght').prop('required','required');
jQuery('#jform_datalenght').attr('aria-required',true);
jQuery('#jform_datalenght').addClass('required');
jform_vvvvwcgvxq_required = false;
jform_vvvvwdcvxu_required = false;
}
}
else
{
jQuery('#jform_datalenght').closest('.control-group').hide();
// remove required attribute from datalenght field
if (!jform_vvvvwcgvxq_required)
if (!jform_vvvvwdcvxu_required)
{
updateFieldRequired('datalenght',1);
jQuery('#jform_datalenght').removeAttr('required');
jQuery('#jform_datalenght').removeAttr('aria-required');
jQuery('#jform_datalenght').removeClass('required');
jform_vvvvwcgvxq_required = true;
jform_vvvvwdcvxu_required = true;
}
}
}
// the vvvvwcg Some function
function datatype_vvvvwcg_SomeFunc(datatype_vvvvwcg)
// the vvvvwdc Some function
function datatype_vvvvwdc_SomeFunc(datatype_vvvvwdc)
{
// set the function logic
if (datatype_vvvvwcg == 'CHAR' || datatype_vvvvwcg == 'VARCHAR' || datatype_vvvvwcg == 'INT' || datatype_vvvvwcg == 'TINYINT' || datatype_vvvvwcg == 'BIGINT' || datatype_vvvvwcg == 'FLOAT' || datatype_vvvvwcg == 'DECIMAL' || datatype_vvvvwcg == 'DOUBLE')
if (datatype_vvvvwdc == 'CHAR' || datatype_vvvvwdc == 'VARCHAR' || datatype_vvvvwdc == 'INT' || datatype_vvvvwdc == 'TINYINT' || datatype_vvvvwdc == 'BIGINT' || datatype_vvvvwdc == 'FLOAT' || datatype_vvvvwdc == 'DECIMAL' || datatype_vvvvwdc == 'DOUBLE')
{
return true;
}
return false;
}
// the vvvvwch function
function vvvvwch(datatype_vvvvwch)
// the vvvvwdd function
function vvvvwdd(datatype_vvvvwdd)
{
if (isSet(datatype_vvvvwch) && datatype_vvvvwch.constructor !== Array)
if (isSet(datatype_vvvvwdd) && datatype_vvvvwdd.constructor !== Array)
{
var temp_vvvvwch = datatype_vvvvwch;
var datatype_vvvvwch = [];
datatype_vvvvwch.push(temp_vvvvwch);
var temp_vvvvwdd = datatype_vvvvwdd;
var datatype_vvvvwdd = [];
datatype_vvvvwdd.push(temp_vvvvwdd);
}
else if (!isSet(datatype_vvvvwch))
else if (!isSet(datatype_vvvvwdd))
{
var datatype_vvvvwch = [];
var datatype_vvvvwdd = [];
}
var datatype = datatype_vvvvwch.some(datatype_vvvvwch_SomeFunc);
var datatype = datatype_vvvvwdd.some(datatype_vvvvwdd_SomeFunc);
// set this function logic
@ -313,67 +313,67 @@ function vvvvwch(datatype_vvvvwch)
{
jQuery('#jform_store').closest('.control-group').show();
// add required attribute to store field
if (jform_vvvvwchvxr_required)
if (jform_vvvvwddvxv_required)
{
updateFieldRequired('store',0);
jQuery('#jform_store').prop('required','required');
jQuery('#jform_store').attr('aria-required',true);
jQuery('#jform_store').addClass('required');
jform_vvvvwchvxr_required = false;
jform_vvvvwddvxv_required = false;
}
}
else
{
jQuery('#jform_store').closest('.control-group').hide();
// remove required attribute from store field
if (!jform_vvvvwchvxr_required)
if (!jform_vvvvwddvxv_required)
{
updateFieldRequired('store',1);
jQuery('#jform_store').removeAttr('required');
jQuery('#jform_store').removeAttr('aria-required');
jQuery('#jform_store').removeClass('required');
jform_vvvvwchvxr_required = true;
jform_vvvvwddvxv_required = true;
}
}
}
// the vvvvwch Some function
function datatype_vvvvwch_SomeFunc(datatype_vvvvwch)
// the vvvvwdd Some function
function datatype_vvvvwdd_SomeFunc(datatype_vvvvwdd)
{
// set the function logic
if (datatype_vvvvwch == 'CHAR' || datatype_vvvvwch == 'VARCHAR' || datatype_vvvvwch == 'TEXT' || datatype_vvvvwch == 'MEDIUMTEXT' || datatype_vvvvwch == 'LONGTEXT' || datatype_vvvvwch == 'BLOB' || datatype_vvvvwch == 'TINYBLOB' || datatype_vvvvwch == 'MEDIUMBLOB' || datatype_vvvvwch == 'LONGBLOB')
if (datatype_vvvvwdd == 'CHAR' || datatype_vvvvwdd == 'VARCHAR' || datatype_vvvvwdd == 'TEXT' || datatype_vvvvwdd == 'MEDIUMTEXT' || datatype_vvvvwdd == 'LONGTEXT' || datatype_vvvvwdd == 'BLOB' || datatype_vvvvwdd == 'TINYBLOB' || datatype_vvvvwdd == 'MEDIUMBLOB' || datatype_vvvvwdd == 'LONGBLOB')
{
return true;
}
return false;
}
// the vvvvwci function
function vvvvwci(store_vvvvwci,datatype_vvvvwci)
// the vvvvwde function
function vvvvwde(store_vvvvwde,datatype_vvvvwde)
{
if (isSet(store_vvvvwci) && store_vvvvwci.constructor !== Array)
if (isSet(store_vvvvwde) && store_vvvvwde.constructor !== Array)
{
var temp_vvvvwci = store_vvvvwci;
var store_vvvvwci = [];
store_vvvvwci.push(temp_vvvvwci);
var temp_vvvvwde = store_vvvvwde;
var store_vvvvwde = [];
store_vvvvwde.push(temp_vvvvwde);
}
else if (!isSet(store_vvvvwci))
else if (!isSet(store_vvvvwde))
{
var store_vvvvwci = [];
var store_vvvvwde = [];
}
var store = store_vvvvwci.some(store_vvvvwci_SomeFunc);
var store = store_vvvvwde.some(store_vvvvwde_SomeFunc);
if (isSet(datatype_vvvvwci) && datatype_vvvvwci.constructor !== Array)
if (isSet(datatype_vvvvwde) && datatype_vvvvwde.constructor !== Array)
{
var temp_vvvvwci = datatype_vvvvwci;
var datatype_vvvvwci = [];
datatype_vvvvwci.push(temp_vvvvwci);
var temp_vvvvwde = datatype_vvvvwde;
var datatype_vvvvwde = [];
datatype_vvvvwde.push(temp_vvvvwde);
}
else if (!isSet(datatype_vvvvwci))
else if (!isSet(datatype_vvvvwde))
{
var datatype_vvvvwci = [];
var datatype_vvvvwde = [];
}
var datatype = datatype_vvvvwci.some(datatype_vvvvwci_SomeFunc);
var datatype = datatype_vvvvwde.some(datatype_vvvvwde_SomeFunc);
// set this function logic
@ -387,54 +387,54 @@ function vvvvwci(store_vvvvwci,datatype_vvvvwci)
}
}
// the vvvvwci Some function
function store_vvvvwci_SomeFunc(store_vvvvwci)
// the vvvvwde Some function
function store_vvvvwde_SomeFunc(store_vvvvwde)
{
// set the function logic
if (store_vvvvwci == 4)
if (store_vvvvwde == 4)
{
return true;
}
return false;
}
// the vvvvwci Some function
function datatype_vvvvwci_SomeFunc(datatype_vvvvwci)
// the vvvvwde Some function
function datatype_vvvvwde_SomeFunc(datatype_vvvvwde)
{
// set the function logic
if (datatype_vvvvwci == 'CHAR' || datatype_vvvvwci == 'VARCHAR' || datatype_vvvvwci == 'TEXT' || datatype_vvvvwci == 'MEDIUMTEXT' || datatype_vvvvwci == 'LONGTEXT' || datatype_vvvvwci == 'BLOB' || datatype_vvvvwci == 'TINYBLOB' || datatype_vvvvwci == 'MEDIUMBLOB' || datatype_vvvvwci == 'LONGBLOB')
if (datatype_vvvvwde == 'CHAR' || datatype_vvvvwde == 'VARCHAR' || datatype_vvvvwde == 'TEXT' || datatype_vvvvwde == 'MEDIUMTEXT' || datatype_vvvvwde == 'LONGTEXT' || datatype_vvvvwde == 'BLOB' || datatype_vvvvwde == 'TINYBLOB' || datatype_vvvvwde == 'MEDIUMBLOB' || datatype_vvvvwde == 'LONGBLOB')
{
return true;
}
return false;
}
// the vvvvwck function
function vvvvwck(store_vvvvwck,datatype_vvvvwck)
// the vvvvwdg function
function vvvvwdg(store_vvvvwdg,datatype_vvvvwdg)
{
if (isSet(store_vvvvwck) && store_vvvvwck.constructor !== Array)
if (isSet(store_vvvvwdg) && store_vvvvwdg.constructor !== Array)
{
var temp_vvvvwck = store_vvvvwck;
var store_vvvvwck = [];
store_vvvvwck.push(temp_vvvvwck);
var temp_vvvvwdg = store_vvvvwdg;
var store_vvvvwdg = [];
store_vvvvwdg.push(temp_vvvvwdg);
}
else if (!isSet(store_vvvvwck))
else if (!isSet(store_vvvvwdg))
{
var store_vvvvwck = [];
var store_vvvvwdg = [];
}
var store = store_vvvvwck.some(store_vvvvwck_SomeFunc);
var store = store_vvvvwdg.some(store_vvvvwdg_SomeFunc);
if (isSet(datatype_vvvvwck) && datatype_vvvvwck.constructor !== Array)
if (isSet(datatype_vvvvwdg) && datatype_vvvvwdg.constructor !== Array)
{
var temp_vvvvwck = datatype_vvvvwck;
var datatype_vvvvwck = [];
datatype_vvvvwck.push(temp_vvvvwck);
var temp_vvvvwdg = datatype_vvvvwdg;
var datatype_vvvvwdg = [];
datatype_vvvvwdg.push(temp_vvvvwdg);
}
else if (!isSet(datatype_vvvvwck))
else if (!isSet(datatype_vvvvwdg))
{
var datatype_vvvvwck = [];
var datatype_vvvvwdg = [];
}
var datatype = datatype_vvvvwck.some(datatype_vvvvwck_SomeFunc);
var datatype = datatype_vvvvwdg.some(datatype_vvvvwdg_SomeFunc);
// set this function logic
@ -442,140 +442,140 @@ function vvvvwck(store_vvvvwck,datatype_vvvvwck)
{
jQuery('#jform_initiator_on_get_model').closest('.control-group').show();
// add required attribute to initiator_on_get_model field
if (jform_vvvvwckvxs_required)
if (jform_vvvvwdgvxw_required)
{
updateFieldRequired('initiator_on_get_model',0);
jQuery('#jform_initiator_on_get_model').prop('required','required');
jQuery('#jform_initiator_on_get_model').attr('aria-required',true);
jQuery('#jform_initiator_on_get_model').addClass('required');
jform_vvvvwckvxs_required = false;
jform_vvvvwdgvxw_required = false;
}
jQuery('#jform_initiator_on_save_model').closest('.control-group').show();
// add required attribute to initiator_on_save_model field
if (jform_vvvvwckvxt_required)
if (jform_vvvvwdgvxx_required)
{
updateFieldRequired('initiator_on_save_model',0);
jQuery('#jform_initiator_on_save_model').prop('required','required');
jQuery('#jform_initiator_on_save_model').attr('aria-required',true);
jQuery('#jform_initiator_on_save_model').addClass('required');
jform_vvvvwckvxt_required = false;
jform_vvvvwdgvxx_required = false;
}
jQuery('#jform_on_save_model_field').closest('.control-group').show();
// add required attribute to on_save_model_field field
if (jform_vvvvwckvxu_required)
if (jform_vvvvwdgvxy_required)
{
updateFieldRequired('on_save_model_field',0);
jQuery('#jform_on_save_model_field').prop('required','required');
jQuery('#jform_on_save_model_field').attr('aria-required',true);
jQuery('#jform_on_save_model_field').addClass('required');
jform_vvvvwckvxu_required = false;
jform_vvvvwdgvxy_required = false;
}
jQuery('.note_expert_field_save_mode').closest('.control-group').show();
jQuery('#jform_on_get_model_field').closest('.control-group').show();
// add required attribute to on_get_model_field field
if (jform_vvvvwckvxv_required)
if (jform_vvvvwdgvxz_required)
{
updateFieldRequired('on_get_model_field',0);
jQuery('#jform_on_get_model_field').prop('required','required');
jQuery('#jform_on_get_model_field').attr('aria-required',true);
jQuery('#jform_on_get_model_field').addClass('required');
jform_vvvvwckvxv_required = false;
jform_vvvvwdgvxz_required = false;
}
}
else
{
jQuery('#jform_initiator_on_get_model').closest('.control-group').hide();
// remove required attribute from initiator_on_get_model field
if (!jform_vvvvwckvxs_required)
if (!jform_vvvvwdgvxw_required)
{
updateFieldRequired('initiator_on_get_model',1);
jQuery('#jform_initiator_on_get_model').removeAttr('required');
jQuery('#jform_initiator_on_get_model').removeAttr('aria-required');
jQuery('#jform_initiator_on_get_model').removeClass('required');
jform_vvvvwckvxs_required = true;
jform_vvvvwdgvxw_required = true;
}
jQuery('#jform_initiator_on_save_model').closest('.control-group').hide();
// remove required attribute from initiator_on_save_model field
if (!jform_vvvvwckvxt_required)
if (!jform_vvvvwdgvxx_required)
{
updateFieldRequired('initiator_on_save_model',1);
jQuery('#jform_initiator_on_save_model').removeAttr('required');
jQuery('#jform_initiator_on_save_model').removeAttr('aria-required');
jQuery('#jform_initiator_on_save_model').removeClass('required');
jform_vvvvwckvxt_required = true;
jform_vvvvwdgvxx_required = true;
}
jQuery('#jform_on_save_model_field').closest('.control-group').hide();
// remove required attribute from on_save_model_field field
if (!jform_vvvvwckvxu_required)
if (!jform_vvvvwdgvxy_required)
{
updateFieldRequired('on_save_model_field',1);
jQuery('#jform_on_save_model_field').removeAttr('required');
jQuery('#jform_on_save_model_field').removeAttr('aria-required');
jQuery('#jform_on_save_model_field').removeClass('required');
jform_vvvvwckvxu_required = true;
jform_vvvvwdgvxy_required = true;
}
jQuery('.note_expert_field_save_mode').closest('.control-group').hide();
jQuery('#jform_on_get_model_field').closest('.control-group').hide();
// remove required attribute from on_get_model_field field
if (!jform_vvvvwckvxv_required)
if (!jform_vvvvwdgvxz_required)
{
updateFieldRequired('on_get_model_field',1);
jQuery('#jform_on_get_model_field').removeAttr('required');
jQuery('#jform_on_get_model_field').removeAttr('aria-required');
jQuery('#jform_on_get_model_field').removeClass('required');
jform_vvvvwckvxv_required = true;
jform_vvvvwdgvxz_required = true;
}
}
}
// the vvvvwck Some function
function store_vvvvwck_SomeFunc(store_vvvvwck)
// the vvvvwdg Some function
function store_vvvvwdg_SomeFunc(store_vvvvwdg)
{
// set the function logic
if (store_vvvvwck == 6)
if (store_vvvvwdg == 6)
{
return true;
}
return false;
}
// the vvvvwck Some function
function datatype_vvvvwck_SomeFunc(datatype_vvvvwck)
// the vvvvwdg Some function
function datatype_vvvvwdg_SomeFunc(datatype_vvvvwdg)
{
// set the function logic
if (datatype_vvvvwck == 'CHAR' || datatype_vvvvwck == 'VARCHAR' || datatype_vvvvwck == 'TEXT' || datatype_vvvvwck == 'MEDIUMTEXT' || datatype_vvvvwck == 'LONGTEXT' || datatype_vvvvwck == 'BLOB' || datatype_vvvvwck == 'TINYBLOB' || datatype_vvvvwck == 'MEDIUMBLOB' || datatype_vvvvwck == 'LONGBLOB')
if (datatype_vvvvwdg == 'CHAR' || datatype_vvvvwdg == 'VARCHAR' || datatype_vvvvwdg == 'TEXT' || datatype_vvvvwdg == 'MEDIUMTEXT' || datatype_vvvvwdg == 'LONGTEXT' || datatype_vvvvwdg == 'BLOB' || datatype_vvvvwdg == 'TINYBLOB' || datatype_vvvvwdg == 'MEDIUMBLOB' || datatype_vvvvwdg == 'LONGBLOB')
{
return true;
}
return false;
}
// the vvvvwcl function
function vvvvwcl(datatype_vvvvwcl,store_vvvvwcl)
// the vvvvwdh function
function vvvvwdh(datatype_vvvvwdh,store_vvvvwdh)
{
if (isSet(datatype_vvvvwcl) && datatype_vvvvwcl.constructor !== Array)
if (isSet(datatype_vvvvwdh) && datatype_vvvvwdh.constructor !== Array)
{
var temp_vvvvwcl = datatype_vvvvwcl;
var datatype_vvvvwcl = [];
datatype_vvvvwcl.push(temp_vvvvwcl);
var temp_vvvvwdh = datatype_vvvvwdh;
var datatype_vvvvwdh = [];
datatype_vvvvwdh.push(temp_vvvvwdh);
}
else if (!isSet(datatype_vvvvwcl))
else if (!isSet(datatype_vvvvwdh))
{
var datatype_vvvvwcl = [];
var datatype_vvvvwdh = [];
}
var datatype = datatype_vvvvwcl.some(datatype_vvvvwcl_SomeFunc);
var datatype = datatype_vvvvwdh.some(datatype_vvvvwdh_SomeFunc);
if (isSet(store_vvvvwcl) && store_vvvvwcl.constructor !== Array)
if (isSet(store_vvvvwdh) && store_vvvvwdh.constructor !== Array)
{
var temp_vvvvwcl = store_vvvvwcl;
var store_vvvvwcl = [];
store_vvvvwcl.push(temp_vvvvwcl);
var temp_vvvvwdh = store_vvvvwdh;
var store_vvvvwdh = [];
store_vvvvwdh.push(temp_vvvvwdh);
}
else if (!isSet(store_vvvvwcl))
else if (!isSet(store_vvvvwdh))
{
var store_vvvvwcl = [];
var store_vvvvwdh = [];
}
var store = store_vvvvwcl.some(store_vvvvwcl_SomeFunc);
var store = store_vvvvwdh.some(store_vvvvwdh_SomeFunc);
// set this function logic
@ -583,119 +583,119 @@ function vvvvwcl(datatype_vvvvwcl,store_vvvvwcl)
{
jQuery('#jform_initiator_on_get_model').closest('.control-group').show();
// add required attribute to initiator_on_get_model field
if (jform_vvvvwclvxw_required)
if (jform_vvvvwdhvya_required)
{
updateFieldRequired('initiator_on_get_model',0);
jQuery('#jform_initiator_on_get_model').prop('required','required');
jQuery('#jform_initiator_on_get_model').attr('aria-required',true);
jQuery('#jform_initiator_on_get_model').addClass('required');
jform_vvvvwclvxw_required = false;
jform_vvvvwdhvya_required = false;
}
jQuery('#jform_initiator_on_save_model').closest('.control-group').show();
// add required attribute to initiator_on_save_model field
if (jform_vvvvwclvxx_required)
if (jform_vvvvwdhvyb_required)
{
updateFieldRequired('initiator_on_save_model',0);
jQuery('#jform_initiator_on_save_model').prop('required','required');
jQuery('#jform_initiator_on_save_model').attr('aria-required',true);
jQuery('#jform_initiator_on_save_model').addClass('required');
jform_vvvvwclvxx_required = false;
jform_vvvvwdhvyb_required = false;
}
jQuery('#jform_on_save_model_field').closest('.control-group').show();
// add required attribute to on_save_model_field field
if (jform_vvvvwclvxy_required)
if (jform_vvvvwdhvyc_required)
{
updateFieldRequired('on_save_model_field',0);
jQuery('#jform_on_save_model_field').prop('required','required');
jQuery('#jform_on_save_model_field').attr('aria-required',true);
jQuery('#jform_on_save_model_field').addClass('required');
jform_vvvvwclvxy_required = false;
jform_vvvvwdhvyc_required = false;
}
jQuery('.note_expert_field_save_mode').closest('.control-group').show();
jQuery('#jform_on_get_model_field').closest('.control-group').show();
// add required attribute to on_get_model_field field
if (jform_vvvvwclvxz_required)
if (jform_vvvvwdhvyd_required)
{
updateFieldRequired('on_get_model_field',0);
jQuery('#jform_on_get_model_field').prop('required','required');
jQuery('#jform_on_get_model_field').attr('aria-required',true);
jQuery('#jform_on_get_model_field').addClass('required');
jform_vvvvwclvxz_required = false;
jform_vvvvwdhvyd_required = false;
}
}
else
{
jQuery('#jform_initiator_on_get_model').closest('.control-group').hide();
// remove required attribute from initiator_on_get_model field
if (!jform_vvvvwclvxw_required)
if (!jform_vvvvwdhvya_required)
{
updateFieldRequired('initiator_on_get_model',1);
jQuery('#jform_initiator_on_get_model').removeAttr('required');
jQuery('#jform_initiator_on_get_model').removeAttr('aria-required');
jQuery('#jform_initiator_on_get_model').removeClass('required');
jform_vvvvwclvxw_required = true;
jform_vvvvwdhvya_required = true;
}
jQuery('#jform_initiator_on_save_model').closest('.control-group').hide();
// remove required attribute from initiator_on_save_model field
if (!jform_vvvvwclvxx_required)
if (!jform_vvvvwdhvyb_required)
{
updateFieldRequired('initiator_on_save_model',1);
jQuery('#jform_initiator_on_save_model').removeAttr('required');
jQuery('#jform_initiator_on_save_model').removeAttr('aria-required');
jQuery('#jform_initiator_on_save_model').removeClass('required');
jform_vvvvwclvxx_required = true;
jform_vvvvwdhvyb_required = true;
}
jQuery('#jform_on_save_model_field').closest('.control-group').hide();
// remove required attribute from on_save_model_field field
if (!jform_vvvvwclvxy_required)
if (!jform_vvvvwdhvyc_required)
{
updateFieldRequired('on_save_model_field',1);
jQuery('#jform_on_save_model_field').removeAttr('required');
jQuery('#jform_on_save_model_field').removeAttr('aria-required');
jQuery('#jform_on_save_model_field').removeClass('required');
jform_vvvvwclvxy_required = true;
jform_vvvvwdhvyc_required = true;
}
jQuery('.note_expert_field_save_mode').closest('.control-group').hide();
jQuery('#jform_on_get_model_field').closest('.control-group').hide();
// remove required attribute from on_get_model_field field
if (!jform_vvvvwclvxz_required)
if (!jform_vvvvwdhvyd_required)
{
updateFieldRequired('on_get_model_field',1);
jQuery('#jform_on_get_model_field').removeAttr('required');
jQuery('#jform_on_get_model_field').removeAttr('aria-required');
jQuery('#jform_on_get_model_field').removeClass('required');
jform_vvvvwclvxz_required = true;
jform_vvvvwdhvyd_required = true;
}
}
}
// the vvvvwcl Some function
function datatype_vvvvwcl_SomeFunc(datatype_vvvvwcl)
// the vvvvwdh Some function
function datatype_vvvvwdh_SomeFunc(datatype_vvvvwdh)
{
// set the function logic
if (datatype_vvvvwcl == 'CHAR' || datatype_vvvvwcl == 'VARCHAR' || datatype_vvvvwcl == 'TEXT' || datatype_vvvvwcl == 'MEDIUMTEXT' || datatype_vvvvwcl == 'LONGTEXT' || datatype_vvvvwcl == 'BLOB' || datatype_vvvvwcl == 'TINYBLOB' || datatype_vvvvwcl == 'MEDIUMBLOB' || datatype_vvvvwcl == 'LONGBLOB')
if (datatype_vvvvwdh == 'CHAR' || datatype_vvvvwdh == 'VARCHAR' || datatype_vvvvwdh == 'TEXT' || datatype_vvvvwdh == 'MEDIUMTEXT' || datatype_vvvvwdh == 'LONGTEXT' || datatype_vvvvwdh == 'BLOB' || datatype_vvvvwdh == 'TINYBLOB' || datatype_vvvvwdh == 'MEDIUMBLOB' || datatype_vvvvwdh == 'LONGBLOB')
{
return true;
}
return false;
}
// the vvvvwcl Some function
function store_vvvvwcl_SomeFunc(store_vvvvwcl)
// the vvvvwdh Some function
function store_vvvvwdh_SomeFunc(store_vvvvwdh)
{
// set the function logic
if (store_vvvvwcl == 6)
if (store_vvvvwdh == 6)
{
return true;
}
return false;
}
// the vvvvwcm function
function vvvvwcm(add_css_view_vvvvwcm)
// the vvvvwdi function
function vvvvwdi(add_css_view_vvvvwdi)
{
// set the function logic
if (add_css_view_vvvvwcm == 1)
if (add_css_view_vvvvwdi == 1)
{
jQuery('#jform_css_view-lbl').closest('.control-group').show();
}
@ -705,11 +705,11 @@ function vvvvwcm(add_css_view_vvvvwcm)
}
}
// the vvvvwcn function
function vvvvwcn(add_css_views_vvvvwcn)
// the vvvvwdj function
function vvvvwdj(add_css_views_vvvvwdj)
{
// set the function logic
if (add_css_views_vvvvwcn == 1)
if (add_css_views_vvvvwdj == 1)
{
jQuery('#jform_css_views-lbl').closest('.control-group').show();
}
@ -719,11 +719,11 @@ function vvvvwcn(add_css_views_vvvvwcn)
}
}
// the vvvvwco function
function vvvvwco(add_javascript_view_footer_vvvvwco)
// the vvvvwdk function
function vvvvwdk(add_javascript_view_footer_vvvvwdk)
{
// set the function logic
if (add_javascript_view_footer_vvvvwco == 1)
if (add_javascript_view_footer_vvvvwdk == 1)
{
jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show();
}
@ -733,11 +733,11 @@ function vvvvwco(add_javascript_view_footer_vvvvwco)
}
}
// the vvvvwcp function
function vvvvwcp(add_javascript_views_footer_vvvvwcp)
// the vvvvwdl function
function vvvvwdl(add_javascript_views_footer_vvvvwdl)
{
// set the function logic
if (add_javascript_views_footer_vvvvwcp == 1)
if (add_javascript_views_footer_vvvvwdl == 1)
{
jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show();
}

File diff suppressed because it is too large Load Diff

View File

@ -9,112 +9,112 @@
*/
// Some Global Values
jform_vvvvwdovyt_required = false;
jform_vvvvwdpvyu_required = false;
jform_vvvvwdqvyv_required = false;
jform_vvvvwdrvyw_required = false;
jform_vvvvwdtvyx_required = false;
jform_vvvvwekvyx_required = false;
jform_vvvvwelvyy_required = false;
jform_vvvvwemvyz_required = false;
jform_vvvvwenvza_required = false;
jform_vvvvwepvzb_required = false;
// Initial Script
jQuery(document).ready(function()
{
var location_vvvvwdo = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwdo(location_vvvvwdo);
var location_vvvvwek = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwek(location_vvvvwek);
var location_vvvvwdp = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwdp(location_vvvvwdp);
var location_vvvvwel = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwel(location_vvvvwel);
var type_vvvvwdq = jQuery("#jform_type").val();
vvvvwdq(type_vvvvwdq);
var type_vvvvwem = jQuery("#jform_type").val();
vvvvwem(type_vvvvwem);
var type_vvvvwdr = jQuery("#jform_type").val();
vvvvwdr(type_vvvvwdr);
var type_vvvvwen = jQuery("#jform_type").val();
vvvvwen(type_vvvvwen);
var type_vvvvwds = jQuery("#jform_type").val();
vvvvwds(type_vvvvwds);
var type_vvvvweo = jQuery("#jform_type").val();
vvvvweo(type_vvvvweo);
var target_vvvvwdt = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwdt(target_vvvvwdt);
var target_vvvvwep = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwep(target_vvvvwep);
});
// the vvvvwdo function
function vvvvwdo(location_vvvvwdo)
// the vvvvwek function
function vvvvwek(location_vvvvwek)
{
// set the function logic
if (location_vvvvwdo == 1)
if (location_vvvvwek == 1)
{
jQuery('#jform_admin_view').closest('.control-group').show();
// add required attribute to admin_view field
if (jform_vvvvwdovyt_required)
if (jform_vvvvwekvyx_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_vvvvwdovyt_required = false;
jform_vvvvwekvyx_required = false;
}
}
else
{
jQuery('#jform_admin_view').closest('.control-group').hide();
// remove required attribute from admin_view field
if (!jform_vvvvwdovyt_required)
if (!jform_vvvvwekvyx_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_vvvvwdovyt_required = true;
jform_vvvvwekvyx_required = true;
}
}
}
// the vvvvwdp function
function vvvvwdp(location_vvvvwdp)
// the vvvvwel function
function vvvvwel(location_vvvvwel)
{
// set the function logic
if (location_vvvvwdp == 2)
if (location_vvvvwel == 2)
{
jQuery('#jform_site_view').closest('.control-group').show();
// add required attribute to site_view field
if (jform_vvvvwdpvyu_required)
if (jform_vvvvwelvyy_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_vvvvwdpvyu_required = false;
jform_vvvvwelvyy_required = false;
}
}
else
{
jQuery('#jform_site_view').closest('.control-group').hide();
// remove required attribute from site_view field
if (!jform_vvvvwdpvyu_required)
if (!jform_vvvvwelvyy_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_vvvvwdpvyu_required = true;
jform_vvvvwelvyy_required = true;
}
}
}
// the vvvvwdq function
function vvvvwdq(type_vvvvwdq)
// the vvvvwem function
function vvvvwem(type_vvvvwem)
{
if (isSet(type_vvvvwdq) && type_vvvvwdq.constructor !== Array)
if (isSet(type_vvvvwem) && type_vvvvwem.constructor !== Array)
{
var temp_vvvvwdq = type_vvvvwdq;
var type_vvvvwdq = [];
type_vvvvwdq.push(temp_vvvvwdq);
var temp_vvvvwem = type_vvvvwem;
var type_vvvvwem = [];
type_vvvvwem.push(temp_vvvvwem);
}
else if (!isSet(type_vvvvwdq))
else if (!isSet(type_vvvvwem))
{
var type_vvvvwdq = [];
var type_vvvvwem = [];
}
var type = type_vvvvwdq.some(type_vvvvwdq_SomeFunc);
var type = type_vvvvwem.some(type_vvvvwem_SomeFunc);
// set this function logic
@ -122,55 +122,55 @@ function vvvvwdq(type_vvvvwdq)
{
jQuery('#jform_url').closest('.control-group').show();
// add required attribute to url field
if (jform_vvvvwdqvyv_required)
if (jform_vvvvwemvyz_required)
{
updateFieldRequired('url',0);
jQuery('#jform_url').prop('required','required');
jQuery('#jform_url').attr('aria-required',true);
jQuery('#jform_url').addClass('required');
jform_vvvvwdqvyv_required = false;
jform_vvvvwemvyz_required = false;
}
}
else
{
jQuery('#jform_url').closest('.control-group').hide();
// remove required attribute from url field
if (!jform_vvvvwdqvyv_required)
if (!jform_vvvvwemvyz_required)
{
updateFieldRequired('url',1);
jQuery('#jform_url').removeAttr('required');
jQuery('#jform_url').removeAttr('aria-required');
jQuery('#jform_url').removeClass('required');
jform_vvvvwdqvyv_required = true;
jform_vvvvwemvyz_required = true;
}
}
}
// the vvvvwdq Some function
function type_vvvvwdq_SomeFunc(type_vvvvwdq)
// the vvvvwem Some function
function type_vvvvwem_SomeFunc(type_vvvvwem)
{
// set the function logic
if (type_vvvvwdq == 3)
if (type_vvvvwem == 3)
{
return true;
}
return false;
}
// the vvvvwdr function
function vvvvwdr(type_vvvvwdr)
// the vvvvwen function
function vvvvwen(type_vvvvwen)
{
if (isSet(type_vvvvwdr) && type_vvvvwdr.constructor !== Array)
if (isSet(type_vvvvwen) && type_vvvvwen.constructor !== Array)
{
var temp_vvvvwdr = type_vvvvwdr;
var type_vvvvwdr = [];
type_vvvvwdr.push(temp_vvvvwdr);
var temp_vvvvwen = type_vvvvwen;
var type_vvvvwen = [];
type_vvvvwen.push(temp_vvvvwen);
}
else if (!isSet(type_vvvvwdr))
else if (!isSet(type_vvvvwen))
{
var type_vvvvwdr = [];
var type_vvvvwen = [];
}
var type = type_vvvvwdr.some(type_vvvvwdr_SomeFunc);
var type = type_vvvvwen.some(type_vvvvwen_SomeFunc);
// set this function logic
@ -178,55 +178,55 @@ function vvvvwdr(type_vvvvwdr)
{
jQuery('#jform_article').closest('.control-group').show();
// add required attribute to article field
if (jform_vvvvwdrvyw_required)
if (jform_vvvvwenvza_required)
{
updateFieldRequired('article',0);
jQuery('#jform_article').prop('required','required');
jQuery('#jform_article').attr('aria-required',true);
jQuery('#jform_article').addClass('required');
jform_vvvvwdrvyw_required = false;
jform_vvvvwenvza_required = false;
}
}
else
{
jQuery('#jform_article').closest('.control-group').hide();
// remove required attribute from article field
if (!jform_vvvvwdrvyw_required)
if (!jform_vvvvwenvza_required)
{
updateFieldRequired('article',1);
jQuery('#jform_article').removeAttr('required');
jQuery('#jform_article').removeAttr('aria-required');
jQuery('#jform_article').removeClass('required');
jform_vvvvwdrvyw_required = true;
jform_vvvvwenvza_required = true;
}
}
}
// the vvvvwdr Some function
function type_vvvvwdr_SomeFunc(type_vvvvwdr)
// the vvvvwen Some function
function type_vvvvwen_SomeFunc(type_vvvvwen)
{
// set the function logic
if (type_vvvvwdr == 1)
if (type_vvvvwen == 1)
{
return true;
}
return false;
}
// the vvvvwds function
function vvvvwds(type_vvvvwds)
// the vvvvweo function
function vvvvweo(type_vvvvweo)
{
if (isSet(type_vvvvwds) && type_vvvvwds.constructor !== Array)
if (isSet(type_vvvvweo) && type_vvvvweo.constructor !== Array)
{
var temp_vvvvwds = type_vvvvwds;
var type_vvvvwds = [];
type_vvvvwds.push(temp_vvvvwds);
var temp_vvvvweo = type_vvvvweo;
var type_vvvvweo = [];
type_vvvvweo.push(temp_vvvvweo);
}
else if (!isSet(type_vvvvwds))
else if (!isSet(type_vvvvweo))
{
var type_vvvvwds = [];
var type_vvvvweo = [];
}
var type = type_vvvvwds.some(type_vvvvwds_SomeFunc);
var type = type_vvvvweo.some(type_vvvvweo_SomeFunc);
// set this function logic
@ -240,45 +240,45 @@ function vvvvwds(type_vvvvwds)
}
}
// the vvvvwds Some function
function type_vvvvwds_SomeFunc(type_vvvvwds)
// the vvvvweo Some function
function type_vvvvweo_SomeFunc(type_vvvvweo)
{
// set the function logic
if (type_vvvvwds == 2)
if (type_vvvvweo == 2)
{
return true;
}
return false;
}
// the vvvvwdt function
function vvvvwdt(target_vvvvwdt)
// the vvvvwep function
function vvvvwep(target_vvvvwep)
{
// set the function logic
if (target_vvvvwdt == 1)
if (target_vvvvwep == 1)
{
jQuery('#jform_groups').closest('.control-group').show();
// add required attribute to groups field
if (jform_vvvvwdtvyx_required)
if (jform_vvvvwepvzb_required)
{
updateFieldRequired('groups',0);
jQuery('#jform_groups').prop('required','required');
jQuery('#jform_groups').attr('aria-required',true);
jQuery('#jform_groups').addClass('required');
jform_vvvvwdtvyx_required = false;
jform_vvvvwepvzb_required = false;
}
}
else
{
jQuery('#jform_groups').closest('.control-group').hide();
// remove required attribute from groups field
if (!jform_vvvvwdtvyx_required)
if (!jform_vvvvwepvzb_required)
{
updateFieldRequired('groups',1);
jQuery('#jform_groups').removeAttr('required');
jQuery('#jform_groups').removeAttr('aria-required');
jQuery('#jform_groups').removeClass('required');
jform_vvvvwdtvyx_required = true;
jform_vvvvwepvzb_required = true;
}
}
}

View File

@ -0,0 +1,652 @@
/**
* @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
*/
// Some Global Values
jform_vvvvvxbvwd_required = false;
jform_vvvvvxrvwe_required = false;
jform_vvvvvxsvwf_required = false;
jform_vvvvvxtvwg_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_custom_abstract_class_helper_header_vvvvvxb = jQuery("#jform_add_custom_abstract_class_helper_header input[type='radio']:checked").val();
var add_abstract_class_helper_vvvvvxb = jQuery("#jform_add_abstract_class_helper input[type='radio']:checked").val();
vvvvvxb(add_custom_abstract_class_helper_header_vvvvvxb,add_abstract_class_helper_vvvvvxb);
var add_abstract_class_helper_vvvvvxd = jQuery("#jform_add_abstract_class_helper input[type='radio']:checked").val();
vvvvvxd(add_abstract_class_helper_vvvvvxd);
var add_php_script_construct_vvvvvxe = jQuery("#jform_add_php_script_construct input[type='radio']:checked").val();
vvvvvxe(add_php_script_construct_vvvvvxe);
var add_php_preflight_install_vvvvvxf = jQuery("#jform_add_php_preflight_install input[type='radio']:checked").val();
vvvvvxf(add_php_preflight_install_vvvvvxf);
var add_php_preflight_update_vvvvvxg = jQuery("#jform_add_php_preflight_update input[type='radio']:checked").val();
vvvvvxg(add_php_preflight_update_vvvvvxg);
var add_php_preflight_uninstall_vvvvvxh = jQuery("#jform_add_php_preflight_uninstall input[type='radio']:checked").val();
vvvvvxh(add_php_preflight_uninstall_vvvvvxh);
var add_php_postflight_install_vvvvvxi = jQuery("#jform_add_php_postflight_install input[type='radio']:checked").val();
vvvvvxi(add_php_postflight_install_vvvvvxi);
var add_php_postflight_update_vvvvvxj = jQuery("#jform_add_php_postflight_update input[type='radio']:checked").val();
vvvvvxj(add_php_postflight_update_vvvvvxj);
var add_php_method_uninstall_vvvvvxk = jQuery("#jform_add_php_method_uninstall input[type='radio']:checked").val();
vvvvvxk(add_php_method_uninstall_vvvvvxk);
var update_server_target_vvvvvxl = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvxl = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvxl(update_server_target_vvvvvxl,add_update_server_vvvvvxl);
var add_update_server_vvvvvxm = jQuery("#jform_add_update_server input[type='radio']:checked").val();
var update_server_target_vvvvvxm = jQuery("#jform_update_server_target input[type='radio']:checked").val();
vvvvvxm(add_update_server_vvvvvxm,update_server_target_vvvvvxm);
var update_server_target_vvvvvxn = jQuery("#jform_update_server_target input[type='radio']:checked").val();
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_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_vvvvvxr = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvxr(add_update_server_vvvvvxr);
var add_sql_vvvvvxs = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvxs(add_sql_vvvvvxs);
var add_sql_uninstall_vvvvvxt = jQuery("#jform_add_sql_uninstall input[type='radio']:checked").val();
vvvvvxt(add_sql_uninstall_vvvvvxt);
var add_update_server_vvvvvxu = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvxu(add_update_server_vvvvvxu);
var add_sales_server_vvvvvxv = jQuery("#jform_add_sales_server input[type='radio']:checked").val();
vvvvvxv(add_sales_server_vvvvvxv);
var addreadme_vvvvvxw = jQuery("#jform_addreadme input[type='radio']:checked").val();
vvvvvxw(addreadme_vvvvvxw);
});
// the vvvvvxb function
function vvvvvxb(add_custom_abstract_class_helper_header_vvvvvxb,add_abstract_class_helper_vvvvvxb)
{
// set the function logic
if (add_custom_abstract_class_helper_header_vvvvvxb == 1 && add_abstract_class_helper_vvvvvxb == 1)
{
jQuery('#jform_abstract_class_helper_header-lbl').closest('.control-group').show();
// add required attribute to abstract_class_helper_header field
if (jform_vvvvvxbvwd_required)
{
updateFieldRequired('abstract_class_helper_header',0);
jQuery('#jform_abstract_class_helper_header').prop('required','required');
jQuery('#jform_abstract_class_helper_header').attr('aria-required',true);
jQuery('#jform_abstract_class_helper_header').addClass('required');
jform_vvvvvxbvwd_required = false;
}
}
else
{
jQuery('#jform_abstract_class_helper_header-lbl').closest('.control-group').hide();
// remove required attribute from abstract_class_helper_header field
if (!jform_vvvvvxbvwd_required)
{
updateFieldRequired('abstract_class_helper_header',1);
jQuery('#jform_abstract_class_helper_header').removeAttr('required');
jQuery('#jform_abstract_class_helper_header').removeAttr('aria-required');
jQuery('#jform_abstract_class_helper_header').removeClass('required');
jform_vvvvvxbvwd_required = true;
}
}
}
// the vvvvvxd function
function vvvvvxd(add_abstract_class_helper_vvvvvxd)
{
// set the function logic
if (add_abstract_class_helper_vvvvvxd == 1)
{
jQuery('#jform_abstract_class_helper_code-lbl').closest('.control-group').show();
jQuery('#jform_add_custom_abstract_class_helper_header').closest('.control-group').show();
}
else
{
jQuery('#jform_abstract_class_helper_code-lbl').closest('.control-group').hide();
jQuery('#jform_add_custom_abstract_class_helper_header').closest('.control-group').hide();
}
}
// the vvvvvxe function
function vvvvvxe(add_php_script_construct_vvvvvxe)
{
// set the function logic
if (add_php_script_construct_vvvvvxe == 1)
{
jQuery('#jform_php_script_construct-lbl').closest('.control-group').show();
}
else
{
jQuery('#jform_php_script_construct-lbl').closest('.control-group').hide();
}
}
// the vvvvvxf function
function vvvvvxf(add_php_preflight_install_vvvvvxf)
{
// set the function logic
if (add_php_preflight_install_vvvvvxf == 1)
{
jQuery('#jform_php_preflight_install-lbl').closest('.control-group').show();
}
else
{
jQuery('#jform_php_preflight_install-lbl').closest('.control-group').hide();
}
}
// the vvvvvxg function
function vvvvvxg(add_php_preflight_update_vvvvvxg)
{
// set the function logic
if (add_php_preflight_update_vvvvvxg == 1)
{
jQuery('#jform_php_preflight_update-lbl').closest('.control-group').show();
}
else
{
jQuery('#jform_php_preflight_update-lbl').closest('.control-group').hide();
}
}
// the vvvvvxh function
function vvvvvxh(add_php_preflight_uninstall_vvvvvxh)
{
// set the function logic
if (add_php_preflight_uninstall_vvvvvxh == 1)
{
jQuery('#jform_php_preflight_uninstall-lbl').closest('.control-group').show();
}
else
{
jQuery('#jform_php_preflight_uninstall-lbl').closest('.control-group').hide();
}
}
// the vvvvvxi function
function vvvvvxi(add_php_postflight_install_vvvvvxi)
{
// set the function logic
if (add_php_postflight_install_vvvvvxi == 1)
{
jQuery('#jform_php_postflight_install-lbl').closest('.control-group').show();
}
else
{
jQuery('#jform_php_postflight_install-lbl').closest('.control-group').hide();
}
}
// the vvvvvxj function
function vvvvvxj(add_php_postflight_update_vvvvvxj)
{
// set the function logic
if (add_php_postflight_update_vvvvvxj == 1)
{
jQuery('#jform_php_postflight_update-lbl').closest('.control-group').show();
}
else
{
jQuery('#jform_php_postflight_update-lbl').closest('.control-group').hide();
}
}
// the vvvvvxk function
function vvvvvxk(add_php_method_uninstall_vvvvvxk)
{
// set the function logic
if (add_php_method_uninstall_vvvvvxk == 1)
{
jQuery('#jform_php_method_uninstall-lbl').closest('.control-group').show();
}
else
{
jQuery('#jform_php_method_uninstall-lbl').closest('.control-group').hide();
}
}
// the vvvvvxl function
function vvvvvxl(update_server_target_vvvvvxl,add_update_server_vvvvvxl)
{
// set the function logic
if (update_server_target_vvvvvxl == 1 && add_update_server_vvvvvxl == 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 vvvvvxm function
function vvvvvxm(add_update_server_vvvvvxm,update_server_target_vvvvvxm)
{
// set the function logic
if (add_update_server_vvvvvxm == 1 && update_server_target_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(update_server_target_vvvvvxn,add_update_server_vvvvvxn)
{
// set the function logic
if (update_server_target_vvvvvxn == 2 && add_update_server_vvvvvxn == 1)
{
jQuery('.note_update_server_note_zip').closest('.control-group').show();
}
else
{
jQuery('.note_update_server_note_zip').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 == 3 && add_update_server_vvvvvxp == 1)
{
jQuery('.note_update_server_note_other').closest('.control-group').show();
}
else
{
jQuery('.note_update_server_note_other').closest('.control-group').hide();
}
}
// the vvvvvxr function
function vvvvvxr(add_update_server_vvvvvxr)
{
// set the function logic
if (add_update_server_vvvvvxr == 1)
{
jQuery('#jform_update_server_target').closest('.control-group').show();
// add required attribute to update_server_target field
if (jform_vvvvvxrvwe_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_vvvvvxrvwe_required = false;
}
}
else
{
jQuery('#jform_update_server_target').closest('.control-group').hide();
// remove required attribute from update_server_target field
if (!jform_vvvvvxrvwe_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_vvvvvxrvwe_required = true;
}
}
}
// the vvvvvxs function
function vvvvvxs(add_sql_vvvvvxs)
{
// set the function logic
if (add_sql_vvvvvxs == 1)
{
jQuery('#jform_sql').closest('.control-group').show();
// add required attribute to sql field
if (jform_vvvvvxsvwf_required)
{
updateFieldRequired('sql',0);
jQuery('#jform_sql').prop('required','required');
jQuery('#jform_sql').attr('aria-required',true);
jQuery('#jform_sql').addClass('required');
jform_vvvvvxsvwf_required = false;
}
}
else
{
jQuery('#jform_sql').closest('.control-group').hide();
// remove required attribute from sql field
if (!jform_vvvvvxsvwf_required)
{
updateFieldRequired('sql',1);
jQuery('#jform_sql').removeAttr('required');
jQuery('#jform_sql').removeAttr('aria-required');
jQuery('#jform_sql').removeClass('required');
jform_vvvvvxsvwf_required = true;
}
}
}
// the vvvvvxt function
function vvvvvxt(add_sql_uninstall_vvvvvxt)
{
// set the function logic
if (add_sql_uninstall_vvvvvxt == 1)
{
jQuery('#jform_sql_uninstall').closest('.control-group').show();
// add required attribute to sql_uninstall field
if (jform_vvvvvxtvwg_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_vvvvvxtvwg_required = false;
}
}
else
{
jQuery('#jform_sql_uninstall').closest('.control-group').hide();
// remove required attribute from sql_uninstall field
if (!jform_vvvvvxtvwg_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_vvvvvxtvwg_required = true;
}
}
}
// the vvvvvxu function
function vvvvvxu(add_update_server_vvvvvxu)
{
// set the function logic
if (add_update_server_vvvvvxu == 1)
{
jQuery('#jform_update_server_url').closest('.control-group').show();
}
else
{
jQuery('#jform_update_server_url').closest('.control-group').hide();
}
}
// the vvvvvxv function
function vvvvvxv(add_sales_server_vvvvvxv)
{
// set the function logic
if (add_sales_server_vvvvvxv == 1)
{
jQuery('#jform_sales_server').closest('.control-group').show();
}
else
{
jQuery('#jform_sales_server').closest('.control-group').hide();
}
}
// the vvvvvxw function
function vvvvvxw(addreadme_vvvvvxw)
{
// set the function logic
if (addreadme_vvvvvxw == 1)
{
jQuery('#jform_readme-lbl').closest('.control-group').show();
}
else
{
jQuery('#jform_readme-lbl').closest('.control-group').hide();
}
}
// update required fields
function updateFieldRequired(name,status)
{
var not_required = jQuery('#jform_not_required').val();
if(status == 1)
{
if (isSet(not_required) && not_required != 0)
{
not_required = not_required+','+name;
}
else
{
not_required = ','+name;
}
}
else
{
if (isSet(not_required) && not_required != 0)
{
not_required = not_required.replace(','+name,'');
}
}
jQuery('#jform_not_required').val(not_required);
}
// the isSet function
function isSet(val)
{
if ((val != undefined) && (val != null) && 0 !== val.length){
return true;
}
return false;
}
jQuery(document).ready(function()
{
// get the linked details
getLinked();
// check and load all the customcode edit buttons
setTimeout(getEditCustomCodeButtons, 300);
});
function getLinked_server(type){
var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.getLinked&format=json&raw=true&vdm="+vastDevMod);
if(token.length > 0 && type > 0){
var request = token+'=1&type='+type;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'json',
data: request,
jsonp: false
});
}
function getLinked(){
getLinked_server(1).done(function(result) {
if(result){
jQuery('#display_linked_to').html(result);
}
});
}
function getEditCustomCodeButtons_server(id){
var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.getEditCustomCodeButtons&format=json&raw=true&vdm="+vastDevMod);
if(token.length > 0 && id > 0){
var request = token+'=1&id='+id+'&return_here='+return_here;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'json',
data: request,
jsonp: false
});
}
function getEditCustomCodeButtons(){
// get the id
id = jQuery("#jform_id").val();
getEditCustomCodeButtons_server(id).done(function(result) {
if(isObject(result)){
jQuery.each(result, function( field, buttons ) {
jQuery('<div class="control-group"><div class="control-label"><label>Add/Edit Customcode</label></div><div class="controls control-customcode-buttons-'+field+'"></div></div>').insertBefore(".control-wrapper-"+ field);
jQuery.each(buttons, function( name, button ) {
jQuery(".control-customcode-buttons-"+field).append(button);
});
});
}
})
}
// check object is not empty
function isObject(obj) {
for(var prop in obj) {
if (Object.prototype.hasOwnProperty.call(obj, prop)) {
return true;
}
}
return false;
}
function getSnippetDetails_server(snippetId){
var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.snippetDetails&format=json");
if(token.length > 0 && snippetId > 0){
var request = token+'=1&id='+snippetId;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getSnippetDetails(id){
getSnippetDetails_server(id).done(function(result) {
if(result.snippet){
var description = '';
if (result.description.length > 0) {
description = '<p>'+result.description+'</p>';
}
var library = '';
if (result.library.length > 0) {
library = ' <b>('+result.library+')</b>';
}
var code = '<div id="snippet-code"><b>'+result.name+' ('+result.type+')</b> <a href="'+result.url+'" target="_blank" >see more details'+library+'</a><br /><em>'+result.heading+'</em><br /><textarea id="snippet" class="span12" rows="11">'+result.snippet+'</textarea></div>';
jQuery('#snippet-code').remove();
jQuery('.snippet-code').append(code);
// make sure the code block is active
jQuery("#snippet").focus(function() {
var jQuerythis = jQuery(this);
jQuerythis.select();
// Work around Chrome's little problem
jQuerythis.mouseup(function() {
// Prevent further mouseup intervention
jQuerythis.unbind("mouseup");
return false;
});
});
}
if(result.usage){
var usage = '<div id="snippet-usage"><p>'+result.usage+'</p></div>';
jQuery('#snippet-usage').remove();
jQuery('.snippet-usage').append(usage);
}
})
}
// set snippets that are on the page
var snippetIds = [];
var snippets = {};
var snippet = 0;
jQuery(document).ready(function($)
{
jQuery("#jform_snippet option").each(function()
{
var key = jQuery(this).val();
var text = jQuery(this).text();
snippets[key] = text;
snippetIds.push(key);
});
snippet = jQuery("#jform_snippet").val();
getSnippets();
});
function getSnippets_server(libraries){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getSnippets&raw=true&format=json";
if(token.length > 0 && libraries.length > 0){
var request = token+'=1&libraries='+JSON.stringify(libraries);
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'json',
data: request,
jsonp: false
});
}
function getSnippets(){
jQuery("#loading").show();
// clear the selection
jQuery('#jform_snippet').find('option').remove().end();
jQuery('#jform_snippet').trigger('liszt:updated');
// get country value if set
var libraries = jQuery("#jform_libraries").val();
if (libraries) {
getSnippets_server(libraries).done(function(result) {
setSnippets(result);
jQuery("#loading").hide();
if (typeof snippetButton !== 'undefined') {
// ensure button is correct
var snippet = jQuery('#jform_snippet').val();
snippetButton(snippet);
}
});
}
else
{
// load all snippets in none is selected
setSnippets(snippetIds);
jQuery("#loading").hide();
}
}
function setSnippets(array){
if (array) {
jQuery('#jform_snippet').append('<option value="">'+select_a_snippet+'</option>');
jQuery.each( array, function( i, id ) {
if (id in snippets) {
jQuery('#jform_snippet').append('<option value="'+id+'">'+snippets[id]+'</option>');
}
if (id == snippet) {
jQuery('#jform_snippet').val(id);
}
});
} else {
jQuery('#jform_snippet').append('<option value="">'+create_a_snippet+'</option>');
}
jQuery('#jform_snippet').trigger('liszt:updated');
}

View File

@ -0,0 +1,804 @@
<?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_MODULE_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_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_MODULE_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_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_MODULE_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_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_MODULE_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_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_MODULE_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_MODULE_VERSION_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_VERSION_DESC"
size="6"
readonly="true"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- System_name Field. Type: Text. (joomla) -->
<field
type="text"
name="system_name"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_SYSTEM_NAME_LABEL"
size="10"
maxlength="50"
default=""
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_SYSTEM_NAME_DESCRIPTION"
class="text_area"
filter="STRING"
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_SYSTEM_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_SYSTEM_NAME_HINT"
/>
<!-- Description Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="description"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_DESCRIPTION_LABEL"
rows="11"
cols="10"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_DESCRIPTION_DESCRIPTION"
class="text_area span12"
filter="HTML"
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_DESCRIPTION_HINT"
/>
<!-- Php_postflight_update Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_postflight_update"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_POSTFLIGHT_UPDATE_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_POSTFLIGHT_UPDATE_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
validate="code"
/>
<!-- Php_postflight_install Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_postflight_install"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_POSTFLIGHT_INSTALL_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_POSTFLIGHT_INSTALL_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
validate="code"
/>
<!-- Php_preflight_uninstall Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_preflight_uninstall"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_PREFLIGHT_UNINSTALL_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_PREFLIGHT_UNINSTALL_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
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_MODULE_NOTE_UPDATE_SERVER_NOTE_OTHER_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_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_MODULE_UPDATE_SERVER_URL_LABEL"
size="60"
maxlength="150"
default=""
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_URL_DESCRIPTION"
class="text_area span12"
filter="url"
validated="url"
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_URL_MESSAGE"
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_URL_HINT"
/>
<!-- Sql_uninstall Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="sql_uninstall"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_SQL_UNINSTALL_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_SQL_UNINSTALL_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_SQL_UNINSTALL_HINT"
required="true"
/>
<!-- Default Field. Type: Editor. (joomla) -->
<field
type="editor"
name="default"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_DEFAULT_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_DEFAULT_DESCRIPTION"
width="100%"
height="500px"
cols="15"
rows="30"
buttons="no"
syntax="html"
editor="codemirror|none"
filter="raw"
validate="code"
/>
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_snippet_usage" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_SNIPPET_USAGE_LABEL" heading="h4" class="snippet-usage note_snippet_usage" />
<!-- Note_uikit_snippet Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_uikit_snippet" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_UIKIT_SNIPPET_LABEL" heading="h4" class="snippet-code note_uikit_snippet" />
<!-- Snippet Field. Type: Snippets. (custom) -->
<field
type="snippets"
name="snippet"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_SNIPPET_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_SNIPPET_DESCRIPTION"
class="list_class"
multiple="false"
required="false"
button="true"
/>
<!-- Note_add_language_string Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_language_string" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_ADD_LANGUAGE_STRING_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION" heading="h4" class="note_add_language_string" />
<!-- Note_model Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_model" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_MODEL_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_MODEL_DESCRIPTION" heading="h4" class="alert alert-info note_model" />
<!-- Libraries Field. Type: Libraries. (custom) -->
<field
type="libraries"
name="libraries"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_LIBRARIES_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_LIBRARIES_DESCRIPTION"
class="list_class"
multiple="true"
default="0"
required="false"
button="true"
/>
<!-- Php_method_uninstall Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_method_uninstall"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_METHOD_UNINSTALL_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_METHOD_UNINSTALL_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
validate="code"
/>
<!-- Sql Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="sql"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_SQL_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_SQL_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_SQL_HINT"
required="true"
/>
<!-- Note_linked_to_notice Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_linked_to_notice" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_LINKED_TO_NOTICE_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_LINKED_TO_NOTICE_DESCRIPTION" heading="h4" class="note_linked_to_notice" />
<!-- Readme Field. Type: Editor. (joomla) -->
<field
type="editor"
name="readme"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_README_LABEL"
default="You can use all the normal markdown, including the place-holders."
width="100%"
height="1200px"
buttons="false"
editor="none"
filter="raw"
/>
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
/>
<!-- 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_MODULE_NOTE_UPDATE_SERVER_NOTE_FTP_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_UPDATE_SERVER_NOTE_FTP_DESCRIPTION" heading="h4" class="alert alert-success note_update_server_note_ftp" />
<!-- Module_version Field. Type: Text. (joomla) -->
<field
type="text"
name="module_version"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE_VERSION_LABEL"
size="40"
maxlength="50"
default="1.0.0"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE_VERSION_DESCRIPTION"
class="text_area"
required="true"
filter="CMD"
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE_VERSION_MESSAGE"
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE_VERSION_HINT"
/>
<!-- Add_sales_server Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_sales_server"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_SALES_SERVER_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
</field>
<!-- Add_abstract_class_helper Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_abstract_class_helper"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_ABSTRACT_CLASS_HELPER_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_ABSTRACT_CLASS_HELPER_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
</field>
<!-- Add_php_preflight_uninstall Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_preflight_uninstall"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_PREFLIGHT_UNINSTALL_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
</field>
<!-- Add_custom_abstract_class_helper_header Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_custom_abstract_class_helper_header"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_CUSTOM_ABSTRACT_CLASS_HELPER_HEADER_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_CUSTOM_ABSTRACT_CLASS_HELPER_HEADER_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
</field>
<!-- Add_php_postflight_install Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_postflight_install"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_POSTFLIGHT_INSTALL_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
</field>
<!-- Custom_get Field. Type: Customgets. (custom) -->
<field
type="customgets"
name="custom_get"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_CUSTOM_GET_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_CUSTOM_GET_DESCRIPTION"
multiple="true"
default=""
/>
<!-- Add_php_postflight_update Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_postflight_update"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_POSTFLIGHT_UPDATE_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
</field>
<!-- Abstract_class_helper_header Field. Type: Editor. (joomla) -->
<field
type="editor"
name="abstract_class_helper_header"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ABSTRACT_CLASS_HELPER_HEADER_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_ABSTRACT_CLASS_HELPER_HEADER_DESCRIPTION"
width="100%"
height="100px"
cols="15"
rows="10"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
required="false"
validate="code"
/>
<!-- Add_php_method_uninstall Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_method_uninstall"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_METHOD_UNINSTALL_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
</field>
<!-- Abstract_class_helper_code Field. Type: Editor. (joomla) -->
<field
type="editor"
name="abstract_class_helper_code"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ABSTRACT_CLASS_HELPER_CODE_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_ABSTRACT_CLASS_HELPER_CODE_DESCRIPTION"
width="100%"
height="800px"
cols="40"
rows="300"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
validate="code"
/>
<!-- Add_sql Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_sql"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_SQL_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
</field>
<!-- Fields Field. Type: Subform. (joomla) -->
<field
type="subform"
name="fields"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_LABEL"
layout="joomla.form.field.subform.repeatable"
multiple="true"
buttons="add,remove,move"
icon="list"
max="10">
<form hidden="true" name="list_fields_modal" repeat="true">
<!-- Module Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="module"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE_LABEL"
value="1"
default="1"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE_DESCRIPTION"
class="inputbox"
/>
<!-- File Field. Type: Text. (joomla) -->
<field
type="text"
name="file"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILE_LABEL"
size="10"
maxlength="50"
default="config"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILE_DESCRIPTION"
class="text_area"
filter="WORD"
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILE_HINT"
autocomplete="on"
/>
<!-- Fields_name Field. Type: Text. (joomla) -->
<field
type="text"
name="fields_name"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_NAME_LABEL"
size="10"
maxlength="50"
default="params"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_NAME_DESCRIPTION"
class="text_area"
filter="CMD"
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_NAME_HINT"
autocomplete="on"
/>
<!-- Fieldset Field. Type: Text. (joomla) -->
<field
type="text"
name="fieldset"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDSET_LABEL"
size="10"
maxlength="50"
default="basic"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDSET_DESCRIPTION"
class="text_area"
filter="WORD"
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDSET_HINT"
autocomplete="on"
/>
<!-- Label Field. Type: Text. (joomla) -->
<field
type="text"
name="label"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_LABEL_LABEL"
size="10"
maxlength="50"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_LABEL_DESCRIPTION"
class="text_area"
filter="String"
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_LABEL_HINT"
autocomplete="on"
/>
<!-- Fields_rules_paths Field. Type: List. (joomla) -->
<field
type="list"
name="fields_rules_paths"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_RULES_PATHS_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_RULES_PATHS_DESCRIPTION"
class="list_class"
multiple="false"
validate="number"
default="1">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_MODULE_COMPONENT</option>
<option value="2">
COM_COMPONENTBUILDER_JOOMLA_MODULE_MODULE</option>
</field>
<!-- Fields Field. Type: Subform. (joomla) -->
<field
type="subform"
name="fields"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
buttons="add,remove,move"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELDS_DESCRIPTION"
icon="list"
max="50"
nested_depth="1">
<form hidden="true" name="list_fields_modal" repeat="true">
<!-- Field Field. Type: Fields. (custom) -->
<field
type="fields"
name="field"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELD_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FIELD_DESCRIPTION"
class="list_class fieldFull"
multiple="false"
required="true"
button="false"
/>
<!-- Custom_value Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="custom_value"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_CUSTOM_VALUE_LABEL"
rows="2"
cols="4"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_CUSTOM_VALUE_DESCRIPTION"
class="text_area"
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_CUSTOM_VALUE_HINT"
required="false"
readonly="false"
disabled="false"
/>
</form>
</field>
</form>
</field>
<!-- Add_sql_uninstall Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_sql_uninstall"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_SQL_UNINSTALL_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
</field>
<!-- Add_php_script_construct Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_script_construct"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_SCRIPT_CONSTRUCT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
</field>
<!-- Addreadme Field. Type: Radio. (joomla) -->
<field
type="radio"
name="addreadme"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADDREADME_LABEL"
class="btn-group btn-group-yesno"
default="0">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
</field>
<!-- Php_script_construct Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_script_construct"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_SCRIPT_CONSTRUCT_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_SCRIPT_CONSTRUCT_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
validate="code"
/>
<!-- Add_update_server Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_update_server"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_UPDATE_SERVER_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
</field>
<!-- Add_php_preflight_install Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_preflight_install"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_PREFLIGHT_INSTALL_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
</field>
<!-- Update_server_target Field. Type: Radio. (joomla) -->
<field
type="radio"
name="update_server_target"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_TARGET_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_TARGET_DESCRIPTION"
class="btn-group btn-group-yesno"
default="1"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_MODULE_SERVER</option>
<option value="2">
COM_COMPONENTBUILDER_JOOMLA_MODULE_ZIP</option>
<option value="3">
COM_COMPONENTBUILDER_JOOMLA_MODULE_OTHER</option>
</field>
<!-- Php_preflight_install Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_preflight_install"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_PREFLIGHT_INSTALL_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_PREFLIGHT_INSTALL_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_MODULE_NOTE_UPDATE_SERVER_NOTE_ZIP_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_NOTE_UPDATE_SERVER_NOTE_ZIP_DESCRIPTION" heading="h4" class="alert alert-info note_update_server_note_zip" />
<!-- Add_php_preflight_update Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_preflight_update"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_ADD_PHP_PREFLIGHT_UPDATE_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_MODULE_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_MODULE_NO</option>
</field>
<!-- Update_server Field. Type: Servers. (custom) -->
<field
type="servers"
name="update_server"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATE_SERVER_DESCRIPTION"
class="list_class"
multiple="false"
default="0"
button="true"
/>
<!-- Php_preflight_update Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_preflight_update"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_PREFLIGHT_UPDATE_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_PHP_PREFLIGHT_UPDATE_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
validate="code"
/>
<!-- Sales_server Field. Type: Servers. (custom) -->
<field
type="servers"
name="sales_server"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_SALES_SERVER_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_SALES_SERVER_DESCRIPTION"
class="list_class"
multiple="false"
default="0"
button="true"
/>
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_NAME_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_NAME_HINT"
/>
</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_module"
translate_label="false"
filter="rules"
validate="rules"
class="inputbox"
component="com_componentbuilder"
section="joomla_module"
/>
</fieldset>
</form>

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,390 @@
<?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_MODULE_FILES_FOLDERS_URLS_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_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_MODULE_FILES_FOLDERS_URLS_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_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_MODULE_FILES_FOLDERS_URLS_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_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_MODULE_FILES_FOLDERS_URLS_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_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_MODULE_FILES_FOLDERS_URLS_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_MODULE_FILES_FOLDERS_URLS_VERSION_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_VERSION_DESC"
size="6"
readonly="true"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Joomla_module Field. Type: Joomlamodules. (custom) -->
<field
type="joomlamodules"
name="joomla_module"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_JOOMLA_MODULE_LABEL"
description="JFIELD_TITLE_DESC"
class="list_class span12"
multiple="false"
default="0"
readonly="true"
/>
<!-- Note_constant_paths Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_constant_paths" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_CONSTANT_PATHS_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_CONSTANT_PATHS_DESCRIPTION" heading="h4" class="alert alert-info note_constant_paths" />
<!-- Addfoldersfullpath Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addfoldersfullpath"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFOLDERSFULLPATH_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFOLDERSFULLPATH_DESCRIPTION"
default=""
icon="list">
<form hidden="true" name="list_addfoldersfullpath_modal" repeat="true">
<!-- Folderpath Field. Type: Text. (joomla) -->
<field
type="text"
name="folderpath"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FOLDERPATH_LABEL"
size="70"
maxlength="300"
default=""
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FOLDERPATH_DESCRIPTION"
class="text_area"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FOLDERPATH_MESSAGE"
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FOLDERPATH_HINT"
/>
<!-- Path Field. Type: Text. (joomla) -->
<field
type="text"
name="path"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="PATH"
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_HINT"
/>
<!-- Rename Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="rename"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_RENAME_LABEL"
value="1"
default=""
class="inputbox"
/>
</form>
</field>
<!-- Note_add_folders_fullpath Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_folders_fullpath" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_FULLPATH_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_FULLPATH_DESCRIPTION" heading="h4" class="alert alert-info note_add_folders_fullpath" />
<!-- Addfilesfullpath Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addfilesfullpath"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFILESFULLPATH_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFILESFULLPATH_DESCRIPTION"
default=""
icon="list">
<form hidden="true" name="list_addfilesfullpath_modal" repeat="true">
<!-- Filepath Field. Type: Text. (joomla) -->
<field
type="text"
name="filepath"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FILEPATH_LABEL"
size="70"
maxlength="300"
default=""
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FILEPATH_DESCRIPTION"
class="text_area"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FILEPATH_MESSAGE"
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FILEPATH_HINT"
/>
<!-- Path Field. Type: Text. (joomla) -->
<field
type="text"
name="path"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="PATH"
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_HINT"
/>
<!-- Notnew Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="notnew"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTNEW_LABEL"
value="1"
default=""
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTNEW_DESCRIPTION"
class="inputbox"
/>
</form>
</field>
<!-- Note_add_files_fullpath Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_files_fullpath" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FILES_FULLPATH_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FILES_FULLPATH_DESCRIPTION" heading="h4" class="alert alert-info note_add_files_fullpath" />
<!-- Addfolders Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addfolders"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFOLDERS_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFOLDERS_DESCRIPTION"
default=""
icon="list">
<form hidden="true" name="list_addfolders_modal" repeat="true">
<!-- Folder Field. Type: Customfolderlist. (custom) -->
<field
type="customfolderlist"
name="folder"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FOLDER_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FOLDER_DESCRIPTION"
class="list_class"
multiple="false"
default="0"
required="true"
button="false"
/>
<!-- Path Field. Type: Text. (joomla) -->
<field
type="text"
name="path"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="PATH"
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_HINT"
/>
<!-- Rename Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="rename"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_RENAME_LABEL"
value="1"
default=""
class="inputbox"
/>
</form>
</field>
<!-- Note_add_folders Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_folders" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_DESCRIPTION" heading="h4" class="alert alert-info note_add_folders" />
<!-- Addfiles Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addfiles"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFILES_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDFILES_DESCRIPTION"
default=""
icon="list">
<form hidden="true" name="list_addfiles_modal" repeat="true">
<!-- File Field. Type: Customfilelist. (custom) -->
<field
type="customfilelist"
name="file"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FILE_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_FILE_DESCRIPTION"
class="list_class"
multiple="false"
default="0"
required="true"
button="false"
/>
<!-- Path Field. Type: Text. (joomla) -->
<field
type="text"
name="path"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="PATH"
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_PATH_HINT"
/>
<!-- Notnew Field. Type: Checkbox. (joomla) -->
<field
type="checkbox"
name="notnew"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTNEW_LABEL"
value="1"
default=""
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTNEW_DESCRIPTION"
class="inputbox"
/>
</form>
</field>
<!-- Note_add_files Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_files" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FILES_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_FILES_DESCRIPTION" heading="h4" class="alert alert-info note_add_files" />
<!-- Addurls Field. Type: Subform. (joomla) -->
<field
type="subform"
name="addurls"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDURLS_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_ADDURLS_DESCRIPTION"
default=""
icon="list">
<form hidden="true" name="list_addurls_modal" repeat="true">
<!-- Url Field. Type: Url. (joomla) -->
<field
type="url"
name="url"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_URL_LABEL"
size="150"
maxlength="250"
default=""
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_URL_DESCRIPTION"
class="text_area"
required="true"
filter="url"
validated="url"
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_URL_MESSAGE"
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_URL_HINT"
/>
<!-- Type Field. Type: List. (joomla) -->
<field
type="list"
name="type"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_TYPE_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_TYPE_DESCRIPTION"
class="list_class"
multiple="false"
filter="INT"
required="true"
default="1">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_DEFAULT_LINK</option>
<option value="2">
COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_LOCAL_GET</option>
<option value="3">
COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_LINK_LOCAL_DYNAMIC</option>
</field>
</form>
</field>
<!-- Note_add_urls Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_urls" label="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_URLS_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_FILES_FOLDERS_URLS_NOTE_ADD_URLS_DESCRIPTION" heading="h4" class="alert alert-info note_add_urls" />
</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_module_files_folders_urls"
translate_label="false"
filter="rules"
validate="rules"
class="inputbox"
component="com_componentbuilder"
section="joomla_module_files_folders_urls"
/>
</fieldset>
</form>

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_MODULE_UPDATES_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_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_MODULE_UPDATES_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_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_MODULE_UPDATES_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_MODULE_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_MODULE_UPDATES_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_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_MODULE_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_MODULE_UPDATES_VERSION_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_VERSION_DESC"
size="6"
readonly="true"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Joomla_module Field. Type: Joomlamodules. (custom) -->
<field
type="joomlamodules"
name="joomla_module"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_JOOMLA_MODULE_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_MODULE_UPDATES_VERSION_UPDATE_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_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_MODULE_UPDATES_VERSION_LABEL"
size="10"
maxlength="50"
default=""
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_VERSION_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="STRING"
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_VERSION_MESSAGE"
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_VERSION_HINT"
/>
<!-- Mysql Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="mysql"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MYSQL_LABEL"
rows="30"
cols="15"
default=""
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MYSQL_DESCRIPTION"
class="text_area mysql_update"
filter="raw"
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MYSQL_HINT"
/>
<!-- Url Field. Type: Url. (joomla) -->
<field
type="url"
name="url"
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_URL_LABEL"
size="60"
maxlength="150"
default=""
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_URL_DESCRIPTION"
class="text_area version_url"
required="true"
filter="raw"
validated="url"
message="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_URL_MESSAGE"
hint="COM_COMPONENTBUILDER_JOOMLA_MODULE_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_module_updates"
translate_label="false"
filter="rules"
validate="rules"
class="inputbox"
component="com_componentbuilder"
section="joomla_module_updates"
/>
</fieldset>
</form>

View File

@ -9,111 +9,111 @@
*/
// Some Global Values
jform_vvvvvxevwd_required = false;
jform_vvvvvxtvwe_required = false;
jform_vvvvvxuvwf_required = false;
jform_vvvvvxvvwg_required = false;
jform_vvvvvyavwh_required = false;
jform_vvvvvypvwi_required = false;
jform_vvvvvyqvwj_required = false;
jform_vvvvvyrvwk_required = false;
// Initial Script
jQuery(document).ready(function()
{
var class_extends_vvvvvxb = jQuery("#jform_class_extends").val();
var joomla_plugin_group_vvvvvxb = jQuery("#jform_joomla_plugin_group").val();
vvvvvxb(class_extends_vvvvvxb,joomla_plugin_group_vvvvvxb);
var class_extends_vvvvvxx = jQuery("#jform_class_extends").val();
var joomla_plugin_group_vvvvvxx = jQuery("#jform_joomla_plugin_group").val();
vvvvvxx(class_extends_vvvvvxx,joomla_plugin_group_vvvvvxx);
var joomla_plugin_group_vvvvvxc = jQuery("#jform_joomla_plugin_group").val();
var class_extends_vvvvvxc = jQuery("#jform_class_extends").val();
vvvvvxc(joomla_plugin_group_vvvvvxc,class_extends_vvvvvxc);
var joomla_plugin_group_vvvvvxy = jQuery("#jform_joomla_plugin_group").val();
var class_extends_vvvvvxy = jQuery("#jform_class_extends").val();
vvvvvxy(joomla_plugin_group_vvvvvxy,class_extends_vvvvvxy);
var class_extends_vvvvvxd = jQuery("#jform_class_extends").val();
vvvvvxd(class_extends_vvvvvxd);
var class_extends_vvvvvxz = jQuery("#jform_class_extends").val();
vvvvvxz(class_extends_vvvvvxz);
var add_head_vvvvvxe = jQuery("#jform_add_head input[type='radio']:checked").val();
var class_extends_vvvvvxe = jQuery("#jform_class_extends").val();
vvvvvxe(add_head_vvvvvxe,class_extends_vvvvvxe);
var add_head_vvvvvya = jQuery("#jform_add_head input[type='radio']:checked").val();
var class_extends_vvvvvya = jQuery("#jform_class_extends").val();
vvvvvya(add_head_vvvvvya,class_extends_vvvvvya);
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_script_construct_vvvvvyc = jQuery("#jform_add_php_script_construct input[type='radio']:checked").val();
vvvvvyc(add_php_script_construct_vvvvvyc);
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_install_vvvvvyd = jQuery("#jform_add_php_preflight_install input[type='radio']:checked").val();
vvvvvyd(add_php_preflight_install_vvvvvyd);
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_preflight_update_vvvvvye = jQuery("#jform_add_php_preflight_update input[type='radio']:checked").val();
vvvvvye(add_php_preflight_update_vvvvvye);
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_preflight_uninstall_vvvvvyf = jQuery("#jform_add_php_preflight_uninstall input[type='radio']:checked").val();
vvvvvyf(add_php_preflight_uninstall_vvvvvyf);
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_postflight_install_vvvvvyg = jQuery("#jform_add_php_postflight_install input[type='radio']:checked").val();
vvvvvyg(add_php_postflight_install_vvvvvyg);
var add_php_postflight_update_vvvvvxl = jQuery("#jform_add_php_postflight_update input[type='radio']:checked").val();
vvvvvxl(add_php_postflight_update_vvvvvxl);
var add_php_postflight_update_vvvvvyh = jQuery("#jform_add_php_postflight_update input[type='radio']:checked").val();
vvvvvyh(add_php_postflight_update_vvvvvyh);
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_php_method_uninstall_vvvvvyi = jQuery("#jform_add_php_method_uninstall input[type='radio']:checked").val();
vvvvvyi(add_php_method_uninstall_vvvvvyi);
var update_server_target_vvvvvxn = jQuery("#jform_update_server_target input[type='radio']:checked").val();
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_vvvvvyj = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvyj = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvyj(update_server_target_vvvvvyj,add_update_server_vvvvvyj);
var add_update_server_vvvvvxo = jQuery("#jform_add_update_server input[type='radio']:checked").val();
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 add_update_server_vvvvvyk = jQuery("#jform_add_update_server input[type='radio']:checked").val();
var update_server_target_vvvvvyk = jQuery("#jform_update_server_target input[type='radio']:checked").val();
vvvvvyk(add_update_server_vvvvvyk,update_server_target_vvvvvyk);
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 update_server_target_vvvvvyl = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvyl = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvyl(update_server_target_vvvvvyl,add_update_server_vvvvvyl);
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 update_server_target_vvvvvyn = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvyn = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvyn(update_server_target_vvvvvyn,add_update_server_vvvvvyn);
var add_update_server_vvvvvxt = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvxt(add_update_server_vvvvvxt);
var add_update_server_vvvvvyp = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvyp(add_update_server_vvvvvyp);
var add_sql_vvvvvxu = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvxu(add_sql_vvvvvxu);
var add_sql_vvvvvyq = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvyq(add_sql_vvvvvyq);
var add_sql_uninstall_vvvvvxv = jQuery("#jform_add_sql_uninstall input[type='radio']:checked").val();
vvvvvxv(add_sql_uninstall_vvvvvxv);
var add_sql_uninstall_vvvvvyr = jQuery("#jform_add_sql_uninstall input[type='radio']:checked").val();
vvvvvyr(add_sql_uninstall_vvvvvyr);
var add_update_server_vvvvvxw = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvxw(add_update_server_vvvvvxw);
var add_update_server_vvvvvys = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvys(add_update_server_vvvvvys);
var add_sales_server_vvvvvxx = jQuery("#jform_add_sales_server input[type='radio']:checked").val();
vvvvvxx(add_sales_server_vvvvvxx);
var add_sales_server_vvvvvyt = jQuery("#jform_add_sales_server input[type='radio']:checked").val();
vvvvvyt(add_sales_server_vvvvvyt);
var addreadme_vvvvvxy = jQuery("#jform_addreadme input[type='radio']:checked").val();
vvvvvxy(addreadme_vvvvvxy);
var addreadme_vvvvvyu = jQuery("#jform_addreadme input[type='radio']:checked").val();
vvvvvyu(addreadme_vvvvvyu);
});
// the vvvvvxb function
function vvvvvxb(class_extends_vvvvvxb,joomla_plugin_group_vvvvvxb)
// the vvvvvxx function
function vvvvvxx(class_extends_vvvvvxx,joomla_plugin_group_vvvvvxx)
{
if (isSet(class_extends_vvvvvxb) && class_extends_vvvvvxb.constructor !== Array)
if (isSet(class_extends_vvvvvxx) && class_extends_vvvvvxx.constructor !== Array)
{
var temp_vvvvvxb = class_extends_vvvvvxb;
var class_extends_vvvvvxb = [];
class_extends_vvvvvxb.push(temp_vvvvvxb);
var temp_vvvvvxx = class_extends_vvvvvxx;
var class_extends_vvvvvxx = [];
class_extends_vvvvvxx.push(temp_vvvvvxx);
}
else if (!isSet(class_extends_vvvvvxb))
else if (!isSet(class_extends_vvvvvxx))
{
var class_extends_vvvvvxb = [];
var class_extends_vvvvvxx = [];
}
var class_extends = class_extends_vvvvvxb.some(class_extends_vvvvvxb_SomeFunc);
var class_extends = class_extends_vvvvvxx.some(class_extends_vvvvvxx_SomeFunc);
if (isSet(joomla_plugin_group_vvvvvxb) && joomla_plugin_group_vvvvvxb.constructor !== Array)
if (isSet(joomla_plugin_group_vvvvvxx) && joomla_plugin_group_vvvvvxx.constructor !== Array)
{
var temp_vvvvvxb = joomla_plugin_group_vvvvvxb;
var joomla_plugin_group_vvvvvxb = [];
joomla_plugin_group_vvvvvxb.push(temp_vvvvvxb);
var temp_vvvvvxx = joomla_plugin_group_vvvvvxx;
var joomla_plugin_group_vvvvvxx = [];
joomla_plugin_group_vvvvvxx.push(temp_vvvvvxx);
}
else if (!isSet(joomla_plugin_group_vvvvvxb))
else if (!isSet(joomla_plugin_group_vvvvvxx))
{
var joomla_plugin_group_vvvvvxb = [];
var joomla_plugin_group_vvvvvxx = [];
}
var joomla_plugin_group = joomla_plugin_group_vvvvvxb.some(joomla_plugin_group_vvvvvxb_SomeFunc);
var joomla_plugin_group = joomla_plugin_group_vvvvvxx.some(joomla_plugin_group_vvvvvxx_SomeFunc);
// set this function logic
@ -131,54 +131,54 @@ function vvvvvxb(class_extends_vvvvvxb,joomla_plugin_group_vvvvvxb)
}
}
// the vvvvvxb Some function
function class_extends_vvvvvxb_SomeFunc(class_extends_vvvvvxb)
// the vvvvvxx Some function
function class_extends_vvvvvxx_SomeFunc(class_extends_vvvvvxx)
{
// set the function logic
if (isSet(class_extends_vvvvvxb))
if (isSet(class_extends_vvvvvxx))
{
return true;
}
return false;
}
// the vvvvvxb Some function
function joomla_plugin_group_vvvvvxb_SomeFunc(joomla_plugin_group_vvvvvxb)
// the vvvvvxx Some function
function joomla_plugin_group_vvvvvxx_SomeFunc(joomla_plugin_group_vvvvvxx)
{
// set the function logic
if (isSet(joomla_plugin_group_vvvvvxb))
if (isSet(joomla_plugin_group_vvvvvxx))
{
return true;
}
return false;
}
// the vvvvvxc function
function vvvvvxc(joomla_plugin_group_vvvvvxc,class_extends_vvvvvxc)
// the vvvvvxy function
function vvvvvxy(joomla_plugin_group_vvvvvxy,class_extends_vvvvvxy)
{
if (isSet(joomla_plugin_group_vvvvvxc) && joomla_plugin_group_vvvvvxc.constructor !== Array)
if (isSet(joomla_plugin_group_vvvvvxy) && joomla_plugin_group_vvvvvxy.constructor !== Array)
{
var temp_vvvvvxc = joomla_plugin_group_vvvvvxc;
var joomla_plugin_group_vvvvvxc = [];
joomla_plugin_group_vvvvvxc.push(temp_vvvvvxc);
var temp_vvvvvxy = joomla_plugin_group_vvvvvxy;
var joomla_plugin_group_vvvvvxy = [];
joomla_plugin_group_vvvvvxy.push(temp_vvvvvxy);
}
else if (!isSet(joomla_plugin_group_vvvvvxc))
else if (!isSet(joomla_plugin_group_vvvvvxy))
{
var joomla_plugin_group_vvvvvxc = [];
var joomla_plugin_group_vvvvvxy = [];
}
var joomla_plugin_group = joomla_plugin_group_vvvvvxc.some(joomla_plugin_group_vvvvvxc_SomeFunc);
var joomla_plugin_group = joomla_plugin_group_vvvvvxy.some(joomla_plugin_group_vvvvvxy_SomeFunc);
if (isSet(class_extends_vvvvvxc) && class_extends_vvvvvxc.constructor !== Array)
if (isSet(class_extends_vvvvvxy) && class_extends_vvvvvxy.constructor !== Array)
{
var temp_vvvvvxc = class_extends_vvvvvxc;
var class_extends_vvvvvxc = [];
class_extends_vvvvvxc.push(temp_vvvvvxc);
var temp_vvvvvxy = class_extends_vvvvvxy;
var class_extends_vvvvvxy = [];
class_extends_vvvvvxy.push(temp_vvvvvxy);
}
else if (!isSet(class_extends_vvvvvxc))
else if (!isSet(class_extends_vvvvvxy))
{
var class_extends_vvvvvxc = [];
var class_extends_vvvvvxy = [];
}
var class_extends = class_extends_vvvvvxc.some(class_extends_vvvvvxc_SomeFunc);
var class_extends = class_extends_vvvvvxy.some(class_extends_vvvvvxy_SomeFunc);
// set this function logic
@ -196,42 +196,42 @@ function vvvvvxc(joomla_plugin_group_vvvvvxc,class_extends_vvvvvxc)
}
}
// the vvvvvxc Some function
function joomla_plugin_group_vvvvvxc_SomeFunc(joomla_plugin_group_vvvvvxc)
// the vvvvvxy Some function
function joomla_plugin_group_vvvvvxy_SomeFunc(joomla_plugin_group_vvvvvxy)
{
// set the function logic
if (isSet(joomla_plugin_group_vvvvvxc))
if (isSet(joomla_plugin_group_vvvvvxy))
{
return true;
}
return false;
}
// the vvvvvxc Some function
function class_extends_vvvvvxc_SomeFunc(class_extends_vvvvvxc)
// the vvvvvxy Some function
function class_extends_vvvvvxy_SomeFunc(class_extends_vvvvvxy)
{
// set the function logic
if (isSet(class_extends_vvvvvxc))
if (isSet(class_extends_vvvvvxy))
{
return true;
}
return false;
}
// the vvvvvxd function
function vvvvvxd(class_extends_vvvvvxd)
// the vvvvvxz function
function vvvvvxz(class_extends_vvvvvxz)
{
if (isSet(class_extends_vvvvvxd) && class_extends_vvvvvxd.constructor !== Array)
if (isSet(class_extends_vvvvvxz) && class_extends_vvvvvxz.constructor !== Array)
{
var temp_vvvvvxd = class_extends_vvvvvxd;
var class_extends_vvvvvxd = [];
class_extends_vvvvvxd.push(temp_vvvvvxd);
var temp_vvvvvxz = class_extends_vvvvvxz;
var class_extends_vvvvvxz = [];
class_extends_vvvvvxz.push(temp_vvvvvxz);
}
else if (!isSet(class_extends_vvvvvxd))
else if (!isSet(class_extends_vvvvvxz))
{
var class_extends_vvvvvxd = [];
var class_extends_vvvvvxz = [];
}
var class_extends = class_extends_vvvvvxd.some(class_extends_vvvvvxd_SomeFunc);
var class_extends = class_extends_vvvvvxz.some(class_extends_vvvvvxz_SomeFunc);
// set this function logic
@ -245,43 +245,43 @@ function vvvvvxd(class_extends_vvvvvxd)
}
}
// the vvvvvxd Some function
function class_extends_vvvvvxd_SomeFunc(class_extends_vvvvvxd)
// the vvvvvxz Some function
function class_extends_vvvvvxz_SomeFunc(class_extends_vvvvvxz)
{
// set the function logic
if (isSet(class_extends_vvvvvxd))
if (isSet(class_extends_vvvvvxz))
{
return true;
}
return false;
}
// the vvvvvxe function
function vvvvvxe(add_head_vvvvvxe,class_extends_vvvvvxe)
// the vvvvvya function
function vvvvvya(add_head_vvvvvya,class_extends_vvvvvya)
{
if (isSet(add_head_vvvvvxe) && add_head_vvvvvxe.constructor !== Array)
if (isSet(add_head_vvvvvya) && add_head_vvvvvya.constructor !== Array)
{
var temp_vvvvvxe = add_head_vvvvvxe;
var add_head_vvvvvxe = [];
add_head_vvvvvxe.push(temp_vvvvvxe);
var temp_vvvvvya = add_head_vvvvvya;
var add_head_vvvvvya = [];
add_head_vvvvvya.push(temp_vvvvvya);
}
else if (!isSet(add_head_vvvvvxe))
else if (!isSet(add_head_vvvvvya))
{
var add_head_vvvvvxe = [];
var add_head_vvvvvya = [];
}
var add_head = add_head_vvvvvxe.some(add_head_vvvvvxe_SomeFunc);
var add_head = add_head_vvvvvya.some(add_head_vvvvvya_SomeFunc);
if (isSet(class_extends_vvvvvxe) && class_extends_vvvvvxe.constructor !== Array)
if (isSet(class_extends_vvvvvya) && class_extends_vvvvvya.constructor !== Array)
{
var temp_vvvvvxe = class_extends_vvvvvxe;
var class_extends_vvvvvxe = [];
class_extends_vvvvvxe.push(temp_vvvvvxe);
var temp_vvvvvya = class_extends_vvvvvya;
var class_extends_vvvvvya = [];
class_extends_vvvvvya.push(temp_vvvvvya);
}
else if (!isSet(class_extends_vvvvvxe))
else if (!isSet(class_extends_vvvvvya))
{
var class_extends_vvvvvxe = [];
var class_extends_vvvvvya = [];
}
var class_extends = class_extends_vvvvvxe.some(class_extends_vvvvvxe_SomeFunc);
var class_extends = class_extends_vvvvvya.some(class_extends_vvvvvya_SomeFunc);
// set this function logic
@ -289,57 +289,57 @@ function vvvvvxe(add_head_vvvvvxe,class_extends_vvvvvxe)
{
jQuery('#jform_head-lbl').closest('.control-group').show();
// add required attribute to head field
if (jform_vvvvvxevwd_required)
if (jform_vvvvvyavwh_required)
{
updateFieldRequired('head',0);
jQuery('#jform_head').prop('required','required');
jQuery('#jform_head').attr('aria-required',true);
jQuery('#jform_head').addClass('required');
jform_vvvvvxevwd_required = false;
jform_vvvvvyavwh_required = false;
}
}
else
{
jQuery('#jform_head-lbl').closest('.control-group').hide();
// remove required attribute from head field
if (!jform_vvvvvxevwd_required)
if (!jform_vvvvvyavwh_required)
{
updateFieldRequired('head',1);
jQuery('#jform_head').removeAttr('required');
jQuery('#jform_head').removeAttr('aria-required');
jQuery('#jform_head').removeClass('required');
jform_vvvvvxevwd_required = true;
jform_vvvvvyavwh_required = true;
}
}
}
// the vvvvvxe Some function
function add_head_vvvvvxe_SomeFunc(add_head_vvvvvxe)
// the vvvvvya Some function
function add_head_vvvvvya_SomeFunc(add_head_vvvvvya)
{
// set the function logic
if (add_head_vvvvvxe == 1)
if (add_head_vvvvvya == 1)
{
return true;
}
return false;
}
// the vvvvvxe Some function
function class_extends_vvvvvxe_SomeFunc(class_extends_vvvvvxe)
// the vvvvvya Some function
function class_extends_vvvvvya_SomeFunc(class_extends_vvvvvya)
{
// set the function logic
if (isSet(class_extends_vvvvvxe))
if (isSet(class_extends_vvvvvya))
{
return true;
}
return false;
}
// the vvvvvxg function
function vvvvvxg(add_php_script_construct_vvvvvxg)
// the vvvvvyc function
function vvvvvyc(add_php_script_construct_vvvvvyc)
{
// set the function logic
if (add_php_script_construct_vvvvvxg == 1)
if (add_php_script_construct_vvvvvyc == 1)
{
jQuery('#jform_php_script_construct-lbl').closest('.control-group').show();
}
@ -349,11 +349,11 @@ function vvvvvxg(add_php_script_construct_vvvvvxg)
}
}
// the vvvvvxh function
function vvvvvxh(add_php_preflight_install_vvvvvxh)
// the vvvvvyd function
function vvvvvyd(add_php_preflight_install_vvvvvyd)
{
// set the function logic
if (add_php_preflight_install_vvvvvxh == 1)
if (add_php_preflight_install_vvvvvyd == 1)
{
jQuery('#jform_php_preflight_install-lbl').closest('.control-group').show();
}
@ -363,11 +363,11 @@ function vvvvvxh(add_php_preflight_install_vvvvvxh)
}
}
// the vvvvvxi function
function vvvvvxi(add_php_preflight_update_vvvvvxi)
// the vvvvvye function
function vvvvvye(add_php_preflight_update_vvvvvye)
{
// set the function logic
if (add_php_preflight_update_vvvvvxi == 1)
if (add_php_preflight_update_vvvvvye == 1)
{
jQuery('#jform_php_preflight_update-lbl').closest('.control-group').show();
}
@ -377,11 +377,11 @@ function vvvvvxi(add_php_preflight_update_vvvvvxi)
}
}
// the vvvvvxj function
function vvvvvxj(add_php_preflight_uninstall_vvvvvxj)
// the vvvvvyf function
function vvvvvyf(add_php_preflight_uninstall_vvvvvyf)
{
// set the function logic
if (add_php_preflight_uninstall_vvvvvxj == 1)
if (add_php_preflight_uninstall_vvvvvyf == 1)
{
jQuery('#jform_php_preflight_uninstall-lbl').closest('.control-group').show();
}
@ -391,11 +391,11 @@ function vvvvvxj(add_php_preflight_uninstall_vvvvvxj)
}
}
// the vvvvvxk function
function vvvvvxk(add_php_postflight_install_vvvvvxk)
// the vvvvvyg function
function vvvvvyg(add_php_postflight_install_vvvvvyg)
{
// set the function logic
if (add_php_postflight_install_vvvvvxk == 1)
if (add_php_postflight_install_vvvvvyg == 1)
{
jQuery('#jform_php_postflight_install-lbl').closest('.control-group').show();
}
@ -405,11 +405,11 @@ function vvvvvxk(add_php_postflight_install_vvvvvxk)
}
}
// the vvvvvxl function
function vvvvvxl(add_php_postflight_update_vvvvvxl)
// the vvvvvyh function
function vvvvvyh(add_php_postflight_update_vvvvvyh)
{
// set the function logic
if (add_php_postflight_update_vvvvvxl == 1)
if (add_php_postflight_update_vvvvvyh == 1)
{
jQuery('#jform_php_postflight_update-lbl').closest('.control-group').show();
}
@ -419,11 +419,11 @@ function vvvvvxl(add_php_postflight_update_vvvvvxl)
}
}
// the vvvvvxm function
function vvvvvxm(add_php_method_uninstall_vvvvvxm)
// the vvvvvyi function
function vvvvvyi(add_php_method_uninstall_vvvvvyi)
{
// set the function logic
if (add_php_method_uninstall_vvvvvxm == 1)
if (add_php_method_uninstall_vvvvvyi == 1)
{
jQuery('#jform_php_method_uninstall-lbl').closest('.control-group').show();
}
@ -433,11 +433,11 @@ function vvvvvxm(add_php_method_uninstall_vvvvvxm)
}
}
// the vvvvvxn function
function vvvvvxn(update_server_target_vvvvvxn,add_update_server_vvvvvxn)
// the vvvvvyj function
function vvvvvyj(update_server_target_vvvvvyj,add_update_server_vvvvvyj)
{
// set the function logic
if (update_server_target_vvvvvxn == 1 && add_update_server_vvvvvxn == 1)
if (update_server_target_vvvvvyj == 1 && add_update_server_vvvvvyj == 1)
{
jQuery('#jform_update_server').closest('.control-group').show();
jQuery('.note_update_server_note_ftp').closest('.control-group').show();
@ -449,11 +449,11 @@ function vvvvvxn(update_server_target_vvvvvxn,add_update_server_vvvvvxn)
}
}
// the vvvvvxo function
function vvvvvxo(add_update_server_vvvvvxo,update_server_target_vvvvvxo)
// the vvvvvyk function
function vvvvvyk(add_update_server_vvvvvyk,update_server_target_vvvvvyk)
{
// set the function logic
if (add_update_server_vvvvvxo == 1 && update_server_target_vvvvvxo == 1)
if (add_update_server_vvvvvyk == 1 && update_server_target_vvvvvyk == 1)
{
jQuery('#jform_update_server').closest('.control-group').show();
jQuery('.note_update_server_note_ftp').closest('.control-group').show();
@ -465,11 +465,11 @@ function vvvvvxo(add_update_server_vvvvvxo,update_server_target_vvvvvxo)
}
}
// the vvvvvxp function
function vvvvvxp(update_server_target_vvvvvxp,add_update_server_vvvvvxp)
// the vvvvvyl function
function vvvvvyl(update_server_target_vvvvvyl,add_update_server_vvvvvyl)
{
// set the function logic
if (update_server_target_vvvvvxp == 2 && add_update_server_vvvvvxp == 1)
if (update_server_target_vvvvvyl == 2 && add_update_server_vvvvvyl == 1)
{
jQuery('.note_update_server_note_zip').closest('.control-group').show();
}
@ -479,11 +479,11 @@ function vvvvvxp(update_server_target_vvvvvxp,add_update_server_vvvvvxp)
}
}
// the vvvvvxr function
function vvvvvxr(update_server_target_vvvvvxr,add_update_server_vvvvvxr)
// the vvvvvyn function
function vvvvvyn(update_server_target_vvvvvyn,add_update_server_vvvvvyn)
{
// set the function logic
if (update_server_target_vvvvvxr == 3 && add_update_server_vvvvvxr == 1)
if (update_server_target_vvvvvyn == 3 && add_update_server_vvvvvyn == 1)
{
jQuery('.note_update_server_note_other').closest('.control-group').show();
}
@ -493,107 +493,107 @@ function vvvvvxr(update_server_target_vvvvvxr,add_update_server_vvvvvxr)
}
}
// the vvvvvxt function
function vvvvvxt(add_update_server_vvvvvxt)
// the vvvvvyp function
function vvvvvyp(add_update_server_vvvvvyp)
{
// set the function logic
if (add_update_server_vvvvvxt == 1)
if (add_update_server_vvvvvyp == 1)
{
jQuery('#jform_update_server_target').closest('.control-group').show();
// add required attribute to update_server_target field
if (jform_vvvvvxtvwe_required)
if (jform_vvvvvypvwi_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_vvvvvxtvwe_required = false;
jform_vvvvvypvwi_required = false;
}
}
else
{
jQuery('#jform_update_server_target').closest('.control-group').hide();
// remove required attribute from update_server_target field
if (!jform_vvvvvxtvwe_required)
if (!jform_vvvvvypvwi_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_vvvvvxtvwe_required = true;
jform_vvvvvypvwi_required = true;
}
}
}
// the vvvvvxu function
function vvvvvxu(add_sql_vvvvvxu)
// the vvvvvyq function
function vvvvvyq(add_sql_vvvvvyq)
{
// set the function logic
if (add_sql_vvvvvxu == 1)
if (add_sql_vvvvvyq == 1)
{
jQuery('#jform_sql').closest('.control-group').show();
// add required attribute to sql field
if (jform_vvvvvxuvwf_required)
if (jform_vvvvvyqvwj_required)
{
updateFieldRequired('sql',0);
jQuery('#jform_sql').prop('required','required');
jQuery('#jform_sql').attr('aria-required',true);
jQuery('#jform_sql').addClass('required');
jform_vvvvvxuvwf_required = false;
jform_vvvvvyqvwj_required = false;
}
}
else
{
jQuery('#jform_sql').closest('.control-group').hide();
// remove required attribute from sql field
if (!jform_vvvvvxuvwf_required)
if (!jform_vvvvvyqvwj_required)
{
updateFieldRequired('sql',1);
jQuery('#jform_sql').removeAttr('required');
jQuery('#jform_sql').removeAttr('aria-required');
jQuery('#jform_sql').removeClass('required');
jform_vvvvvxuvwf_required = true;
jform_vvvvvyqvwj_required = true;
}
}
}
// the vvvvvxv function
function vvvvvxv(add_sql_uninstall_vvvvvxv)
// the vvvvvyr function
function vvvvvyr(add_sql_uninstall_vvvvvyr)
{
// set the function logic
if (add_sql_uninstall_vvvvvxv == 1)
if (add_sql_uninstall_vvvvvyr == 1)
{
jQuery('#jform_sql_uninstall').closest('.control-group').show();
// add required attribute to sql_uninstall field
if (jform_vvvvvxvvwg_required)
if (jform_vvvvvyrvwk_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_vvvvvxvvwg_required = false;
jform_vvvvvyrvwk_required = false;
}
}
else
{
jQuery('#jform_sql_uninstall').closest('.control-group').hide();
// remove required attribute from sql_uninstall field
if (!jform_vvvvvxvvwg_required)
if (!jform_vvvvvyrvwk_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_vvvvvxvvwg_required = true;
jform_vvvvvyrvwk_required = true;
}
}
}
// the vvvvvxw function
function vvvvvxw(add_update_server_vvvvvxw)
// the vvvvvys function
function vvvvvys(add_update_server_vvvvvys)
{
// set the function logic
if (add_update_server_vvvvvxw == 1)
if (add_update_server_vvvvvys == 1)
{
jQuery('#jform_update_server_url').closest('.control-group').show();
}
@ -603,11 +603,11 @@ function vvvvvxw(add_update_server_vvvvvxw)
}
}
// the vvvvvxx function
function vvvvvxx(add_sales_server_vvvvvxx)
// the vvvvvyt function
function vvvvvyt(add_sales_server_vvvvvyt)
{
// set the function logic
if (add_sales_server_vvvvvxx == 1)
if (add_sales_server_vvvvvyt == 1)
{
jQuery('#jform_sales_server').closest('.control-group').show();
}
@ -617,11 +617,11 @@ function vvvvvxx(add_sales_server_vvvvvxx)
}
}
// the vvvvvxy function
function vvvvvxy(addreadme_vvvvvxy)
// the vvvvvyu function
function vvvvvyu(addreadme_vvvvvyu)
{
// set the function logic
if (addreadme_vvvvvxy == 1)
if (addreadme_vvvvvyu == 1)
{
jQuery('#jform_readme-lbl').closest('.control-group').show();
}

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -9,56 +9,56 @@
*/
// Some Global Values
jform_vvvvwdevyj_required = false;
jform_vvvvwdevyk_required = false;
jform_vvvvwdevyl_required = false;
jform_vvvvwdevym_required = false;
jform_vvvvwdevyn_required = false;
jform_vvvvwdfvyo_required = false;
jform_vvvvwdgvyp_required = false;
jform_vvvvwdivyq_required = false;
jform_vvvvwdkvyr_required = false;
jform_vvvvweavyn_required = false;
jform_vvvvweavyo_required = false;
jform_vvvvweavyp_required = false;
jform_vvvvweavyq_required = false;
jform_vvvvweavyr_required = false;
jform_vvvvwebvys_required = false;
jform_vvvvwecvyt_required = false;
jform_vvvvweevyu_required = false;
jform_vvvvwegvyv_required = false;
// Initial Script
jQuery(document).ready(function()
{
var protocol_vvvvwde = jQuery("#jform_protocol").val();
vvvvwde(protocol_vvvvwde);
var protocol_vvvvwea = jQuery("#jform_protocol").val();
vvvvwea(protocol_vvvvwea);
var protocol_vvvvwdf = jQuery("#jform_protocol").val();
vvvvwdf(protocol_vvvvwdf);
var protocol_vvvvweb = jQuery("#jform_protocol").val();
vvvvweb(protocol_vvvvweb);
var protocol_vvvvwdg = jQuery("#jform_protocol").val();
var authentication_vvvvwdg = jQuery("#jform_authentication").val();
vvvvwdg(protocol_vvvvwdg,authentication_vvvvwdg);
var protocol_vvvvwec = jQuery("#jform_protocol").val();
var authentication_vvvvwec = jQuery("#jform_authentication").val();
vvvvwec(protocol_vvvvwec,authentication_vvvvwec);
var protocol_vvvvwdi = jQuery("#jform_protocol").val();
var authentication_vvvvwdi = jQuery("#jform_authentication").val();
vvvvwdi(protocol_vvvvwdi,authentication_vvvvwdi);
var protocol_vvvvwee = jQuery("#jform_protocol").val();
var authentication_vvvvwee = jQuery("#jform_authentication").val();
vvvvwee(protocol_vvvvwee,authentication_vvvvwee);
var protocol_vvvvwdk = jQuery("#jform_protocol").val();
var authentication_vvvvwdk = jQuery("#jform_authentication").val();
vvvvwdk(protocol_vvvvwdk,authentication_vvvvwdk);
var protocol_vvvvweg = jQuery("#jform_protocol").val();
var authentication_vvvvweg = jQuery("#jform_authentication").val();
vvvvweg(protocol_vvvvweg,authentication_vvvvweg);
var protocol_vvvvwdm = jQuery("#jform_protocol").val();
var authentication_vvvvwdm = jQuery("#jform_authentication").val();
vvvvwdm(protocol_vvvvwdm,authentication_vvvvwdm);
var protocol_vvvvwei = jQuery("#jform_protocol").val();
var authentication_vvvvwei = jQuery("#jform_authentication").val();
vvvvwei(protocol_vvvvwei,authentication_vvvvwei);
});
// the vvvvwde function
function vvvvwde(protocol_vvvvwde)
// the vvvvwea function
function vvvvwea(protocol_vvvvwea)
{
if (isSet(protocol_vvvvwde) && protocol_vvvvwde.constructor !== Array)
if (isSet(protocol_vvvvwea) && protocol_vvvvwea.constructor !== Array)
{
var temp_vvvvwde = protocol_vvvvwde;
var protocol_vvvvwde = [];
protocol_vvvvwde.push(temp_vvvvwde);
var temp_vvvvwea = protocol_vvvvwea;
var protocol_vvvvwea = [];
protocol_vvvvwea.push(temp_vvvvwea);
}
else if (!isSet(protocol_vvvvwde))
else if (!isSet(protocol_vvvvwea))
{
var protocol_vvvvwde = [];
var protocol_vvvvwea = [];
}
var protocol = protocol_vvvvwde.some(protocol_vvvvwde_SomeFunc);
var protocol = protocol_vvvvwea.some(protocol_vvvvwea_SomeFunc);
// set this function logic
@ -66,137 +66,137 @@ function vvvvwde(protocol_vvvvwde)
{
jQuery('#jform_authentication').closest('.control-group').show();
// add required attribute to authentication field
if (jform_vvvvwdevyj_required)
if (jform_vvvvweavyn_required)
{
updateFieldRequired('authentication',0);
jQuery('#jform_authentication').prop('required','required');
jQuery('#jform_authentication').attr('aria-required',true);
jQuery('#jform_authentication').addClass('required');
jform_vvvvwdevyj_required = false;
jform_vvvvweavyn_required = false;
}
jQuery('#jform_host').closest('.control-group').show();
// add required attribute to host field
if (jform_vvvvwdevyk_required)
if (jform_vvvvweavyo_required)
{
updateFieldRequired('host',0);
jQuery('#jform_host').prop('required','required');
jQuery('#jform_host').attr('aria-required',true);
jQuery('#jform_host').addClass('required');
jform_vvvvwdevyk_required = false;
jform_vvvvweavyo_required = false;
}
jQuery('#jform_port').closest('.control-group').show();
// add required attribute to port field
if (jform_vvvvwdevyl_required)
if (jform_vvvvweavyp_required)
{
updateFieldRequired('port',0);
jQuery('#jform_port').prop('required','required');
jQuery('#jform_port').attr('aria-required',true);
jQuery('#jform_port').addClass('required');
jform_vvvvwdevyl_required = false;
jform_vvvvweavyp_required = false;
}
jQuery('#jform_path').closest('.control-group').show();
// add required attribute to path field
if (jform_vvvvwdevym_required)
if (jform_vvvvweavyq_required)
{
updateFieldRequired('path',0);
jQuery('#jform_path').prop('required','required');
jQuery('#jform_path').attr('aria-required',true);
jQuery('#jform_path').addClass('required');
jform_vvvvwdevym_required = false;
jform_vvvvweavyq_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_vvvvwdevyn_required)
if (jform_vvvvweavyr_required)
{
updateFieldRequired('username',0);
jQuery('#jform_username').prop('required','required');
jQuery('#jform_username').attr('aria-required',true);
jQuery('#jform_username').addClass('required');
jform_vvvvwdevyn_required = false;
jform_vvvvweavyr_required = false;
}
}
else
{
jQuery('#jform_authentication').closest('.control-group').hide();
// remove required attribute from authentication field
if (!jform_vvvvwdevyj_required)
if (!jform_vvvvweavyn_required)
{
updateFieldRequired('authentication',1);
jQuery('#jform_authentication').removeAttr('required');
jQuery('#jform_authentication').removeAttr('aria-required');
jQuery('#jform_authentication').removeClass('required');
jform_vvvvwdevyj_required = true;
jform_vvvvweavyn_required = true;
}
jQuery('#jform_host').closest('.control-group').hide();
// remove required attribute from host field
if (!jform_vvvvwdevyk_required)
if (!jform_vvvvweavyo_required)
{
updateFieldRequired('host',1);
jQuery('#jform_host').removeAttr('required');
jQuery('#jform_host').removeAttr('aria-required');
jQuery('#jform_host').removeClass('required');
jform_vvvvwdevyk_required = true;
jform_vvvvweavyo_required = true;
}
jQuery('#jform_port').closest('.control-group').hide();
// remove required attribute from port field
if (!jform_vvvvwdevyl_required)
if (!jform_vvvvweavyp_required)
{
updateFieldRequired('port',1);
jQuery('#jform_port').removeAttr('required');
jQuery('#jform_port').removeAttr('aria-required');
jQuery('#jform_port').removeClass('required');
jform_vvvvwdevyl_required = true;
jform_vvvvweavyp_required = true;
}
jQuery('#jform_path').closest('.control-group').hide();
// remove required attribute from path field
if (!jform_vvvvwdevym_required)
if (!jform_vvvvweavyq_required)
{
updateFieldRequired('path',1);
jQuery('#jform_path').removeAttr('required');
jQuery('#jform_path').removeAttr('aria-required');
jQuery('#jform_path').removeClass('required');
jform_vvvvwdevym_required = true;
jform_vvvvweavyq_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_vvvvwdevyn_required)
if (!jform_vvvvweavyr_required)
{
updateFieldRequired('username',1);
jQuery('#jform_username').removeAttr('required');
jQuery('#jform_username').removeAttr('aria-required');
jQuery('#jform_username').removeClass('required');
jform_vvvvwdevyn_required = true;
jform_vvvvweavyr_required = true;
}
}
}
// the vvvvwde Some function
function protocol_vvvvwde_SomeFunc(protocol_vvvvwde)
// the vvvvwea Some function
function protocol_vvvvwea_SomeFunc(protocol_vvvvwea)
{
// set the function logic
if (protocol_vvvvwde == 2)
if (protocol_vvvvwea == 2)
{
return true;
}
return false;
}
// the vvvvwdf function
function vvvvwdf(protocol_vvvvwdf)
// the vvvvweb function
function vvvvweb(protocol_vvvvweb)
{
if (isSet(protocol_vvvvwdf) && protocol_vvvvwdf.constructor !== Array)
if (isSet(protocol_vvvvweb) && protocol_vvvvweb.constructor !== Array)
{
var temp_vvvvwdf = protocol_vvvvwdf;
var protocol_vvvvwdf = [];
protocol_vvvvwdf.push(temp_vvvvwdf);
var temp_vvvvweb = protocol_vvvvweb;
var protocol_vvvvweb = [];
protocol_vvvvweb.push(temp_vvvvweb);
}
else if (!isSet(protocol_vvvvwdf))
else if (!isSet(protocol_vvvvweb))
{
var protocol_vvvvwdf = [];
var protocol_vvvvweb = [];
}
var protocol = protocol_vvvvwdf.some(protocol_vvvvwdf_SomeFunc);
var protocol = protocol_vvvvweb.some(protocol_vvvvweb_SomeFunc);
// set this function logic
@ -205,13 +205,13 @@ function vvvvwdf(protocol_vvvvwdf)
jQuery('.note_ftp_signature').closest('.control-group').show();
jQuery('#jform_signature').closest('.control-group').show();
// add required attribute to signature field
if (jform_vvvvwdfvyo_required)
if (jform_vvvvwebvys_required)
{
updateFieldRequired('signature',0);
jQuery('#jform_signature').prop('required','required');
jQuery('#jform_signature').attr('aria-required',true);
jQuery('#jform_signature').addClass('required');
jform_vvvvwdfvyo_required = false;
jform_vvvvwebvys_required = false;
}
}
else
@ -219,54 +219,54 @@ function vvvvwdf(protocol_vvvvwdf)
jQuery('.note_ftp_signature').closest('.control-group').hide();
jQuery('#jform_signature').closest('.control-group').hide();
// remove required attribute from signature field
if (!jform_vvvvwdfvyo_required)
if (!jform_vvvvwebvys_required)
{
updateFieldRequired('signature',1);
jQuery('#jform_signature').removeAttr('required');
jQuery('#jform_signature').removeAttr('aria-required');
jQuery('#jform_signature').removeClass('required');
jform_vvvvwdfvyo_required = true;
jform_vvvvwebvys_required = true;
}
}
}
// the vvvvwdf Some function
function protocol_vvvvwdf_SomeFunc(protocol_vvvvwdf)
// the vvvvweb Some function
function protocol_vvvvweb_SomeFunc(protocol_vvvvweb)
{
// set the function logic
if (protocol_vvvvwdf == 1)
if (protocol_vvvvweb == 1)
{
return true;
}
return false;
}
// the vvvvwdg function
function vvvvwdg(protocol_vvvvwdg,authentication_vvvvwdg)
// the vvvvwec function
function vvvvwec(protocol_vvvvwec,authentication_vvvvwec)
{
if (isSet(protocol_vvvvwdg) && protocol_vvvvwdg.constructor !== Array)
if (isSet(protocol_vvvvwec) && protocol_vvvvwec.constructor !== Array)
{
var temp_vvvvwdg = protocol_vvvvwdg;
var protocol_vvvvwdg = [];
protocol_vvvvwdg.push(temp_vvvvwdg);
var temp_vvvvwec = protocol_vvvvwec;
var protocol_vvvvwec = [];
protocol_vvvvwec.push(temp_vvvvwec);
}
else if (!isSet(protocol_vvvvwdg))
else if (!isSet(protocol_vvvvwec))
{
var protocol_vvvvwdg = [];
var protocol_vvvvwec = [];
}
var protocol = protocol_vvvvwdg.some(protocol_vvvvwdg_SomeFunc);
var protocol = protocol_vvvvwec.some(protocol_vvvvwec_SomeFunc);
if (isSet(authentication_vvvvwdg) && authentication_vvvvwdg.constructor !== Array)
if (isSet(authentication_vvvvwec) && authentication_vvvvwec.constructor !== Array)
{
var temp_vvvvwdg = authentication_vvvvwdg;
var authentication_vvvvwdg = [];
authentication_vvvvwdg.push(temp_vvvvwdg);
var temp_vvvvwec = authentication_vvvvwec;
var authentication_vvvvwec = [];
authentication_vvvvwec.push(temp_vvvvwec);
}
else if (!isSet(authentication_vvvvwdg))
else if (!isSet(authentication_vvvvwec))
{
var authentication_vvvvwdg = [];
var authentication_vvvvwec = [];
}
var authentication = authentication_vvvvwdg.some(authentication_vvvvwdg_SomeFunc);
var authentication = authentication_vvvvwec.some(authentication_vvvvwec_SomeFunc);
// set this function logic
@ -274,78 +274,78 @@ function vvvvwdg(protocol_vvvvwdg,authentication_vvvvwdg)
{
jQuery('#jform_password').closest('.control-group').show();
// add required attribute to password field
if (jform_vvvvwdgvyp_required)
if (jform_vvvvwecvyt_required)
{
updateFieldRequired('password',0);
jQuery('#jform_password').prop('required','required');
jQuery('#jform_password').attr('aria-required',true);
jQuery('#jform_password').addClass('required');
jform_vvvvwdgvyp_required = false;
jform_vvvvwecvyt_required = false;
}
}
else
{
jQuery('#jform_password').closest('.control-group').hide();
// remove required attribute from password field
if (!jform_vvvvwdgvyp_required)
if (!jform_vvvvwecvyt_required)
{
updateFieldRequired('password',1);
jQuery('#jform_password').removeAttr('required');
jQuery('#jform_password').removeAttr('aria-required');
jQuery('#jform_password').removeClass('required');
jform_vvvvwdgvyp_required = true;
jform_vvvvwecvyt_required = true;
}
}
}
// the vvvvwdg Some function
function protocol_vvvvwdg_SomeFunc(protocol_vvvvwdg)
// the vvvvwec Some function
function protocol_vvvvwec_SomeFunc(protocol_vvvvwec)
{
// set the function logic
if (protocol_vvvvwdg == 2)
if (protocol_vvvvwec == 2)
{
return true;
}
return false;
}
// the vvvvwdg Some function
function authentication_vvvvwdg_SomeFunc(authentication_vvvvwdg)
// the vvvvwec Some function
function authentication_vvvvwec_SomeFunc(authentication_vvvvwec)
{
// set the function logic
if (authentication_vvvvwdg == 1 || authentication_vvvvwdg == 3 || authentication_vvvvwdg == 5)
if (authentication_vvvvwec == 1 || authentication_vvvvwec == 3 || authentication_vvvvwec == 5)
{
return true;
}
return false;
}
// the vvvvwdi function
function vvvvwdi(protocol_vvvvwdi,authentication_vvvvwdi)
// the vvvvwee function
function vvvvwee(protocol_vvvvwee,authentication_vvvvwee)
{
if (isSet(protocol_vvvvwdi) && protocol_vvvvwdi.constructor !== Array)
if (isSet(protocol_vvvvwee) && protocol_vvvvwee.constructor !== Array)
{
var temp_vvvvwdi = protocol_vvvvwdi;
var protocol_vvvvwdi = [];
protocol_vvvvwdi.push(temp_vvvvwdi);
var temp_vvvvwee = protocol_vvvvwee;
var protocol_vvvvwee = [];
protocol_vvvvwee.push(temp_vvvvwee);
}
else if (!isSet(protocol_vvvvwdi))
else if (!isSet(protocol_vvvvwee))
{
var protocol_vvvvwdi = [];
var protocol_vvvvwee = [];
}
var protocol = protocol_vvvvwdi.some(protocol_vvvvwdi_SomeFunc);
var protocol = protocol_vvvvwee.some(protocol_vvvvwee_SomeFunc);
if (isSet(authentication_vvvvwdi) && authentication_vvvvwdi.constructor !== Array)
if (isSet(authentication_vvvvwee) && authentication_vvvvwee.constructor !== Array)
{
var temp_vvvvwdi = authentication_vvvvwdi;
var authentication_vvvvwdi = [];
authentication_vvvvwdi.push(temp_vvvvwdi);
var temp_vvvvwee = authentication_vvvvwee;
var authentication_vvvvwee = [];
authentication_vvvvwee.push(temp_vvvvwee);
}
else if (!isSet(authentication_vvvvwdi))
else if (!isSet(authentication_vvvvwee))
{
var authentication_vvvvwdi = [];
var authentication_vvvvwee = [];
}
var authentication = authentication_vvvvwdi.some(authentication_vvvvwdi_SomeFunc);
var authentication = authentication_vvvvwee.some(authentication_vvvvwee_SomeFunc);
// set this function logic
@ -353,78 +353,78 @@ function vvvvwdi(protocol_vvvvwdi,authentication_vvvvwdi)
{
jQuery('#jform_private').closest('.control-group').show();
// add required attribute to private field
if (jform_vvvvwdivyq_required)
if (jform_vvvvweevyu_required)
{
updateFieldRequired('private',0);
jQuery('#jform_private').prop('required','required');
jQuery('#jform_private').attr('aria-required',true);
jQuery('#jform_private').addClass('required');
jform_vvvvwdivyq_required = false;
jform_vvvvweevyu_required = false;
}
}
else
{
jQuery('#jform_private').closest('.control-group').hide();
// remove required attribute from private field
if (!jform_vvvvwdivyq_required)
if (!jform_vvvvweevyu_required)
{
updateFieldRequired('private',1);
jQuery('#jform_private').removeAttr('required');
jQuery('#jform_private').removeAttr('aria-required');
jQuery('#jform_private').removeClass('required');
jform_vvvvwdivyq_required = true;
jform_vvvvweevyu_required = true;
}
}
}
// the vvvvwdi Some function
function protocol_vvvvwdi_SomeFunc(protocol_vvvvwdi)
// the vvvvwee Some function
function protocol_vvvvwee_SomeFunc(protocol_vvvvwee)
{
// set the function logic
if (protocol_vvvvwdi == 2)
if (protocol_vvvvwee == 2)
{
return true;
}
return false;
}
// the vvvvwdi Some function
function authentication_vvvvwdi_SomeFunc(authentication_vvvvwdi)
// the vvvvwee Some function
function authentication_vvvvwee_SomeFunc(authentication_vvvvwee)
{
// set the function logic
if (authentication_vvvvwdi == 2 || authentication_vvvvwdi == 3)
if (authentication_vvvvwee == 2 || authentication_vvvvwee == 3)
{
return true;
}
return false;
}
// the vvvvwdk function
function vvvvwdk(protocol_vvvvwdk,authentication_vvvvwdk)
// the vvvvweg function
function vvvvweg(protocol_vvvvweg,authentication_vvvvweg)
{
if (isSet(protocol_vvvvwdk) && protocol_vvvvwdk.constructor !== Array)
if (isSet(protocol_vvvvweg) && protocol_vvvvweg.constructor !== Array)
{
var temp_vvvvwdk = protocol_vvvvwdk;
var protocol_vvvvwdk = [];
protocol_vvvvwdk.push(temp_vvvvwdk);
var temp_vvvvweg = protocol_vvvvweg;
var protocol_vvvvweg = [];
protocol_vvvvweg.push(temp_vvvvweg);
}
else if (!isSet(protocol_vvvvwdk))
else if (!isSet(protocol_vvvvweg))
{
var protocol_vvvvwdk = [];
var protocol_vvvvweg = [];
}
var protocol = protocol_vvvvwdk.some(protocol_vvvvwdk_SomeFunc);
var protocol = protocol_vvvvweg.some(protocol_vvvvweg_SomeFunc);
if (isSet(authentication_vvvvwdk) && authentication_vvvvwdk.constructor !== Array)
if (isSet(authentication_vvvvweg) && authentication_vvvvweg.constructor !== Array)
{
var temp_vvvvwdk = authentication_vvvvwdk;
var authentication_vvvvwdk = [];
authentication_vvvvwdk.push(temp_vvvvwdk);
var temp_vvvvweg = authentication_vvvvweg;
var authentication_vvvvweg = [];
authentication_vvvvweg.push(temp_vvvvweg);
}
else if (!isSet(authentication_vvvvwdk))
else if (!isSet(authentication_vvvvweg))
{
var authentication_vvvvwdk = [];
var authentication_vvvvweg = [];
}
var authentication = authentication_vvvvwdk.some(authentication_vvvvwdk_SomeFunc);
var authentication = authentication_vvvvweg.some(authentication_vvvvweg_SomeFunc);
// set this function logic
@ -432,78 +432,78 @@ function vvvvwdk(protocol_vvvvwdk,authentication_vvvvwdk)
{
jQuery('#jform_private_key').closest('.control-group').show();
// add required attribute to private_key field
if (jform_vvvvwdkvyr_required)
if (jform_vvvvwegvyv_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_vvvvwdkvyr_required = false;
jform_vvvvwegvyv_required = false;
}
}
else
{
jQuery('#jform_private_key').closest('.control-group').hide();
// remove required attribute from private_key field
if (!jform_vvvvwdkvyr_required)
if (!jform_vvvvwegvyv_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_vvvvwdkvyr_required = true;
jform_vvvvwegvyv_required = true;
}
}
}
// the vvvvwdk Some function
function protocol_vvvvwdk_SomeFunc(protocol_vvvvwdk)
// the vvvvweg Some function
function protocol_vvvvweg_SomeFunc(protocol_vvvvweg)
{
// set the function logic
if (protocol_vvvvwdk == 2)
if (protocol_vvvvweg == 2)
{
return true;
}
return false;
}
// the vvvvwdk Some function
function authentication_vvvvwdk_SomeFunc(authentication_vvvvwdk)
// the vvvvweg Some function
function authentication_vvvvweg_SomeFunc(authentication_vvvvweg)
{
// set the function logic
if (authentication_vvvvwdk == 4 || authentication_vvvvwdk == 5)
if (authentication_vvvvweg == 4 || authentication_vvvvweg == 5)
{
return true;
}
return false;
}
// the vvvvwdm function
function vvvvwdm(protocol_vvvvwdm,authentication_vvvvwdm)
// the vvvvwei function
function vvvvwei(protocol_vvvvwei,authentication_vvvvwei)
{
if (isSet(protocol_vvvvwdm) && protocol_vvvvwdm.constructor !== Array)
if (isSet(protocol_vvvvwei) && protocol_vvvvwei.constructor !== Array)
{
var temp_vvvvwdm = protocol_vvvvwdm;
var protocol_vvvvwdm = [];
protocol_vvvvwdm.push(temp_vvvvwdm);
var temp_vvvvwei = protocol_vvvvwei;
var protocol_vvvvwei = [];
protocol_vvvvwei.push(temp_vvvvwei);
}
else if (!isSet(protocol_vvvvwdm))
else if (!isSet(protocol_vvvvwei))
{
var protocol_vvvvwdm = [];
var protocol_vvvvwei = [];
}
var protocol = protocol_vvvvwdm.some(protocol_vvvvwdm_SomeFunc);
var protocol = protocol_vvvvwei.some(protocol_vvvvwei_SomeFunc);
if (isSet(authentication_vvvvwdm) && authentication_vvvvwdm.constructor !== Array)
if (isSet(authentication_vvvvwei) && authentication_vvvvwei.constructor !== Array)
{
var temp_vvvvwdm = authentication_vvvvwdm;
var authentication_vvvvwdm = [];
authentication_vvvvwdm.push(temp_vvvvwdm);
var temp_vvvvwei = authentication_vvvvwei;
var authentication_vvvvwei = [];
authentication_vvvvwei.push(temp_vvvvwei);
}
else if (!isSet(authentication_vvvvwdm))
else if (!isSet(authentication_vvvvwei))
{
var authentication_vvvvwdm = [];
var authentication_vvvvwei = [];
}
var authentication = authentication_vvvvwdm.some(authentication_vvvvwdm_SomeFunc);
var authentication = authentication_vvvvwei.some(authentication_vvvvwei_SomeFunc);
// set this function logic
@ -517,22 +517,22 @@ function vvvvwdm(protocol_vvvvwdm,authentication_vvvvwdm)
}
}
// the vvvvwdm Some function
function protocol_vvvvwdm_SomeFunc(protocol_vvvvwdm)
// the vvvvwei Some function
function protocol_vvvvwei_SomeFunc(protocol_vvvvwei)
{
// set the function logic
if (protocol_vvvvwdm == 2)
if (protocol_vvvvwei == 2)
{
return true;
}
return false;
}
// the vvvvwdm Some function
function authentication_vvvvwdm_SomeFunc(authentication_vvvvwdm)
// the vvvvwei Some function
function authentication_vvvvwei_SomeFunc(authentication_vvvvwei)
{
// set the function logic
if (authentication_vvvvwdm == 2 || authentication_vvvvwdm == 3 || authentication_vvvvwdm == 4 || authentication_vvvvwdm == 5)
if (authentication_vvvvwei == 2 || authentication_vvvvwei == 3 || authentication_vvvvwei == 4 || authentication_vvvvwei == 5)
{
return true;
}

View File

@ -11,45 +11,45 @@
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvvzr = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvzr(add_php_view_vvvvvzr);
var add_php_view_vvvvwan = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvwan(add_php_view_vvvvwan);
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_display_vvvvwao = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
vvvvwao(add_php_jview_display_vvvvwao);
var add_php_jview_vvvvvzt = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
vvvvvzt(add_php_jview_vvvvvzt);
var add_php_jview_vvvvwap = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
vvvvwap(add_php_jview_vvvvwap);
var add_php_document_vvvvvzu = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvzu(add_php_document_vvvvvzu);
var add_php_document_vvvvwaq = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvwaq(add_php_document_vvvvwaq);
var add_css_document_vvvvvzv = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvvzv(add_css_document_vvvvvzv);
var add_css_document_vvvvwar = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvwar(add_css_document_vvvvwar);
var add_javascript_file_vvvvvzw = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
vvvvvzw(add_javascript_file_vvvvvzw);
var add_javascript_file_vvvvwas = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
vvvvwas(add_javascript_file_vvvvwas);
var add_js_document_vvvvvzx = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvvzx(add_js_document_vvvvvzx);
var add_js_document_vvvvwat = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvwat(add_js_document_vvvvwat);
var add_css_vvvvvzy = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvzy(add_css_vvvvvzy);
var add_css_vvvvwau = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvwau(add_css_vvvvwau);
var add_php_ajax_vvvvvzz = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvzz(add_php_ajax_vvvvvzz);
var add_php_ajax_vvvvwav = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvwav(add_php_ajax_vvvvwav);
var add_custom_button_vvvvwaa = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvwaa(add_custom_button_vvvvwaa);
var add_custom_button_vvvvwaw = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvwaw(add_custom_button_vvvvwaw);
var button_position_vvvvwab = jQuery("#jform_button_position").val();
vvvvwab(button_position_vvvvwab);
var button_position_vvvvwax = jQuery("#jform_button_position").val();
vvvvwax(button_position_vvvvwax);
});
// the vvvvvzr function
function vvvvvzr(add_php_view_vvvvvzr)
// the vvvvwan function
function vvvvwan(add_php_view_vvvvwan)
{
// set the function logic
if (add_php_view_vvvvvzr == 1)
if (add_php_view_vvvvwan == 1)
{
jQuery('#jform_php_view-lbl').closest('.control-group').show();
}
@ -59,11 +59,11 @@ function vvvvvzr(add_php_view_vvvvvzr)
}
}
// the vvvvvzs function
function vvvvvzs(add_php_jview_display_vvvvvzs)
// the vvvvwao function
function vvvvwao(add_php_jview_display_vvvvwao)
{
// set the function logic
if (add_php_jview_display_vvvvvzs == 1)
if (add_php_jview_display_vvvvwao == 1)
{
jQuery('#jform_php_jview_display-lbl').closest('.control-group').show();
}
@ -73,11 +73,11 @@ function vvvvvzs(add_php_jview_display_vvvvvzs)
}
}
// the vvvvvzt function
function vvvvvzt(add_php_jview_vvvvvzt)
// the vvvvwap function
function vvvvwap(add_php_jview_vvvvwap)
{
// set the function logic
if (add_php_jview_vvvvvzt == 1)
if (add_php_jview_vvvvwap == 1)
{
jQuery('#jform_php_jview-lbl').closest('.control-group').show();
}
@ -87,11 +87,11 @@ function vvvvvzt(add_php_jview_vvvvvzt)
}
}
// the vvvvvzu function
function vvvvvzu(add_php_document_vvvvvzu)
// the vvvvwaq function
function vvvvwaq(add_php_document_vvvvwaq)
{
// set the function logic
if (add_php_document_vvvvvzu == 1)
if (add_php_document_vvvvwaq == 1)
{
jQuery('#jform_php_document-lbl').closest('.control-group').show();
}
@ -101,11 +101,11 @@ function vvvvvzu(add_php_document_vvvvvzu)
}
}
// the vvvvvzv function
function vvvvvzv(add_css_document_vvvvvzv)
// the vvvvwar function
function vvvvwar(add_css_document_vvvvwar)
{
// set the function logic
if (add_css_document_vvvvvzv == 1)
if (add_css_document_vvvvwar == 1)
{
jQuery('#jform_css_document-lbl').closest('.control-group').show();
}
@ -115,11 +115,11 @@ function vvvvvzv(add_css_document_vvvvvzv)
}
}
// the vvvvvzw function
function vvvvvzw(add_javascript_file_vvvvvzw)
// the vvvvwas function
function vvvvwas(add_javascript_file_vvvvwas)
{
// set the function logic
if (add_javascript_file_vvvvvzw == 1)
if (add_javascript_file_vvvvwas == 1)
{
jQuery('#jform_javascript_file-lbl').closest('.control-group').show();
}
@ -129,11 +129,11 @@ function vvvvvzw(add_javascript_file_vvvvvzw)
}
}
// the vvvvvzx function
function vvvvvzx(add_js_document_vvvvvzx)
// the vvvvwat function
function vvvvwat(add_js_document_vvvvwat)
{
// set the function logic
if (add_js_document_vvvvvzx == 1)
if (add_js_document_vvvvwat == 1)
{
jQuery('#jform_js_document-lbl').closest('.control-group').show();
}
@ -143,11 +143,11 @@ function vvvvvzx(add_js_document_vvvvvzx)
}
}
// the vvvvvzy function
function vvvvvzy(add_css_vvvvvzy)
// the vvvvwau function
function vvvvwau(add_css_vvvvwau)
{
// set the function logic
if (add_css_vvvvvzy == 1)
if (add_css_vvvvwau == 1)
{
jQuery('#jform_css-lbl').closest('.control-group').show();
}
@ -157,11 +157,11 @@ function vvvvvzy(add_css_vvvvvzy)
}
}
// the vvvvvzz function
function vvvvvzz(add_php_ajax_vvvvvzz)
// the vvvvwav function
function vvvvwav(add_php_ajax_vvvvwav)
{
// set the function logic
if (add_php_ajax_vvvvvzz == 1)
if (add_php_ajax_vvvvwav == 1)
{
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show();
@ -173,11 +173,11 @@ function vvvvvzz(add_php_ajax_vvvvvzz)
}
}
// the vvvvwaa function
function vvvvwaa(add_custom_button_vvvvwaa)
// the vvvvwaw function
function vvvvwaw(add_custom_button_vvvvwaw)
{
// set the function logic
if (add_custom_button_vvvvwaa == 1)
if (add_custom_button_vvvvwaw == 1)
{
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
jQuery('#jform_php_controller-lbl').closest('.control-group').show();
@ -191,20 +191,20 @@ function vvvvwaa(add_custom_button_vvvvwaa)
}
}
// the vvvvwab function
function vvvvwab(button_position_vvvvwab)
// the vvvvwax function
function vvvvwax(button_position_vvvvwax)
{
if (isSet(button_position_vvvvwab) && button_position_vvvvwab.constructor !== Array)
if (isSet(button_position_vvvvwax) && button_position_vvvvwax.constructor !== Array)
{
var temp_vvvvwab = button_position_vvvvwab;
var button_position_vvvvwab = [];
button_position_vvvvwab.push(temp_vvvvwab);
var temp_vvvvwax = button_position_vvvvwax;
var button_position_vvvvwax = [];
button_position_vvvvwax.push(temp_vvvvwax);
}
else if (!isSet(button_position_vvvvwab))
else if (!isSet(button_position_vvvvwax))
{
var button_position_vvvvwab = [];
var button_position_vvvvwax = [];
}
var button_position = button_position_vvvvwab.some(button_position_vvvvwab_SomeFunc);
var button_position = button_position_vvvvwax.some(button_position_vvvvwax_SomeFunc);
// set this function logic
@ -218,11 +218,11 @@ function vvvvwab(button_position_vvvvwab)
}
}
// the vvvvwab Some function
function button_position_vvvvwab_SomeFunc(button_position_vvvvwab)
// the vvvvwax Some function
function button_position_vvvvwax_SomeFunc(button_position_vvvvwax)
{
// set the function logic
if (button_position_vvvvwab == 5)
if (button_position_vvvvwax == 5)
{
return true;
}

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_vvvvway = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvway(add_php_view_vvvvway);
});
// the vvvvwac function
function vvvvwac(add_php_view_vvvvwac)
// the vvvvway function
function vvvvway(add_php_view_vvvvway)
{
// set the function logic
if (add_php_view_vvvvwac == 1)
if (add_php_view_vvvvway == 1)
{
jQuery('#jform_php_view-lbl').closest('.control-group').show();
}

View File

@ -1780,7 +1780,7 @@ class ComponentbuilderModelJoomla_components extends JModelList
'search' => array('id', 'system_name', 'php_preflight_install', 'php_postflight_install',
'php_preflight_update', 'php_postflight_update', 'php_method_uninstall',
'php_helper_admin', 'php_admin_event', 'php_helper_both', 'php_helper_site',
'php_site_event', 'javascript'),
'php_site_event', 'javascript', 'readme', 'sql', 'sql_uninstall'),
'views' => 'joomla_components',
'not_base64' => array(),
'name' => 'system_name'

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,995 @@
<?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_module_files_folders_urls Model
*/
class ComponentbuilderModelJoomla_module_files_folders_urls extends JModelAdmin
{
/**
* The tab layout fields array.
*
* @var array
*/
protected $tabLayoutFields = array(
'basic' => array(
'fullwidth' => array(
'note_add_urls',
'addurls',
'note_add_files',
'addfiles',
'note_add_folders',
'addfolders'
),
'above' => array(
'joomla_module'
)
),
'advance' => array(
'fullwidth' => array(
'note_add_files_fullpath',
'addfilesfullpath',
'note_add_folders_fullpath',
'addfoldersfullpath',
'note_constant_paths'
)
)
);
/**
* @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_module_files_folders_urls';
/**
* 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_module_files_folders_urls', $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->addfoldersfullpath))
{
// Convert the addfoldersfullpath field to an array.
$addfoldersfullpath = new Registry;
$addfoldersfullpath->loadString($item->addfoldersfullpath);
$item->addfoldersfullpath = $addfoldersfullpath->toArray();
}
if (!empty($item->addfilesfullpath))
{
// Convert the addfilesfullpath field to an array.
$addfilesfullpath = new Registry;
$addfilesfullpath->loadString($item->addfilesfullpath);
$item->addfilesfullpath = $addfilesfullpath->toArray();
}
if (!empty($item->addfolders))
{
// Convert the addfolders field to an array.
$addfolders = new Registry;
$addfolders->loadString($item->addfolders);
$item->addfolders = $addfolders->toArray();
}
if (!empty($item->addfiles))
{
// Convert the addfiles field to an array.
$addfiles = new Registry;
$addfiles->loadString($item->addfiles);
$item->addfiles = $addfiles->toArray();
}
if (!empty($item->addurls))
{
// Convert the addurls field to an array.
$addurls = new Registry;
$addurls->loadString($item->addurls);
$item->addurls = $addurls->toArray();
}
if (!empty($item->id))
{
$item->tags = new JHelperTags;
$item->tags->getTagIds($item->id, 'com_componentbuilder.joomla_module_files_folders_urls');
}
}
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;
// // check if xpath was set in options
$xpath = false;
if (isset($options['xpath']))
{
$xpath = $options['xpath'];
unset($options['xpath']);
}
// // check if clear form was set in options
$clear = false;
if (isset($options['clear']))
{
$clear = $options['clear'];
unset($options['clear']);
}
// Get the form.
$form = $this->loadForm('com_componentbuilder.joomla_module_files_folders_urls', 'joomla_module_files_folders_urls', $options, $clear, $xpath);
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_module_files_folders_urls.edit.state', 'com_componentbuilder.joomla_module_files_folders_urls.' . (int) $id))
|| ($id == 0 && !$user->authorise('joomla_module_files_folders_urls.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_module_files_folders_urls.edit.created_by', 'com_componentbuilder.joomla_module_files_folders_urls.' . (int) $id))
|| ($id == 0 && !$user->authorise('joomla_module_files_folders_urls.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_module_files_folders_urls.edit.created', 'com_componentbuilder.joomla_module_files_folders_urls.' . (int) $id))
|| ($id == 0 && !$user->authorise('joomla_module_files_folders_urls.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_module_files_folders_urls.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_module_files_folders_urls.delete', 'com_componentbuilder.joomla_module_files_folders_urls.' . (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_module_files_folders_urls.edit.state', 'com_componentbuilder.joomla_module_files_folders_urls.' . (int) $recordId);
if (!$permission && !is_null($permission))
{
return false;
}
}
// In the absense of better information, revert to the component permissions.
return $user->authorise('joomla_module_files_folders_urls.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_module_files_folders_urls.edit', 'com_componentbuilder.joomla_module_files_folders_urls.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('joomla_module_files_folders_urls.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_module_files_folders_urls'));
$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_module_files_folders_urls.data', array());
if (empty($data))
{
$data = $this->getItem();
// run the perprocess of the data
$this->preprocessData('com_componentbuilder.joomla_module_files_folders_urls', $data);
}
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_module_files_folders_urls');
$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_module_files_folders_urls');
}
if (!$this->canDo->get('joomla_module_files_folders_urls.create') && !$this->canDo->get('joomla_module_files_folders_urls.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_module_files_folders_urls.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_module_files_folders_urls.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_module) && !is_numeric($this->table->joomla_module))
{
$this->table->joomla_module = $this->generateUniqe('joomla_module',$this->table->joomla_module);
}
// 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_module_files_folders_urls');
}
if (!$this->canDo->get('joomla_module_files_folders_urls.edit') && !$this->canDo->get('joomla_module_files_folders_urls.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_module_files_folders_urls.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_module_files_folders_urls.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 addfoldersfullpath items to data.
if (isset($data['addfoldersfullpath']) && is_array($data['addfoldersfullpath']))
{
$addfoldersfullpath = new JRegistry;
$addfoldersfullpath->loadArray($data['addfoldersfullpath']);
$data['addfoldersfullpath'] = (string) $addfoldersfullpath;
}
elseif (!isset($data['addfoldersfullpath']))
{
// Set the empty addfoldersfullpath to data
$data['addfoldersfullpath'] = '';
}
// Set the addfilesfullpath items to data.
if (isset($data['addfilesfullpath']) && is_array($data['addfilesfullpath']))
{
$addfilesfullpath = new JRegistry;
$addfilesfullpath->loadArray($data['addfilesfullpath']);
$data['addfilesfullpath'] = (string) $addfilesfullpath;
}
elseif (!isset($data['addfilesfullpath']))
{
// Set the empty addfilesfullpath to data
$data['addfilesfullpath'] = '';
}
// Set the addfolders items to data.
if (isset($data['addfolders']) && is_array($data['addfolders']))
{
$addfolders = new JRegistry;
$addfolders->loadArray($data['addfolders']);
$data['addfolders'] = (string) $addfolders;
}
elseif (!isset($data['addfolders']))
{
// Set the empty addfolders to data
$data['addfolders'] = '';
}
// Set the addfiles items to data.
if (isset($data['addfiles']) && is_array($data['addfiles']))
{
$addfiles = new JRegistry;
$addfiles->loadArray($data['addfiles']);
$data['addfiles'] = (string) $addfiles;
}
elseif (!isset($data['addfiles']))
{
// Set the empty addfiles to data
$data['addfiles'] = '';
}
// Set the addurls items to data.
if (isset($data['addurls']) && is_array($data['addurls']))
{
$addurls = new JRegistry;
$addurls->loadArray($data['addurls']);
$data['addurls'] = (string) $addurls;
}
elseif (!isset($data['addurls']))
{
// Set the empty addurls to data
$data['addurls'] = '';
}
// 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

@ -0,0 +1,897 @@
<?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_module_updates Model
*/
class ComponentbuilderModelJoomla_module_updates extends JModelAdmin
{
/**
* The tab layout fields array.
*
* @var array
*/
protected $tabLayoutFields = array(
'updates' => array(
'fullwidth' => array(
'version_update'
),
'above' => array(
'joomla_module'
)
)
);
/**
* @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_module_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_module_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_module_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;
// // check if xpath was set in options
$xpath = false;
if (isset($options['xpath']))
{
$xpath = $options['xpath'];
unset($options['xpath']);
}
// // check if clear form was set in options
$clear = false;
if (isset($options['clear']))
{
$clear = $options['clear'];
unset($options['clear']);
}
// Get the form.
$form = $this->loadForm('com_componentbuilder.joomla_module_updates', 'joomla_module_updates', $options, $clear, $xpath);
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_module_updates.edit.state', 'com_componentbuilder.joomla_module_updates.' . (int) $id))
|| ($id == 0 && !$user->authorise('joomla_module_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_module_updates.edit.created_by', 'com_componentbuilder.joomla_module_updates.' . (int) $id))
|| ($id == 0 && !$user->authorise('joomla_module_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_module_updates.edit.created', 'com_componentbuilder.joomla_module_updates.' . (int) $id))
|| ($id == 0 && !$user->authorise('joomla_module_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_module_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_module_updates.delete', 'com_componentbuilder.joomla_module_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_module_updates.edit.state', 'com_componentbuilder.joomla_module_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_module_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_module_updates.edit', 'com_componentbuilder.joomla_module_updates.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('joomla_module_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_module_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_module_updates.data', array());
if (empty($data))
{
$data = $this->getItem();
// run the perprocess of the data
$this->preprocessData('com_componentbuilder.joomla_module_updates', $data);
}
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_module_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_module_updates');
}
if (!$this->canDo->get('joomla_module_updates.create') && !$this->canDo->get('joomla_module_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_module_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_module_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_module) && !is_numeric($this->table->joomla_module))
{
$this->table->joomla_module = $this->generateUniqe('joomla_module',$this->table->joomla_module);
}
// 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_module_updates');
}
if (!$this->canDo->get('joomla_module_updates.edit') && !$this->canDo->get('joomla_module_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_module_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_module_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

@ -0,0 +1,262 @@
<?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_modules Model
*/
class ComponentbuilderModelJoomla_modules 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',
'a.system_name','system_name',
'a.description','description'
);
}
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;
}
$system_name = $this->getUserStateFromRequest($this->context . '.filter.system_name', 'filter_system_name');
$this->setState('filter.system_name', $system_name);
$description = $this->getUserStateFromRequest($this->context . '.filter.description', 'filter_description');
$this->setState('filter.description', $description);
$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))
{
// Get the user object if not set.
if (!isset($user) || !ComponentbuilderHelper::checkObject($user))
{
$user = JFactory::getUser();
}
foreach ($items as $nr => &$item)
{
// Remove items the user can't access.
$access = ($user->authorise('joomla_module.access', 'com_componentbuilder.joomla_module.' . (int) $item->id) && $user->authorise('joomla_module.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_module', 'a'));
// 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 . ')');
}
// Filter by search.
$search = $this->getState('filter.search');
if (!empty($search))
{
if (stripos($search, 'id:') === 0)
{
$query->where('a.id = ' . (int) substr($search, 3));
}
else
{
$search = $db->quote('%' . $db->escape($search) . '%');
$query->where('(a.system_name LIKE '.$search.' OR a.description LIKE '.$search.' OR a.name LIKE '.$search.')');
}
}
// 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');
$id .= ':' . $this->getState('filter.system_name');
$id .= ':' . $this->getState('filter.description');
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_module'));
$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_module'))->set($fields)->where($conditions);
$db->setQuery($query);
$db->execute();
}
}
return false;
}
}

View File

@ -0,0 +1,243 @@
<?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_modules_files_folders_urls Model
*/
class ComponentbuilderModelJoomla_modules_files_folders_urls 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))
{
// Get the user object if not set.
if (!isset($user) || !ComponentbuilderHelper::checkObject($user))
{
$user = JFactory::getUser();
}
foreach ($items as $nr => &$item)
{
// Remove items the user can't access.
$access = ($user->authorise('joomla_module_files_folders_urls.access', 'com_componentbuilder.joomla_module_files_folders_urls.' . (int) $item->id) && $user->authorise('joomla_module_files_folders_urls.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_module_files_folders_urls', 'a'));
// From the componentbuilder_joomla_module table.
$query->select($db->quoteName('g.system_name','joomla_module_system_name'));
$query->join('LEFT', $db->quoteName('#__componentbuilder_joomla_module', 'g') . ' ON (' . $db->quoteName('a.joomla_module') . ' = ' . $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_module_files_folders_urls'));
$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_module_files_folders_urls'))->set($fields)->where($conditions);
$db->setQuery($query);
$db->execute();
}
}
return false;
}
}

View File

@ -0,0 +1,243 @@
<?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_modules_updates Model
*/
class ComponentbuilderModelJoomla_modules_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))
{
// Get the user object if not set.
if (!isset($user) || !ComponentbuilderHelper::checkObject($user))
{
$user = JFactory::getUser();
}
foreach ($items as $nr => &$item)
{
// Remove items the user can't access.
$access = ($user->authorise('joomla_module_updates.access', 'com_componentbuilder.joomla_module_updates.' . (int) $item->id) && $user->authorise('joomla_module_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_module_updates', 'a'));
// From the componentbuilder_joomla_module table.
$query->select($db->quoteName('g.system_name','joomla_module_system_name'));
$query->join('LEFT', $db->quoteName('#__componentbuilder_joomla_module', 'g') . ' ON (' . $db->quoteName('a.joomla_module') . ' = ' . $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_module_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_module_updates'))->set($fields)->where($conditions);
$db->setQuery($query);
$db->execute();
}
}
return false;
}
}

View File

@ -1145,6 +1145,11 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin
{
// make sure the name is safe to be used as a function name
$data['name'] = ComponentbuilderHelper::safeClassFunctionName($data['name']);
}
// if system name is empty create from name
if (empty($data['system_name']) || !ComponentbuilderHelper::checkString($data['system_name']))
{
$data['system_name'] = $data['name'];
}
// Set the method_selection items to data.

View File

@ -189,7 +189,7 @@ class ComponentbuilderModelServer extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
public function getVyslinked_components()
public function getVywlinked_components()
{
// Get the user object.
$user = JFactory::getUser();