Release of v4.1.1-rc1
Move all banners to GitHub. Adds library phpspreadsheet to JCB. Add import item example to demo component. Updates the Superpower class with the GetRemote class in the plugin. Ensures the super power autoloader triggers the correct repositories. Adds the Import Function 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. Add all needed Powers to the release package, to speed-up the build of the demo component. Refactored initialization flow to accommodate future scalability and integration with all designated areas. Refactor the Creator Builders class. Adds new JCB package engine. Fix issue with loading the Component Builder Wiki. Adds advanced version update notice to the Component Builder Dashboard. Completely refactors the class that builds the Component Dashboard. #1134. Adds Initialize, Reset, and Push functionality to the Repository entities. Completely refactors the SQL teaks and SQL dump classes. Changes J4 fields to allow NULL. Fix a bug in Dynamic Get JavaScript that causes table columns to not load. Refactor the FieldString and FieldXML classes.
This commit is contained in:
@@ -29,6 +29,7 @@ use VDM\Joomla\Componentbuilder\Compiler\Utilities\Indent;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Line;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Minify;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Helper\Fields;
|
||||
use Joomla\CMS\Form\Form;
|
||||
|
||||
|
||||
/**
|
||||
@@ -17415,7 +17416,7 @@ class Interpretation extends Fields
|
||||
. " * Method to validate the form data.";
|
||||
$fix .= PHP_EOL . Indent::_(1) . " *";
|
||||
$fix .= PHP_EOL . Indent::_(1)
|
||||
. " * @param JForm \$form The form to validate against.";
|
||||
. " * @param Form \$form The form to validate against.";
|
||||
$fix .= PHP_EOL . Indent::_(1)
|
||||
. " * @param array \$data The data to validate.";
|
||||
$fix .= PHP_EOL . Indent::_(1)
|
||||
|
@@ -25,6 +25,7 @@ use VDM\Joomla\Componentbuilder\Compiler\Builder\Tags;
|
||||
use VDM\Joomla\Utilities\ArrayHelper;
|
||||
use VDM\Joomla\Utilities\StringHelper;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Interfaces\HeaderInterface;
|
||||
use Joomla\CMS\Form\FormHelper;
|
||||
|
||||
|
||||
/**
|
||||
@@ -422,7 +423,7 @@ final class Header implements HeaderInterface
|
||||
case 'form.custom.field':
|
||||
$headers[] = 'use Joomla\CMS\HTML\HTMLHelper as Html;';
|
||||
$headers[] = "jimport('joomla.form.helper');";
|
||||
$headers[] = "\JFormHelper::loadFieldClass('###JFORM_extends###');";
|
||||
$headers[] = "FormHelper::loadFieldClass('###JFORM_extends###');";
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@@ -78,7 +78,7 @@ You write clean, readable logic — and JCB ensures compatibility under the hood
|
||||
MD;
|
||||
|
||||
// What can be found here
|
||||
$readme[] = '### What's in This Repository?';
|
||||
$readme[] = '### What\'s in This Repository?';
|
||||
$readme[] = <<<MD
|
||||
This repository contains a **index of Joomla Powers** to be used in a JCB instance.
|
||||
|
||||
|
@@ -10863,7 +10863,7 @@ class Table extends BaseTable implements TableInterface
|
||||
'store' => 'json',
|
||||
'tab_name' => 'Details',
|
||||
'db' => [
|
||||
'type' => 'TEXT',
|
||||
'type' => 'MEDIUMTEXT',
|
||||
'default' => 'EMPTY',
|
||||
'GUID' => '36edbdce-b9b7-4b89-b2d9-03f91bb56019',
|
||||
'null_switch' => 'NULL',
|
||||
|
@@ -42,7 +42,7 @@ final class Delete extends Database implements DeleteInterface
|
||||
}
|
||||
|
||||
// get a query object
|
||||
$query = $this->db->getQuery(true);
|
||||
$query = $this->db->createQuery();
|
||||
|
||||
// start the conditions bucket
|
||||
$_conditions = [];
|
||||
|
@@ -219,7 +219,7 @@ final class Insert extends Versioning implements InsertInterface
|
||||
$this->historyGuid = [];
|
||||
|
||||
// get a query object
|
||||
$query = $this->db->getQuery(true);
|
||||
$query = $this->db->createQuery();
|
||||
$table = $this->getTable($table);
|
||||
|
||||
// set the query targets
|
||||
@@ -242,7 +242,7 @@ final class Insert extends Versioning implements InsertInterface
|
||||
$limit = 300;
|
||||
|
||||
// get a query object
|
||||
$query = $this->db->getQuery(true);
|
||||
$query = $this->db->createQuery();
|
||||
|
||||
// set the query targets
|
||||
$query->insert($this->db->quoteName($table))->columns($this->db->quoteName(array_keys($columns)));
|
||||
@@ -334,7 +334,7 @@ final class Insert extends Versioning implements InsertInterface
|
||||
{
|
||||
try
|
||||
{
|
||||
$query = $this->db->getQuery(true)
|
||||
$query = $this->db->createQuery()
|
||||
->select($this->db->quoteName('id'))
|
||||
->from($this->db->quoteName($table))
|
||||
->where(
|
||||
|
@@ -330,7 +330,7 @@ final class Load extends Database implements LoadInterface
|
||||
protected function query(array $select, array $tables, ?array $where = null,
|
||||
?array $order = null, ?int $limit = null): ?object
|
||||
{
|
||||
$query = $this->db->getQuery(true);
|
||||
$query = $this->db->createQuery();
|
||||
|
||||
$this->applySelect($query, $select);
|
||||
$this->applyFromAndJoins($query, $tables);
|
||||
|
@@ -167,7 +167,7 @@ final class Update extends Versioning implements UpdateInterface
|
||||
$table = $this->getTable($table);
|
||||
|
||||
// get a query object
|
||||
$query = $this->db->getQuery(true);
|
||||
$query = $this->db->createQuery();
|
||||
|
||||
// set the query targets
|
||||
$query->update($this->db->quoteName($table));
|
||||
@@ -270,7 +270,7 @@ final class Update extends Versioning implements UpdateInterface
|
||||
}
|
||||
|
||||
// Get a query object
|
||||
$query = $this->db->getQuery(true);
|
||||
$query = $this->db->createQuery();
|
||||
|
||||
// Prepare the update statement
|
||||
$query->update($this->db->quoteName($this->getTable($table)))
|
||||
@@ -317,7 +317,7 @@ final class Update extends Versioning implements UpdateInterface
|
||||
|
||||
try
|
||||
{
|
||||
$query = $this->db->getQuery(true)
|
||||
$query = $this->db->createQuery()
|
||||
->select($this->db->quoteName('id'))
|
||||
->from($this->db->quoteName($table))
|
||||
->where($this->db->quoteName('guid') . ' = ' . $this->quote($guid));
|
||||
|
@@ -87,12 +87,12 @@ abstract class StringHelper
|
||||
{
|
||||
// Safely escape output for HTML
|
||||
$title = self::shorten($string, 400 , false);
|
||||
$escapedTitle = htmlspecialchars($title, ENT_QUOTES, 'UTF-8');
|
||||
$escapedShort = htmlspecialchars($shortened, ENT_QUOTES, 'UTF-8');
|
||||
|
||||
return '<span class="hasTip" title="' . $escapedTitle . '" style="cursor:help">'
|
||||
. $escapedShort
|
||||
. '</span>';
|
||||
return sprintf(
|
||||
'<span class="hasTip" title="%s" style="cursor:help">%s</span>',
|
||||
htmlspecialchars($title, ENT_QUOTES, 'UTF-8'),
|
||||
htmlspecialchars($shortened, ENT_QUOTES, 'UTF-8')
|
||||
);
|
||||
}
|
||||
|
||||
// Return shortened version without tooltip
|
||||
|
Reference in New Issue
Block a user