forked from joomla/Component-Builder
Release of v3.2.0-beta8
Add Factory class to the J5 Event class. #1093.
This commit is contained in:
parent
c90b1e0c8b
commit
91df280520
@ -1,3 +1,7 @@
|
|||||||
|
# v3.2.0-beta8
|
||||||
|
|
||||||
|
- Add Factory class to the J5 Event class. #1093
|
||||||
|
|
||||||
# v3.2.0-beta7
|
# v3.2.0-beta7
|
||||||
|
|
||||||
- Fix plugin field selection
|
- Fix plugin field selection
|
||||||
|
10
README.md
10
README.md
@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo
|
|||||||
|
|
||||||
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have!
|
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have!
|
||||||
|
|
||||||
You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.2.0-beta7) with **ALL** its features and **ALL** concepts totally open-source and free!
|
You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.2.0-beta8) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||||
|
|
||||||
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
||||||
|
|
||||||
@ -144,13 +144,13 @@ TODO
|
|||||||
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||||
+ *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
+ *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 15th March, 2024
|
+ *Last Build*: 20th March, 2024
|
||||||
+ *Version*: 3.2.0-beta7
|
+ *Version*: 3.2.0-beta8
|
||||||
+ *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*: **738854**
|
+ *Line count*: **738862**
|
||||||
+ *Field count*: **2078**
|
+ *Field count*: **2078**
|
||||||
+ *File count*: **5201**
|
+ *File count*: **5202**
|
||||||
+ *Folder count*: **459**
|
+ *Folder count*: **459**
|
||||||
|
|
||||||
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com).
|
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com).
|
||||||
|
@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo
|
|||||||
|
|
||||||
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have!
|
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have!
|
||||||
|
|
||||||
You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.2.0-beta7) with **ALL** its features and **ALL** concepts totally open-source and free!
|
You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.2.0-beta8) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||||
|
|
||||||
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
||||||
|
|
||||||
@ -144,13 +144,13 @@ TODO
|
|||||||
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||||
+ *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
+ *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 15th March, 2024
|
+ *Last Build*: 20th March, 2024
|
||||||
+ *Version*: 3.2.0-beta7
|
+ *Version*: 3.2.0-beta8
|
||||||
+ *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*: **738854**
|
+ *Line count*: **738862**
|
||||||
+ *Field count*: **2078**
|
+ *Field count*: **2078**
|
||||||
+ *File count*: **5201**
|
+ *File count*: **5202**
|
||||||
+ *Folder count*: **459**
|
+ *Folder count*: **459**
|
||||||
|
|
||||||
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com).
|
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com).
|
||||||
|
@ -40,24 +40,21 @@ class JFormFieldCustomfilelist extends JFormFieldList
|
|||||||
protected function getOptions()
|
protected function getOptions()
|
||||||
{
|
{
|
||||||
// get custom folder files
|
// get custom folder files
|
||||||
$localfolder = JComponentHelper::getParams('com_componentbuilder')->get('custom_folder_path', JPATH_COMPONENT_ADMINISTRATOR.'/custom');
|
$localfolder = \JComponentHelper::getParams('com_componentbuilder')->get('custom_folder_path', JPATH_COMPONENT_ADMINISTRATOR . '/custom');
|
||||||
// set the default
|
// set the default
|
||||||
$options[] = JHtml::_('select.option', '', JText::sprintf('COM_COMPONENTBUILDER_PLEASE_ADD_FILES_TO_S',$localfolder));
|
$options[] = Html::_('select.option', '', Text::sprintf('COM_COMPONENTBUILDER_PLEASE_ADD_FILES_TO_S',$localfolder));
|
||||||
// inport all needed classes
|
|
||||||
jimport('joomla.filesystem.file');
|
|
||||||
jimport('joomla.filesystem.folder');
|
|
||||||
// setup the folder if it does not exist
|
// setup the folder if it does not exist
|
||||||
if (!JFolder::exists($localfolder))
|
if (!\JFolder::exists($localfolder))
|
||||||
{
|
{
|
||||||
JFolder::create($localfolder);
|
\JFolder::create($localfolder);
|
||||||
}
|
}
|
||||||
// now check if there are files in the folder
|
// now check if there are files in the folder
|
||||||
if ($files = JFolder::files($localfolder))
|
if ($files = \JFolder::files($localfolder))
|
||||||
{
|
{
|
||||||
$options = array();
|
$options = array();
|
||||||
foreach ($files as $file)
|
foreach ($files as $file)
|
||||||
{
|
{
|
||||||
$options[] = JHtml::_('select.option', $file, $file);
|
$options[] = Html::_('select.option', $file, $file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $options;
|
return $options;
|
||||||
|
@ -145,19 +145,20 @@
|
|||||||
hint="COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_TARGET_HINT"
|
hint="COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_TARGET_HINT"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
/>
|
/>
|
||||||
<!-- Value Field. Type: Text. (joomla) -->
|
<!-- Value Field. Type: Textarea. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="text"
|
type="textarea"
|
||||||
name="value"
|
name="value"
|
||||||
label="COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_VALUE_LABEL"
|
label="COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_VALUE_LABEL"
|
||||||
size="150"
|
rows="1"
|
||||||
|
cols="5"
|
||||||
|
default="default text"
|
||||||
description="COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_VALUE_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_VALUE_DESCRIPTION"
|
||||||
class="text_area"
|
|
||||||
required="true"
|
|
||||||
filter="RAW"
|
|
||||||
message="COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_VALUE_MESSAGE"
|
message="COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_VALUE_MESSAGE"
|
||||||
|
class="text_area span12"
|
||||||
|
filter="RAW"
|
||||||
hint="COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_VALUE_HINT"
|
hint="COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_VALUE_HINT"
|
||||||
autocomplete="on"
|
required="true"
|
||||||
/>
|
/>
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
|
@ -110,19 +110,20 @@
|
|||||||
hint="COM_COMPONENTBUILDER_PLACEHOLDER_TARGET_HINT"
|
hint="COM_COMPONENTBUILDER_PLACEHOLDER_TARGET_HINT"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
/>
|
/>
|
||||||
<!-- Value Field. Type: Text. (joomla) -->
|
<!-- Value Field. Type: Textarea. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="text"
|
type="textarea"
|
||||||
name="value"
|
name="value"
|
||||||
label="COM_COMPONENTBUILDER_PLACEHOLDER_VALUE_LABEL"
|
label="COM_COMPONENTBUILDER_PLACEHOLDER_VALUE_LABEL"
|
||||||
size="150"
|
rows="1"
|
||||||
|
cols="5"
|
||||||
|
default="default text"
|
||||||
description="COM_COMPONENTBUILDER_PLACEHOLDER_VALUE_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_PLACEHOLDER_VALUE_DESCRIPTION"
|
||||||
class="text_area"
|
|
||||||
required="true"
|
|
||||||
filter="RAW"
|
|
||||||
message="COM_COMPONENTBUILDER_PLACEHOLDER_VALUE_MESSAGE"
|
message="COM_COMPONENTBUILDER_PLACEHOLDER_VALUE_MESSAGE"
|
||||||
|
class="text_area span12"
|
||||||
|
filter="RAW"
|
||||||
hint="COM_COMPONENTBUILDER_PLACEHOLDER_VALUE_HINT"
|
hint="COM_COMPONENTBUILDER_PLACEHOLDER_VALUE_HINT"
|
||||||
autocomplete="on"
|
required="true"
|
||||||
/>
|
/>
|
||||||
<!-- Note_placeholders_placedin Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- Note_placeholders_placedin Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
<field type="note" name="note_placeholders_placedin" description="COM_COMPONENTBUILDER_PLACEHOLDER_NOTE_PLACEHOLDERS_PLACEDIN_DESCRIPTION" class="note_placeholders_placedin" />
|
<field type="note" name="note_placeholders_placedin" description="COM_COMPONENTBUILDER_PLACEHOLDER_NOTE_PLACEHOLDERS_PLACEDIN_DESCRIPTION" class="note_placeholders_placedin" />
|
||||||
|
@ -163,12 +163,6 @@ class ComponentbuilderModelPlaceholder extends AdminModel
|
|||||||
$item->metadata = $registry->toArray();
|
$item->metadata = $registry->toArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($item->value))
|
|
||||||
{
|
|
||||||
// base64 Decode value.
|
|
||||||
$item->value = base64_decode($item->value);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if (empty($item->id))
|
if (empty($item->id))
|
||||||
{
|
{
|
||||||
@ -899,12 +893,6 @@ class ComponentbuilderModelPlaceholder extends AdminModel
|
|||||||
// add the padding (needed)
|
// add the padding (needed)
|
||||||
$data['target'] = '[[[' . trim($data['target']) . ']]]';
|
$data['target'] = '[[[' . trim($data['target']) . ']]]';
|
||||||
|
|
||||||
// Set the value string to base64 string.
|
|
||||||
if (isset($data['value']))
|
|
||||||
{
|
|
||||||
$data['value'] = base64_encode($data['value']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set the Params Items to data
|
// Set the Params Items to data
|
||||||
if (isset($data['params']) && is_array($data['params']))
|
if (isset($data['params']) && is_array($data['params']))
|
||||||
{
|
{
|
||||||
|
@ -142,8 +142,6 @@ class ComponentbuilderModelPlaceholders extends ListModel
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// decode value
|
|
||||||
$item->value = base64_decode($item->value);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -309,8 +307,6 @@ class ComponentbuilderModelPlaceholders extends ListModel
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// decode value
|
|
||||||
$item->value = base64_decode($item->value);
|
|
||||||
// unset the values we don't want exported.
|
// unset the values we don't want exported.
|
||||||
unset($item->asset_id);
|
unset($item->asset_id);
|
||||||
unset($item->checked_out);
|
unset($item->checked_out);
|
||||||
|
1
admin/sql/updates/mysql/3.2.0-beta7.sql
Normal file
1
admin/sql/updates/mysql/3.2.0-beta7.sql
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
@ -1,15 +1,15 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<extension type="component" version="3.10" method="upgrade">
|
<extension type="component" version="3.10" method="upgrade">
|
||||||
<name>COM_COMPONENTBUILDER</name>
|
<name>COM_COMPONENTBUILDER</name>
|
||||||
<creationDate>15th March, 2024</creationDate>
|
<creationDate>20th March, 2024</creationDate>
|
||||||
<author>Llewellyn van der Merwe</author>
|
<author>Llewellyn van der Merwe</author>
|
||||||
<authorEmail>joomla@vdm.io</authorEmail>
|
<authorEmail>joomla@vdm.io</authorEmail>
|
||||||
<authorUrl>https://dev.vdm.io</authorUrl>
|
<authorUrl>https://dev.vdm.io</authorUrl>
|
||||||
<copyright>Copyright (C) 2015 Vast Development Method. All rights reserved.</copyright>
|
<copyright>Copyright (C) 2015 Vast Development Method. All rights reserved.</copyright>
|
||||||
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
|
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
|
||||||
<version>3.2.0-beta7</version>
|
<version>3.2.0-beta8</version>
|
||||||
<description><![CDATA[
|
<description><![CDATA[
|
||||||
<h1>Component Builder (v.3.2.0-beta7)</h1>
|
<h1>Component Builder (v.3.2.0-beta8)</h1>
|
||||||
<div style="clear: both;"></div>
|
<div style="clear: both;"></div>
|
||||||
<p>The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) is highly advanced tool that is truly able to build extremely complex components in a fraction of the time.
|
<p>The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) is highly advanced tool that is truly able to build extremely complex components in a fraction of the time.
|
||||||
|
|
||||||
|
@ -1649,4 +1649,22 @@
|
|||||||
<maintainerurl>https://dev.vdm.io</maintainerurl>
|
<maintainerurl>https://dev.vdm.io</maintainerurl>
|
||||||
<targetplatform name="joomla" version="3.*"/>
|
<targetplatform name="joomla" version="3.*"/>
|
||||||
</update>
|
</update>
|
||||||
|
<update>
|
||||||
|
<name>Component Builder</name>
|
||||||
|
<description>Builds Complex Joomla Components</description>
|
||||||
|
<element>pkg_component_builder</element>
|
||||||
|
<type>package</type>
|
||||||
|
<client>site</client>
|
||||||
|
<version>3.2.0-beta8</version>
|
||||||
|
<infourl title="Component Builder!">https://dev.vdm.io</infourl>
|
||||||
|
<downloads>
|
||||||
|
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v3.2.0-beta8.zip</downloadurl>
|
||||||
|
</downloads>
|
||||||
|
<tags>
|
||||||
|
<tag>beta</tag>
|
||||||
|
</tags>
|
||||||
|
<maintainer>Llewellyn van der Merwe</maintainer>
|
||||||
|
<maintainerurl>https://dev.vdm.io</maintainerurl>
|
||||||
|
<targetplatform name="joomla" version="3.*"/>
|
||||||
|
</update>
|
||||||
</updates>
|
</updates>
|
@ -12,6 +12,7 @@
|
|||||||
namespace VDM\Joomla\Componentbuilder\Compiler\JoomlaFive;
|
namespace VDM\Joomla\Componentbuilder\Compiler\JoomlaFive;
|
||||||
|
|
||||||
|
|
||||||
|
use Joomla\CMS\Factory;
|
||||||
use Joomla\Registry\Registry;
|
use Joomla\Registry\Registry;
|
||||||
use Joomla\CMS\Plugin\PluginHelper;
|
use Joomla\CMS\Plugin\PluginHelper;
|
||||||
use VDM\Joomla\Utilities\Component\Helper;
|
use VDM\Joomla\Utilities\Component\Helper;
|
||||||
|
@ -4056,10 +4056,10 @@ class Table extends BaseTable implements Tableinterface
|
|||||||
'value' => [
|
'value' => [
|
||||||
'name' => 'value',
|
'name' => 'value',
|
||||||
'label' => 'COM_COMPONENTBUILDER_PLACEHOLDER_VALUE_LABEL',
|
'label' => 'COM_COMPONENTBUILDER_PLACEHOLDER_VALUE_LABEL',
|
||||||
'type' => 'text',
|
'type' => 'textarea',
|
||||||
'title' => false,
|
'title' => false,
|
||||||
'list' => 'placeholders',
|
'list' => 'placeholders',
|
||||||
'store' => 'base64',
|
'store' => NULL,
|
||||||
'tab_name' => 'Details',
|
'tab_name' => 'Details',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
@ -9618,7 +9618,7 @@ class Com_ComponentbuilderInstallerScript
|
|||||||
echo '<div style="background-color: #fff;" class="alert alert-info"><a target="_blank" href="https://dev.vdm.io" title="Component Builder">
|
echo '<div style="background-color: #fff;" class="alert alert-info"><a target="_blank" href="https://dev.vdm.io" title="Component Builder">
|
||||||
<img src="components/com_componentbuilder/assets/images/vdm-component.jpg"/>
|
<img src="components/com_componentbuilder/assets/images/vdm-component.jpg"/>
|
||||||
</a>
|
</a>
|
||||||
<h3>Upgrade to Version 3.2.0-beta7 Was Successful! Let us know if anything is not working as expected.</h3></div>';
|
<h3>Upgrade to Version 3.2.0-beta8 Was Successful! Let us know if anything is not working as expected.</h3></div>';
|
||||||
|
|
||||||
// Set db if not set already.
|
// Set db if not set already.
|
||||||
if (!isset($db))
|
if (!isset($db))
|
||||||
|
Loading…
Reference in New Issue
Block a user