Update on v3.2.0-beta6 (changes towards the next release)

Here's an update on the current version, which includes changes towards the next release still in development.
This commit is contained in:
Robot 2024-03-12 16:01:04 +02:00
parent 900a8ce90c
commit ebcfc5363e
Signed by: Robot
GPG Key ID: 14DECD44E7E1BB95
6 changed files with 11 additions and 7 deletions

View File

@ -148,7 +148,7 @@ TODO
+ *Version*: 3.2.0-beta6 + *Version*: 3.2.0-beta6
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt + *License*: GNU General Public License version 2 or later; see LICENSE.txt
+ *Line count*: **738821** + *Line count*: **738831**
+ *Field count*: **2078** + *Field count*: **2078**
+ *File count*: **5200** + *File count*: **5200**
+ *Folder count*: **459** + *Folder count*: **459**

View File

@ -148,7 +148,7 @@ TODO
+ *Version*: 3.2.0-beta6 + *Version*: 3.2.0-beta6
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt + *License*: GNU General Public License version 2 or later; see LICENSE.txt
+ *Line count*: **738821** + *Line count*: **738831**
+ *Field count*: **2078** + *Field count*: **2078**
+ *File count*: **5200** + *File count*: **5200**
+ *Folder count*: **459** + *Folder count*: **459**

View File

@ -39,6 +39,7 @@ class HtmlView extends BaseHtmlView
{ {
// set params // set params
$this->params = ComponentHelper::getParams('com_###component###'); $this->params = ComponentHelper::getParams('com_###component###');
$this->useCoreUI = true;
// Assign the variables // Assign the variables
$this->form = $this->get('Form'); $this->form = $this->get('Form');
$this->item = $this->get('Item'); $this->item = $this->get('Item');

View File

@ -39,6 +39,7 @@ class HtmlView extends BaseHtmlView
{ {
// set params // set params
$this->params = ComponentHelper::getParams('com_###component###'); $this->params = ComponentHelper::getParams('com_###component###');
$this->useCoreUI = true;
// Assign the variables // Assign the variables
$this->form = $this->get('Form'); $this->form = $this->get('Form');
$this->item = $this->get('Item'); $this->item = $this->get('Item');

View File

@ -144,9 +144,9 @@ class JFormFieldJoomlaplugins extends JFormFieldList
protected function getOptions() protected function getOptions()
{ {
// Get the user object. // Get the user object.
$user = JFactory::getUser(); $user = Factory::getUser();
// Get the databse object. // Get the databse object.
$db = JFactory::getDBO(); $db = Factory::getDBO();
$query = $db->getQuery(true); $query = $db->getQuery(true);
$query->select($db->quoteName(array('a.id','a.system_name','a.name','b.name','c.name'),array('id','plugin_system_name','name','class_extends_name','joomla_plugin_group_name'))); $query->select($db->quoteName(array('a.id','a.system_name','a.name','b.name','c.name'),array('id','plugin_system_name','name','class_extends_name','joomla_plugin_group_name')));
$query->from($db->quoteName('#__componentbuilder_joomla_plugin', 'a')); $query->from($db->quoteName('#__componentbuilder_joomla_plugin', 'a'));
@ -169,11 +169,13 @@ class JFormFieldJoomlaplugins extends JFormFieldList
$options = array(); $options = array();
if ($items) if ($items)
{ {
$options[] = JHtml::_('select.option', '', 'Select a plugin'); $options[] = Html::_('select.option', '', 'Select a plugin');
foreach($items as $item) foreach($items as $item)
{ {
// set a full class name // set a full class name
$options[] = JHtml::_('select.option', $item->id, '( ' . $item->plugin_system_name . ' ) class Plg' . ucfirst($item->joomla_plugin_group_name) . $item->name . ' extends ' . $item->class_extends_name); $group_name = $item->joomla_plugin_group_name ?? '';
$name = $item->name ?? '';
$options[] = Html::_('select.option', $item->id, '( ' . $item->plugin_system_name . ' ) class Plg' . $group_name . $name . ' extends ' . $item->class_extends_name);
} }
} }
return $options; return $options;

View File

@ -455,7 +455,7 @@
name="source" name="source"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_SOURCE_LABEL" label="COM_COMPONENTBUILDER_ADMIN_VIEW_SOURCE_LABEL"
class="btn-group btn-group-yesno" class="btn-group btn-group-yesno"
default="" default="0"
required="true"> required="true">
<!-- Option Set. --> <!-- Option Set. -->
<option value="1"> <option value="1">