Release of v5.1.1-alpha2

Adds the ModalSelect fieldtype to Joomla Component Builder - J5. Adds the Data Import Function to the Demo Component. Adds new country related tables and fields to the Demo Component. Resolves the Database Updating issue in the compiler. #1212,#1209. Adds the Component Commands Plugin to the CLI for Import of spreadsheet data-sets.
This commit is contained in:
Robot committed 2025-03-28 13:15:25 +00:00
1 parent 06185f8c3a
commit 8342c5bb9f
536 files changed
+16369 -2067

No files matched your search

@@ -217,7 +217,7 @@ class Admin_custom_tabsController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Admin_custom_tabs', '', []);
@@ -217,7 +217,7 @@ class Admin_fieldsController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Admin_fields', '', []);
@@ -217,7 +217,7 @@ class Admin_fields_conditionsController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Admin_fields_conditions', '', []);
@@ -217,7 +217,7 @@ class Admin_fields_relationsController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Admin_fields_relations', '', []);
@@ -219,7 +219,7 @@ class Admin_viewController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Admin_view', '', []);
@@ -217,7 +217,7 @@ class Class_extendsController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Class_extends', '', []);
@@ -217,7 +217,7 @@ class Class_methodController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Class_method', '', []);
@@ -217,7 +217,7 @@ class Class_propertyController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Class_property', '', []);
@@ -217,7 +217,7 @@ class Component_admin_viewsController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Component_admin_views', '', []);
@@ -217,7 +217,7 @@ class Component_configController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Component_config', '', []);
@@ -217,7 +217,7 @@ class Component_custom_admin_menusController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Component_custom_admin_menus', '', []);
@@ -217,7 +217,7 @@ class Component_custom_admin_viewsController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Component_custom_admin_views', '', []);
@@ -217,7 +217,7 @@ class Component_dashboardController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Component_dashboard', '', []);
@@ -217,7 +217,7 @@ class Component_files_foldersController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Component_files_folders', '', []);
@@ -217,7 +217,7 @@ class Component_modulesController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Component_modules', '', []);
@@ -217,7 +217,7 @@ class Component_mysql_tweaksController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Component_mysql_tweaks', '', []);
@@ -217,7 +217,7 @@ class Component_placeholdersController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Component_placeholders', '', []);
@@ -217,7 +217,7 @@ class Component_pluginsController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Component_plugins', '', []);
@@ -217,7 +217,7 @@ class Component_routerController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Component_router', '', []);
@@ -217,7 +217,7 @@ class Component_site_viewsController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Component_site_views', '', []);
@@ -221,7 +221,7 @@ class Component_updatesController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Component_updates', '', []);
@@ -217,7 +217,7 @@ class Custom_admin_viewController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Custom_admin_view', '', []);
@@ -217,7 +217,7 @@ class Custom_codeController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Custom_code', '', []);
@@ -217,7 +217,7 @@ class Dynamic_getController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Dynamic_get', '', []);
+1 -1
View File
@@ -216,7 +216,7 @@ class FieldController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Field', '', []);
+1 -1
View File
@@ -368,7 +368,7 @@ class FieldtypeController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Fieldtype', '', []);
@@ -217,7 +217,7 @@ class Help_documentController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Help_document', '', []);
@@ -219,7 +219,7 @@ class Joomla_componentController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Joomla_component', '', []);
@@ -219,7 +219,7 @@ class Joomla_moduleController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Joomla_module', '', []);
@@ -217,7 +217,7 @@ class Joomla_module_files_folders_urlsController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Joomla_module_files_folders_urls', '', []);
@@ -220,7 +220,7 @@ class Joomla_module_updatesController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Joomla_module_updates', '', []);
@@ -219,7 +219,7 @@ class Joomla_pluginController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Joomla_plugin', '', []);
@@ -217,7 +217,7 @@ class Joomla_plugin_files_folders_urlsController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Joomla_plugin_files_folders_urls', '', []);
@@ -210,7 +210,7 @@ class Joomla_plugin_groupController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Joomla_plugin_group', '', []);
@@ -219,7 +219,7 @@ class Joomla_plugin_updatesController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Joomla_plugin_updates', '', []);
@@ -369,7 +369,7 @@ class Joomla_powerController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Joomla_power', '', []);
+1 -1
View File
@@ -217,7 +217,7 @@ class LanguageController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Language', '', []);
@@ -217,7 +217,7 @@ class Language_translationController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Language_translation', '', []);
+1 -1
View File
@@ -217,7 +217,7 @@ class LayoutController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Layout', '', []);
+1 -1
View File
@@ -219,7 +219,7 @@ class LibraryController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Library', '', []);
@@ -217,7 +217,7 @@ class Library_configController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Library_config', '', []);
@@ -217,7 +217,7 @@ class Library_files_folders_urlsController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Library_files_folders_urls', '', []);
@@ -217,7 +217,7 @@ class PlaceholderController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Placeholder', '', []);
+46 -1
View File
@@ -24,6 +24,7 @@ use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;
use Joomla\CMS\Uri\Uri;
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
use VDM\Joomla\Utilities\GuidHelper;
use VDM\Joomla\Componentbuilder\Power\Factory as PowerFactory;
// No direct access to this file
@@ -80,6 +81,50 @@ class PowerController extends FormController
protected int $refid;
/**
* Method to edit an existing record.
*
* @param string $key The name of the primary key of the URL variable.
* @param string $urlVar The name of the URL variable if different from the primary key
* (sometimes required to avoid router collisions).
*
* @return boolean True if access level check and checkout passes, false otherwise.
*
* @since 1.6
*/
public function edit($key = null, $urlVar = null)
{
// for modal title key selection (unique key to do mapping)
$titleKey = $this->input->get('titleKey', 'id', 'word');
$guid = null;
$value = null;
// Determine the name of the primary key for the data.
if (empty($key))
{
$model = $this->getModel();
$table = $model->getTable();
$key = $table->getKeyName();
}
if ($titleKey === 'guid')
{
$guid = $this->input->get('guid', null, 'string');
}
if ($guid !== null && GuidHelper::valid($guid))
{
$value = GuidHelper::item($guid, 'power', 'a.' . $key, 'componentbuilder');
}
if ($value !== null)
{
$this->input->set($key, $value);
}
return parent::edit($key, $urlVar);
}
/**
* Resets the specified power.
*
@@ -369,7 +414,7 @@ class PowerController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Power', '', []);
@@ -217,7 +217,7 @@ class RepositoryController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Repository', '', []);
+1 -1
View File
@@ -217,7 +217,7 @@ class ServerController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Server', '', []);
+1 -1
View File
@@ -217,7 +217,7 @@ class Site_viewController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Site_view', '', []);
+1 -1
View File
@@ -217,7 +217,7 @@ class SnippetController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Snippet', '', []);
@@ -217,7 +217,7 @@ class Snippet_typeController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Snippet_type', '', []);
+1 -1
View File
@@ -217,7 +217,7 @@ class TemplateController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Template', '', []);
@@ -217,7 +217,7 @@ class Validation_ruleController extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Session::checkToken() or exit(Text::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Validation_rule', '', []);