Release of v5.1.1-beta4

Fix the FieldXML interface mismatch. #1228. Adds Initialize, Reset, and Push functionality to the Repository entities.
This commit is contained in:
2025-06-25 10:16:52 +00:00
parent dbebb5663c
commit af4b12a82b
69 changed files with 1721 additions and 577 deletions

View File

@ -47,6 +47,7 @@ use VDM\Joomla\Componentbuilder\Fieldtype\Factory as FieldtypeFactory;
use VDM\Joomla\Componentbuilder\JoomlaPower\Factory as JoomlaPowerFactory;
use VDM\Joomla\Componentbuilder\Power\Factory as PowerFactory;
use VDM\Joomla\Componentbuilder\Snippet\Factory as SnippetFactory;
use VDM\Joomla\Componentbuilder\Repository\Factory as RepositoryFactory;
use Joomla\CMS\Form\FormHelper as FormFormHelper;
// No direct access to this file
@ -5341,7 +5342,8 @@ class AjaxModel extends ListModel
'ClassExtends' => 'PackageFactory',
'ClassProperty' => 'PackageFactory',
'ClassMethod' => 'PackageFactory',
'Placeholder' => 'PackageFactory'
'Placeholder' => 'PackageFactory',
'Repository' => 'RepositoryFactory'
];
/**
@ -5361,6 +5363,7 @@ class AjaxModel extends ListModel
'FieldtypeFactory' => FieldtypeFactory::_($getClass),
'SnippetFactory' => SnippetFactory::_($getClass),
'PackageFactory' => PackageFactory::_($getClass),
'RepositoryFactory' => RepositoryFactory::_($getClass),
default => null,
};
}

View File

@ -30,6 +30,7 @@ use VDM\Joomla\Componentbuilder\Fieldtype\Factory as FieldtypeFactory;
use VDM\Joomla\Componentbuilder\JoomlaPower\Factory as JoomlaPowerFactory;
use VDM\Joomla\Componentbuilder\Power\Factory as PowerFactory;
use VDM\Joomla\Componentbuilder\Snippet\Factory as SnippetFactory;
use VDM\Joomla\Componentbuilder\Repository\Factory as RepositoryFactory;
// No direct access to this file
\defined('_JEXEC') or die;
@ -389,7 +390,8 @@ class Initialization_selectionModel extends ItemModel
'ClassExtends' => 'PackageFactory',
'ClassProperty' => 'PackageFactory',
'ClassMethod' => 'PackageFactory',
'Placeholder' => 'PackageFactory'
'Placeholder' => 'PackageFactory',
'Repository' => 'RepositoryFactory'
];
/**
@ -409,6 +411,7 @@ class Initialization_selectionModel extends ItemModel
'FieldtypeFactory' => FieldtypeFactory::_($getClass),
'SnippetFactory' => SnippetFactory::_($getClass),
'PackageFactory' => PackageFactory::_($getClass),
'RepositoryFactory' => RepositoryFactory::_($getClass),
default => null,
};
}

View File

@ -248,11 +248,12 @@ class RepositoriesModel extends ListModel
{
$targetArray = array(
0 => 'COM_COMPONENTBUILDER_REPOSITORY_SELECT_AN_OPTION',
4 => 'COM_COMPONENTBUILDER_REPOSITORY_JCB_PACKAGES',
3 => 'COM_COMPONENTBUILDER_REPOSITORY_JOOMLA_FIELD_TYPES',
4 => 'COM_COMPONENTBUILDER_REPOSITORY_PACKAGES',
3 => 'COM_COMPONENTBUILDER_REPOSITORY_FIELD_TYPES',
2 => 'COM_COMPONENTBUILDER_REPOSITORY_JOOMLA_POWER',
5 => 'COM_COMPONENTBUILDER_REPOSITORY_SNIPPETS',
1 => 'COM_COMPONENTBUILDER_REPOSITORY_SUPER_POWER'
1 => 'COM_COMPONENTBUILDER_REPOSITORY_SUPER_POWER',
6 => 'COM_COMPONENTBUILDER_REPOSITORY_REPOSITORIES'
);
// Now check if value is found in this array
if (isset($targetArray[$value]) && StringHelper::check($targetArray[$value]))