Adds arguments (display) to the class method list view

This commit is contained in:
Llewellyn van der Merwe 2021-08-27 18:50:37 +02:00
parent bb1d4768b4
commit 1651d4358c
Signed by untrusted user: Llewellyn
GPG Key ID: EFC0C720A240551C
6 changed files with 31 additions and 14 deletions

View File

@ -143,11 +143,11 @@ TODO
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
+ *First Build*: 30th April, 2015
+ *Last Build*: 11th August, 2021
+ *Last Build*: 27th August, 2021
+ *Version*: 2.12.11
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
+ *Line count*: **292146**
+ *Line count*: **292163**
+ *Field count*: **1630**
+ *File count*: **1936**
+ *Folder count*: **322**

View File

@ -143,11 +143,11 @@ TODO
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
+ *First Build*: 30th April, 2015
+ *Last Build*: 11th August, 2021
+ *Last Build*: 27th August, 2021
+ *Version*: 2.12.11
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
+ *Line count*: **292146**
+ *Line count*: **292163**
+ *Field count*: **1630**
+ *File count*: **1936**
+ *Folder count*: **322**

View File

@ -141,6 +141,8 @@ class ComponentbuilderModelClass_methods extends JModelList
continue;
}
// decode arguments
$item->arguments = base64_decode($item->arguments);
}
}

View File

@ -58,7 +58,7 @@ $edit = "index.php?option=com_componentbuilder&view=class_methods&task=class_met
<?php endif; ?>
</td>
<td class="nowrap">
<div class="name">
<div>
<?php if ($canDo->get('class_method.edit')): ?>
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
<?php if ($item->checked_out): ?>
@ -66,14 +66,15 @@ $edit = "index.php?option=com_componentbuilder&view=class_methods&task=class_met
<?php endif; ?>
<?php else: ?>
<?php echo $this->escape($item->name); ?>
<?php endif; ?>
<?php endif; ?>(
<?php echo $this->escape($item->arguments); ?>)
</div>
</td>
<td class="hidden-phone">
<?php echo JText::_($item->visibility); ?>
</td>
<td class="hidden-phone">
<div><?php if (isset($item->joomla_plugin_group) && ComponentbuilderHelper::checkString($item->joomla_plugin_group)): ?>
<div><?php if (isset($item->joomla_plugin_group) && $item->joomla_plugin_group > 0): ?>
<?php echo JText::_($item->extension_type); ?> <?php echo JText::_('COM_COMPONENTBUILDER_GROUP'); ?>: <b>
<?php echo $this->escape($item->joomla_plugin_group_name); ?></b>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="3.2" method="upgrade">
<name>COM_COMPONENTBUILDER</name>
<creationDate>11th August, 2021</creationDate>
<creationDate>27th August, 2021</creationDate>
<author>Llewellyn van der Merwe</author>
<authorEmail>llewellyn@joomlacomponentbuilder.com</authorEmail>
<authorUrl>http://www.joomlacomponentbuilder.com</authorUrl>

View File

@ -784,6 +784,13 @@ function dbChecker(type){
jQuery('#jform_null_switch').removeAttr('required');
jQuery('#jform_null_switch').removeAttr('aria-required');
jQuery('#jform_null_switch').removeClass('required');
// remove the store (modeling method)
jQuery('#jform_store-lbl').closest('.control-group').hide();
jQuery('#jform_store').closest('.control-group').hide();
updateFieldRequired('store',1);
jQuery('#jform_store').removeAttr('required');
jQuery('#jform_store').removeAttr('aria-required');
jQuery('#jform_store').removeClass('required');
// show notice
jQuery('.note_no_database_settings_needed').closest('.control-group').show();
jQuery('.note_database_settings_needed').closest('.control-group').hide();
@ -802,6 +809,13 @@ function dbChecker(type){
jQuery('#jform_null_switch').prop('required','required');
jQuery('#jform_null_switch').attr('aria-required',true);
jQuery('#jform_null_switch').addClass('required');
// remove the store (modeling method)
jQuery('#jform_store-lbl').closest('.control-group').show();
jQuery('#jform_store').closest('.control-group').show();
updateFieldRequired('store',0);
jQuery('#jform_store').prop('required','required');
jQuery('#jform_store').attr('aria-required',true);
jQuery('#jform_store').addClass('required');
// remove notice
jQuery('.note_no_database_settings_needed').closest('.control-group').hide();
jQuery('.note_database_settings_needed').closest('.control-group').show();