Release of v5.0.3-beta2
Fix the demo site view to also display files. Fix the message of field type init. Fix to ensure type-agnostic comparisons by casting to CHAR in joins in dynamic get. Fix dynamic download for site area to have correct namespace.
This commit is contained in:
parent
f71c689d46
commit
8ebeb56d3e
@ -1,4 +1,11 @@
|
|||||||
# v5.0.3-beta1
|
# v5.0.3-beta2
|
||||||
|
|
||||||
|
- Fix the demo site view to also display files
|
||||||
|
- Fix the message of field type init
|
||||||
|
- Fix to ensure type-agnostic comparisons by casting to CHAR in joins in dynamic get
|
||||||
|
- Fix dynamic download for site area to have correct namespace
|
||||||
|
|
||||||
|
# v5.0.3-beta
|
||||||
|
|
||||||
- Fix zip missing working path
|
- Fix zip missing working path
|
||||||
- Fix demo site view dynamic get
|
- Fix demo site view dynamic get
|
||||||
|
@ -3270,7 +3270,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
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 5.0.3-beta1 Was Successful! Let us know if anything is not working as expected.</h3></div>';
|
<h3>Upgrade to Version 5.0.3-beta2 Was Successful! Let us know if anything is not working as expected.</h3></div>';
|
||||||
|
|
||||||
// Add/Update component in the action logs extensions table.
|
// Add/Update component in the action logs extensions table.
|
||||||
$this->setActionLogsExtensions();
|
$this->setActionLogsExtensions();
|
||||||
|
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 (5.0.3-beta1) 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 (5.0.3-beta2) 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*: 18th September, 2024
|
+ *Last Build*: 19th September, 2024
|
||||||
+ *Version*: 5.0.3-beta1
|
+ *Version*: 5.0.3-beta2
|
||||||
+ *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*: **855985**
|
+ *Line count*: **857969**
|
||||||
+ *Field count*: **2104**
|
+ *Field count*: **2104**
|
||||||
+ *File count*: **5916**
|
+ *File count*: **5922**
|
||||||
+ *Folder count*: **630**
|
+ *Folder count*: **630**
|
||||||
|
|
||||||
> 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 (5.0.3-beta1) 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 (5.0.3-beta2) 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*: 18th September, 2024
|
+ *Last Build*: 19th September, 2024
|
||||||
+ *Version*: 5.0.3-beta1
|
+ *Version*: 5.0.3-beta2
|
||||||
+ *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*: **855985**
|
+ *Line count*: **857969**
|
||||||
+ *Field count*: **2104**
|
+ *Field count*: **2104**
|
||||||
+ *File count*: **5916**
|
+ *File count*: **5922**
|
||||||
+ *Folder count*: **630**
|
+ *Folder count*: **630**
|
||||||
|
|
||||||
> 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).
|
||||||
|
16
admin/custom/DownloadControllerAdmin.php
Normal file
16
admin/custom/DownloadControllerAdmin.php
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @version 2.0.0 - September 03, 2014
|
||||||
|
* @package Component Builder
|
||||||
|
* @author Llewellyn van de Merwe <http://www.vdm.io>
|
||||||
|
* @copyright Copyright (C) 2014. All Rights Reserved
|
||||||
|
* @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
|
*
|
||||||
|
**/
|
||||||
|
|
||||||
|
// No direct access to this file
|
||||||
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
?>
|
||||||
|
###BOM###
|
||||||
|
[CUSTOMCODE=dynamicDownloadController+Administrator]
|
16
admin/custom/DownloadControllerSite.php
Normal file
16
admin/custom/DownloadControllerSite.php
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @version 2.0.0 - September 03, 2014
|
||||||
|
* @package Component Builder
|
||||||
|
* @author Llewellyn van de Merwe <http://www.vdm.io>
|
||||||
|
* @copyright Copyright (C) 2014. All Rights Reserved
|
||||||
|
* @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
|
*
|
||||||
|
**/
|
||||||
|
|
||||||
|
// No direct access to this file
|
||||||
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
?>
|
||||||
|
###BOM###
|
||||||
|
[CUSTOMCODE=dynamicDownloadController+Site]
|
@ -1,16 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @version 2.0.0 - September 03, 2014
|
|
||||||
* @package Component Builder
|
|
||||||
* @author Llewellyn van de Merwe <http://www.vdm.io>
|
|
||||||
* @copyright Copyright (C) 2014. All Rights Reserved
|
|
||||||
* @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
*
|
|
||||||
**/
|
|
||||||
|
|
||||||
// No direct access to this file
|
|
||||||
defined('_JEXEC') or die('Restricted access');
|
|
||||||
?>
|
|
||||||
###BOM###
|
|
||||||
[CUSTOMCODE=dynamicDownloadController]
|
|
@ -8911,7 +8911,9 @@ COM_COMPONENTBUILDER_SUBMENU_SNIPPETS="Snippets"
|
|||||||
COM_COMPONENTBUILDER_SUBMENU_TEMPLATES="Templates"
|
COM_COMPONENTBUILDER_SUBMENU_TEMPLATES="Templates"
|
||||||
COM_COMPONENTBUILDER_SUBMENU_VALIDATION_RULES="Validation Rules"
|
COM_COMPONENTBUILDER_SUBMENU_VALIDATION_RULES="Validation Rules"
|
||||||
COM_COMPONENTBUILDER_SUCCESS="Success"
|
COM_COMPONENTBUILDER_SUCCESS="Success"
|
||||||
|
COM_COMPONENTBUILDER_SUCCESSFULLY_INITIALIZED_ALL_REMOTE_JOOMLA_FIELD_TYPES="Successfully Initialized all Remote Joomla Field Types"
|
||||||
COM_COMPONENTBUILDER_SUCCESSFULLY_INITIALIZED_ALL_REMOTE_JOOMLA_POWERS="Successfully Initialized all Remote Joomla Powers"
|
COM_COMPONENTBUILDER_SUCCESSFULLY_INITIALIZED_ALL_REMOTE_JOOMLA_POWERS="Successfully Initialized all Remote Joomla Powers"
|
||||||
|
COM_COMPONENTBUILDER_SUCCESSFULLY_INITIALIZED_ALL_REMOTE_POWERS="Successfully Initialized all Remote Powers"
|
||||||
COM_COMPONENTBUILDER_SUCCESS_THE_SNIPPET_WAS_SAVED="Success! The snippet was saved."
|
COM_COMPONENTBUILDER_SUCCESS_THE_SNIPPET_WAS_SAVED="Success! The snippet was saved."
|
||||||
COM_COMPONENTBUILDER_SUCCESS_THE_SNIPPET_WAS_SAVED_BUT_THE_MODIFIED_DATE_COULD_NOT_BE_ADJUSTED_BR_BR_BTHIS_MEANS_THE_SNIPPETS_WILL_CONTINUE_TO_APPEAR_OUT_OF_DATEB="Success! The snippet was saved. But the modified date could not be adjusted. <br /><br /><b>This means the snippets will continue to appear out of date.</b>"
|
COM_COMPONENTBUILDER_SUCCESS_THE_SNIPPET_WAS_SAVED_BUT_THE_MODIFIED_DATE_COULD_NOT_BE_ADJUSTED_BR_BR_BTHIS_MEANS_THE_SNIPPETS_WILL_CONTINUE_TO_APPEAR_OUT_OF_DATEB="Success! The snippet was saved. But the modified date could not be adjusted. <br /><br /><b>This means the snippets will continue to appear out of date.</b>"
|
||||||
COM_COMPONENTBUILDER_SUPER_POWER="Super Power"
|
COM_COMPONENTBUILDER_SUPER_POWER="Super Power"
|
||||||
|
File diff suppressed because one or more lines are too long
1
admin/sql/updates/mysql/5.0.3-beta.sql
Normal file
1
admin/sql/updates/mysql/5.0.3-beta.sql
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
@ -87,7 +87,7 @@ class FieldtypesController extends AdminController
|
|||||||
if (FieldtypeFactory::_('Joomla.Fieldtype.Remote.Get')->init())
|
if (FieldtypeFactory::_('Joomla.Fieldtype.Remote.Get')->init())
|
||||||
{
|
{
|
||||||
// set success message
|
// set success message
|
||||||
$message = '<h1>' . Text::_('COM_COMPONENTBUILDER_SUCCESSFULLY_INITIALIZED_ALL_REMOTE_JOOMLA_POWERS') . '</h1>';
|
$message = '<h1>' . Text::_('COM_COMPONENTBUILDER_SUCCESSFULLY_INITIALIZED_ALL_REMOTE_JOOMLA_FIELD_TYPES') . '</h1>';
|
||||||
$message .= '<p>' . Text::_('COM_COMPONENTBUILDER_THE_LOCAL_DATABASE_JOOMLA_FIELD_TYPES_HAS_SUCCESSFULLY_BEEN_SYNCED_WITH_THE_REMOTE_REPOSITORIES') . '</p>';
|
$message .= '<p>' . Text::_('COM_COMPONENTBUILDER_THE_LOCAL_DATABASE_JOOMLA_FIELD_TYPES_HAS_SUCCESSFULLY_BEEN_SYNCED_WITH_THE_REMOTE_REPOSITORIES') . '</p>';
|
||||||
|
|
||||||
$status = 'success';
|
$status = 'success';
|
||||||
|
@ -87,7 +87,7 @@ class PowersController extends AdminController
|
|||||||
if (PowerFactory::_('Power.Remote.Get')->init())
|
if (PowerFactory::_('Power.Remote.Get')->init())
|
||||||
{
|
{
|
||||||
// set success message
|
// set success message
|
||||||
$message = '<h1>' . Text::_('COM_COMPONENTBUILDER_SUCCESSFULLY_INITIALIZED_ALL_REMOTE_JOOMLA_POWERS') . '</h1>';
|
$message = '<h1>' . Text::_('COM_COMPONENTBUILDER_SUCCESSFULLY_INITIALIZED_ALL_REMOTE_POWERS') . '</h1>';
|
||||||
$message .= '<p>' . Text::_('COM_COMPONENTBUILDER_THE_LOCAL_DATABASE_POWERS_HAS_SUCCESSFULLY_BEEN_SYNCED_WITH_THE_REMOTE_REPOSITORIES') . '</p>';
|
$message .= '<p>' . Text::_('COM_COMPONENTBUILDER_THE_LOCAL_DATABASE_POWERS_HAS_SUCCESSFULLY_BEEN_SYNCED_WITH_THE_REMOTE_REPOSITORIES') . '</p>';
|
||||||
|
|
||||||
$status = 'success';
|
$status = 'success';
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<extension type="component" version="5.0" method="upgrade">
|
<extension type="component" version="5.0" method="upgrade">
|
||||||
<name>COM_COMPONENTBUILDER</name>
|
<name>COM_COMPONENTBUILDER</name>
|
||||||
<creationDate>18th September, 2024</creationDate>
|
<creationDate>19th September, 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>5.0.3-beta1</version>
|
<version>5.0.3-beta2</version>
|
||||||
<description><![CDATA[
|
<description><![CDATA[
|
||||||
<h1>Component Builder (v.5.0.3-beta1)</h1>
|
<h1>Component Builder (v.5.0.3-beta2)</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.
|
||||||
|
|
||||||
|
@ -113,10 +113,28 @@
|
|||||||
<element>pkg_component_builder</element>
|
<element>pkg_component_builder</element>
|
||||||
<type>package</type>
|
<type>package</type>
|
||||||
<client>site</client>
|
<client>site</client>
|
||||||
<version>5.0.3-beta1</version>
|
<version>5.0.3-beta</version>
|
||||||
<infourl title="Component Builder!">https://dev.vdm.io</infourl>
|
<infourl title="Component Builder!">https://dev.vdm.io</infourl>
|
||||||
<downloads>
|
<downloads>
|
||||||
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v5.0.3-beta1.zip</downloadurl>
|
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v5.0.3-beta2.zip</downloadurl>
|
||||||
|
</downloads>
|
||||||
|
<tags>
|
||||||
|
<tag>beta</tag>
|
||||||
|
</tags>
|
||||||
|
<maintainer>Llewellyn van der Merwe</maintainer>
|
||||||
|
<maintainerurl>https://dev.vdm.io</maintainerurl>
|
||||||
|
<targetplatform name="joomla" version="5\.[012]"/>
|
||||||
|
</update>
|
||||||
|
<update>
|
||||||
|
<name>Component Builder</name>
|
||||||
|
<description>Builds Complex Joomla Components</description>
|
||||||
|
<element>pkg_component_builder</element>
|
||||||
|
<type>package</type>
|
||||||
|
<client>site</client>
|
||||||
|
<version>5.0.3-beta2</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/v5.0.3-beta2.zip</downloadurl>
|
||||||
</downloads>
|
</downloads>
|
||||||
<tags>
|
<tags>
|
||||||
<tag>beta</tag>
|
<tag>beta</tag>
|
||||||
|
@ -344,7 +344,7 @@ abstract class Schema implements SchemaInterface
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
// check if update of default values is needed
|
// check if update of default values is needed
|
||||||
elseif ($this->checkDefault($table, $column))
|
if ($this->checkDefault($table, $column))
|
||||||
{
|
{
|
||||||
$requireUpdate[$column] = [
|
$requireUpdate[$column] = [
|
||||||
'column' => $column,
|
'column' => $column,
|
||||||
@ -353,7 +353,7 @@ abstract class Schema implements SchemaInterface
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
// check if update of null is needed
|
// check if update of null is needed
|
||||||
elseif ($this->checkNull($table, $column))
|
if ($this->checkNull($table, $column))
|
||||||
{
|
{
|
||||||
$requireUpdate[$column] = [
|
$requireUpdate[$column] = [
|
||||||
'column' => $column,
|
'column' => $column,
|
||||||
|
@ -87,8 +87,7 @@ final class CreateUser implements CreateUserInterface
|
|||||||
$method[] = Indent::_(2) . "\$lang = Factory::getLanguage();";
|
$method[] = Indent::_(2) . "\$lang = Factory::getLanguage();";
|
||||||
$method[] = Indent::_(2) . "\$extension = 'com_users';";
|
$method[] = Indent::_(2) . "\$extension = 'com_users';";
|
||||||
$method[] = Indent::_(2) . "\$base_dir = JPATH_SITE;";
|
$method[] = Indent::_(2) . "\$base_dir = JPATH_SITE;";
|
||||||
$method[] = Indent::_(2) . "\$language_tag = '" . CFactory::_('Config')->get('lang_tag', 'en-GB')
|
$method[] = Indent::_(2) . "\$language_tag = 'en-GB';";
|
||||||
. "';";
|
|
||||||
$method[] = Indent::_(2) . "\$reload = true;";
|
$method[] = Indent::_(2) . "\$reload = true;";
|
||||||
$method[] = Indent::_(2)
|
$method[] = Indent::_(2)
|
||||||
. "\$lang->load(\$extension, \$base_dir, \$language_tag, \$reload);";
|
. "\$lang->load(\$extension, \$base_dir, \$language_tag, \$reload);";
|
||||||
@ -306,8 +305,7 @@ final class CreateUser implements CreateUserInterface
|
|||||||
$method[] = Indent::_(2) . "\$lang = Factory::getLanguage();";
|
$method[] = Indent::_(2) . "\$lang = Factory::getLanguage();";
|
||||||
$method[] = Indent::_(2) . "\$extension = 'com_users';";
|
$method[] = Indent::_(2) . "\$extension = 'com_users';";
|
||||||
$method[] = Indent::_(2) . "\$base_dir = JPATH_ADMINISTRATOR;";
|
$method[] = Indent::_(2) . "\$base_dir = JPATH_ADMINISTRATOR;";
|
||||||
$method[] = Indent::_(2) . "\$language_tag = '" . CFactory::_('Config')->get('lang_tag', 'en-GB')
|
$method[] = Indent::_(2) . "\$language_tag = 'en-GB';";
|
||||||
. "';";
|
|
||||||
$method[] = Indent::_(2) . "\$reload = true;";
|
$method[] = Indent::_(2) . "\$reload = true;";
|
||||||
$method[] = Indent::_(2)
|
$method[] = Indent::_(2)
|
||||||
. "\$lang->load(\$extension, \$base_dir, \$language_tag, \$reload);";
|
. "\$lang->load(\$extension, \$base_dir, \$language_tag, \$reload);";
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 3rd September, 2020
|
* @created 4th September, 2020
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 3rd September, 2020
|
* @created 4th September, 2020
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 3rd September, 2020
|
* @created 4th September, 2020
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
@ -12,6 +12,7 @@
|
|||||||
namespace VDM\Joomla\Componentbuilder\File;
|
namespace VDM\Joomla\Componentbuilder\File;
|
||||||
|
|
||||||
|
|
||||||
|
use Joomla\CMS\Factory;
|
||||||
use Joomla\CMS\Uri\Uri;
|
use Joomla\CMS\Uri\Uri;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Joomla\Interfaces\Data\ItemInterface as Item;
|
use VDM\Joomla\Interfaces\Data\ItemInterface as Item;
|
||||||
@ -57,6 +58,14 @@ final class Display
|
|||||||
*/
|
*/
|
||||||
protected array $fileTypes;
|
protected array $fileTypes;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The active user access
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
* @since 5.0.2
|
||||||
|
*/
|
||||||
|
protected array $access;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The File Type Task
|
* The File Type Task
|
||||||
*
|
*
|
||||||
@ -78,6 +87,9 @@ final class Display
|
|||||||
$this->item = $item;
|
$this->item = $item;
|
||||||
$this->items = $items;
|
$this->items = $items;
|
||||||
$this->url = rtrim(Uri::root(), '/');
|
$this->url = rtrim(Uri::root(), '/');
|
||||||
|
|
||||||
|
$user = Factory::getApplication()->getIdentity();
|
||||||
|
$this->access = $user->getAuthorisedViewLevels();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -95,7 +107,8 @@ final class Display
|
|||||||
{
|
{
|
||||||
foreach ($files as $n => $file)
|
foreach ($files as $n => $file)
|
||||||
{
|
{
|
||||||
if ($file->entity_type !== $target)
|
if ($file->entity_type !== $target ||
|
||||||
|
!in_array($file->access, $this->access))
|
||||||
{
|
{
|
||||||
unset($files[$n]);
|
unset($files[$n]);
|
||||||
continue;
|
continue;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 3rd September, 2020
|
* @created 4th September, 2020
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 3rd September, 2020
|
* @created 4th September, 2020
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 3rd September, 2020
|
* @created 4th September, 2020
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 3rd September, 2020
|
* @created 4th September, 2020
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 3rd September, 2020
|
* @created 4th September, 2020
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 3rd September, 2020
|
* @created 4th September, 2020
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 3rd September, 2020
|
* @created 4th September, 2020
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 3rd September, 2020
|
* @created 4th September, 2020
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 3rd September, 2020
|
* @created 4th September, 2020
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 3rd September, 2020
|
* @created 4th September, 2020
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
|
Loading…
Reference in New Issue
Block a user