Stable release of v5.0.0-alpha1

First alpha release of Component Builder towards Joomla 5 (very unstable...).
This commit is contained in:
2024-03-09 21:52:51 +02:00
parent 3c91a5cdbb
commit 87cd4305bb
3040 changed files with 296309 additions and 269802 deletions

View File

@@ -83,10 +83,9 @@ class Data
/**
* Database object to query local DB
*
* @var \JDatabaseDriver
* @since 3.2.0
**/
protected \JDatabaseDriver $db;
protected $db;
/**
* Constructor
@@ -97,14 +96,12 @@ class Data
* @param Gui|null $gui The compiler customcode gui.
* @param FieldData|null $field The compiler field data object.
* @param Filesfolders|null $filesFolders The compiler files folders object.
* @param \JDatabaseDriver|null $db The database object.
*
* @since 3.2.0
*/
public function __construct(?Config $config = null, ?Registry $registry = null,
?Customcode $customcode = null, ?Gui $gui = null,
?FieldData $field = null, ?Filesfolders $filesFolders = null,
?\JDatabaseDriver $db = null)
?FieldData $field = null, ?Filesfolders $filesFolders = null)
{
$this->config = $config ?: Compiler::_('Config');
$this->registry = $registry ?: Compiler::_('Registry');
@@ -112,7 +109,7 @@ class Data
$this->gui = $gui ?: Compiler::_('Customcode.Gui');
$this->field = $field ?: Compiler::_('Field.Data');
$this->filesFolders = $filesFolders ?: Compiler::_('Model.Filesfolders');
$this->db = $db ?: Factory::getDbo();
$this->db = Factory::getDbo();
}
/**