Component Builder (v.5.0.3-beta1)
+ Component Builder (v.5.0.3-beta2)
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.
diff --git a/componentbuilder_update_server.xml b/componentbuilder_update_server.xml
index 42a742c4a..ec6b61476 100644
--- a/componentbuilder_update_server.xml
+++ b/componentbuilder_update_server.xml
@@ -113,10 +113,28 @@
pkg_component_builder
package
site
- 5.0.3-beta1
+ 5.0.3-beta
https://dev.vdm.io
- https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v5.0.3-beta1.zip
+ https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v5.0.3-beta2.zip
+
+
+ beta
+
+ Llewellyn van der Merwe
+ https://dev.vdm.io
+
+
+
+ Component Builder
+ Builds Complex Joomla Components
+ pkg_component_builder
+ package
+ site
+ 5.0.3-beta2
+ https://dev.vdm.io
+
+ https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v5.0.3-beta2.zip
beta
diff --git a/libraries/vendor_jcb/VDM.Joomla/src/Abstraction/Schema.php b/libraries/vendor_jcb/VDM.Joomla/src/Abstraction/Schema.php
index 46664c698..0ad261c6c 100644
--- a/libraries/vendor_jcb/VDM.Joomla/src/Abstraction/Schema.php
+++ b/libraries/vendor_jcb/VDM.Joomla/src/Abstraction/Schema.php
@@ -344,7 +344,7 @@ abstract class Schema implements SchemaInterface
];
}
// check if update of default values is needed
- elseif ($this->checkDefault($table, $column))
+ if ($this->checkDefault($table, $column))
{
$requireUpdate[$column] = [
'column' => $column,
@@ -353,7 +353,7 @@ abstract class Schema implements SchemaInterface
];
}
// check if update of null is needed
- elseif ($this->checkNull($table, $column))
+ if ($this->checkNull($table, $column))
{
$requireUpdate[$column] = [
'column' => $column,
diff --git a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Architecture/JoomlaThree/ComHelperClass/CreateUser.php b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Architecture/JoomlaThree/ComHelperClass/CreateUser.php
index f60ca2772..dc3064750 100644
--- a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Architecture/JoomlaThree/ComHelperClass/CreateUser.php
+++ b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Architecture/JoomlaThree/ComHelperClass/CreateUser.php
@@ -87,8 +87,7 @@ final class CreateUser implements CreateUserInterface
$method[] = Indent::_(2) . "\$lang = Factory::getLanguage();";
$method[] = Indent::_(2) . "\$extension = 'com_users';";
$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)
. "\$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) . "\$extension = 'com_users';";
$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)
. "\$lang->load(\$extension, \$base_dir, \$language_tag, \$reload);";
diff --git a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Utilities/File.php b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Utilities/File.php
index a6046dafa..cf9fb9547 100644
--- a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Utilities/File.php
+++ b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Utilities/File.php
@@ -2,7 +2,7 @@
/**
* @package Joomla.Component.Builder
*
- * @created 3rd September, 2020
+ * @created 4th September, 2020
* @author Llewellyn van der Merwe
* @git Joomla Component Builder
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
diff --git a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Utilities/Folder.php b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Utilities/Folder.php
index 4313f08e0..ec61e5ae3 100644
--- a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Utilities/Folder.php
+++ b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Utilities/Folder.php
@@ -2,7 +2,7 @@
/**
* @package Joomla.Component.Builder
*
- * @created 3rd September, 2020
+ * @created 4th September, 2020
* @author Llewellyn van der Merwe
* @git Joomla Component Builder
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
diff --git a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Display.php b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Display.php
index 287e5a82a..998a63994 100644
--- a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Display.php
+++ b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Display.php
@@ -2,7 +2,7 @@
/**
* @package Joomla.Component.Builder
*
- * @created 3rd September, 2020
+ * @created 4th September, 2020
* @author Llewellyn van der Merwe
* @git Joomla Component Builder
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
@@ -12,6 +12,7 @@
namespace VDM\Joomla\Componentbuilder\File;
+use Joomla\CMS\Factory;
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\Router\Route;
use VDM\Joomla\Interfaces\Data\ItemInterface as Item;
@@ -57,6 +58,14 @@ final class Display
*/
protected array $fileTypes;
+ /**
+ * The active user access
+ *
+ * @var array
+ * @since 5.0.2
+ */
+ protected array $access;
+
/**
* The File Type Task
*
@@ -78,6 +87,9 @@ final class Display
$this->item = $item;
$this->items = $items;
$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)
{
- if ($file->entity_type !== $target)
+ if ($file->entity_type !== $target ||
+ !in_array($file->access, $this->access))
{
unset($files[$n]);
continue;
diff --git a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Handler.php b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Handler.php
index c319fffe7..4e7001c52 100644
--- a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Handler.php
+++ b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Handler.php
@@ -2,7 +2,7 @@
/**
* @package Joomla.Component.Builder
*
- * @created 3rd September, 2020
+ * @created 4th September, 2020
* @author Llewellyn van der Merwe
* @git Joomla Component Builder
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
diff --git a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Manager.php b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Manager.php
index b2db78851..0ba12040c 100644
--- a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Manager.php
+++ b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Manager.php
@@ -2,7 +2,7 @@
/**
* @package Joomla.Component.Builder
*
- * @created 3rd September, 2020
+ * @created 4th September, 2020
* @author Llewellyn van der Merwe
* @git Joomla Component Builder
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
diff --git a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Type.php b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Type.php
index f971fe313..668c3bdc1 100644
--- a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Type.php
+++ b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/File/Type.php
@@ -2,7 +2,7 @@
/**
* @package Joomla.Component.Builder
*
- * @created 3rd September, 2020
+ * @created 4th September, 2020
* @author Llewellyn van der Merwe
* @git Joomla Component Builder
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
diff --git a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Utilities/Exception/NoUserIdFoundException.php b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Utilities/Exception/NoUserIdFoundException.php
index 773c39a44..234b244ac 100644
--- a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Utilities/Exception/NoUserIdFoundException.php
+++ b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Utilities/Exception/NoUserIdFoundException.php
@@ -2,7 +2,7 @@
/**
* @package Joomla.Component.Builder
*
- * @created 3rd September, 2020
+ * @created 4th September, 2020
* @author Llewellyn van der Merwe
* @git Joomla Component Builder
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
diff --git a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Utilities/UserHelper.php b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Utilities/UserHelper.php
index e57858fba..c37824775 100644
--- a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Utilities/UserHelper.php
+++ b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Utilities/UserHelper.php
@@ -2,7 +2,7 @@
/**
* @package Joomla.Component.Builder
*
- * @created 3rd September, 2020
+ * @created 4th September, 2020
* @author Llewellyn van der Merwe
* @git Joomla Component Builder
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
diff --git a/libraries/vendor_jcb/VDM.Joomla/src/Data/Guid.php b/libraries/vendor_jcb/VDM.Joomla/src/Data/Guid.php
index 454fa4de4..3fe2b3a74 100644
--- a/libraries/vendor_jcb/VDM.Joomla/src/Data/Guid.php
+++ b/libraries/vendor_jcb/VDM.Joomla/src/Data/Guid.php
@@ -2,7 +2,7 @@
/**
* @package Joomla.Component.Builder
*
- * @created 3rd September, 2020
+ * @created 4th September, 2020
* @author Llewellyn van der Merwe
* @git Joomla Component Builder
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
diff --git a/libraries/vendor_jcb/VDM.Joomla/src/Data/UsersSubform.php b/libraries/vendor_jcb/VDM.Joomla/src/Data/UsersSubform.php
index 93cdd90cc..1fd7bf967 100644
--- a/libraries/vendor_jcb/VDM.Joomla/src/Data/UsersSubform.php
+++ b/libraries/vendor_jcb/VDM.Joomla/src/Data/UsersSubform.php
@@ -2,7 +2,7 @@
/**
* @package Joomla.Component.Builder
*
- * @created 3rd September, 2020
+ * @created 4th September, 2020
* @author Llewellyn van der Merwe
* @git Joomla Component Builder
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
diff --git a/libraries/vendor_jcb/VDM.Joomla/src/Utilities/ClassHelper.php b/libraries/vendor_jcb/VDM.Joomla/src/Utilities/ClassHelper.php
index 5d6af9cae..a6f4396bc 100644
--- a/libraries/vendor_jcb/VDM.Joomla/src/Utilities/ClassHelper.php
+++ b/libraries/vendor_jcb/VDM.Joomla/src/Utilities/ClassHelper.php
@@ -2,7 +2,7 @@
/**
* @package Joomla.Component.Builder
*
- * @created 3rd September, 2020
+ * @created 4th September, 2020
* @author Llewellyn van der Merwe
* @git Joomla Component Builder
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
diff --git a/libraries/vendor_jcb/VDM.Joomla/src/Utilities/GetHelperExtrusion.php b/libraries/vendor_jcb/VDM.Joomla/src/Utilities/GetHelperExtrusion.php
index e607e39b5..e04fb8d61 100644
--- a/libraries/vendor_jcb/VDM.Joomla/src/Utilities/GetHelperExtrusion.php
+++ b/libraries/vendor_jcb/VDM.Joomla/src/Utilities/GetHelperExtrusion.php
@@ -2,7 +2,7 @@
/**
* @package Joomla.Component.Builder
*
- * @created 3rd September, 2020
+ * @created 4th September, 2020
* @author Llewellyn van der Merwe
* @git Joomla Component Builder
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
diff --git a/libraries/vendor_jcb/VDM.Joomla/src/Utilities/String/ComponentCodeNameHelper.php b/libraries/vendor_jcb/VDM.Joomla/src/Utilities/String/ComponentCodeNameHelper.php
index 538496ef6..e0b87ac75 100644
--- a/libraries/vendor_jcb/VDM.Joomla/src/Utilities/String/ComponentCodeNameHelper.php
+++ b/libraries/vendor_jcb/VDM.Joomla/src/Utilities/String/ComponentCodeNameHelper.php
@@ -2,7 +2,7 @@
/**
* @package Joomla.Component.Builder
*
- * @created 3rd September, 2020
+ * @created 4th September, 2020
* @author Llewellyn van der Merwe
* @git Joomla Component Builder
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.