Component Builder (v.4.0.0)
+ Component Builder (v.4.0.1-alpha1)
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 076c40013..5c289872d 100644
--- a/componentbuilder_update_server.xml
+++ b/componentbuilder_update_server.xml
@@ -35,4 +35,22 @@
https://dev.vdm.io
+
+ Component Builder
+ Builds Complex Joomla Components
+ pkg_component_builder
+ package
+ site
+ 4.0.1-alpha1
+ https://dev.vdm.io
+
+ https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v4.0.1-alpha1.zip
+
+
+ alpha
+
+ Llewellyn van der Merwe
+ https://dev.vdm.io
+
+
\ No newline at end of file
diff --git a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Extrusion/Helper/Builder.php b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Extrusion/Helper/Builder.php
index 8feee75ac..2fa97eea0 100644
--- a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Extrusion/Helper/Builder.php
+++ b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Extrusion/Helper/Builder.php
@@ -109,6 +109,49 @@ class Builder extends Mapping
$object->created = $this->today;
$object->created_by = $this->user->id;
$object->published = 1;
+ // empty values for sql sake
+ $object->addlinked_views = '';
+ $object->addtables = '';
+ $object->addtabs = '';
+ $object->ajax_input = '';
+ $object->css_view = '';
+ $object->css_views = '';
+ $object->custom_button = '';
+ $object->html_import_view = '';
+ $object->javascript_view_file = '';
+ $object->javascript_view_footer = '';
+ $object->javascript_views_file = '';
+ $object->javascript_views_footer = '';
+ $object->php_after_cancel = '';
+ $object->php_after_delete = '';
+ $object->php_after_publish = '';
+ $object->php_ajaxmethod = '';
+ $object->php_allowadd = '';
+ $object->php_allowedit = '';
+ $object->php_batchcopy = '';
+ $object->php_batchmove = '';
+ $object->php_before_cancel = '';
+ $object->php_before_delete = '';
+ $object->php_before_publish = '';
+ $object->php_before_save = '';
+ $object->php_controller = '';
+ $object->php_controller_list = '';
+ $object->php_document = '';
+ $object->php_getform = '';
+ $object->php_getitem = '';
+ $object->php_getitems = '';
+ $object->php_getitems_after_all = '';
+ $object->php_getlistquery = '';
+ $object->php_import = '';
+ $object->php_import_display = '';
+ $object->php_import_ext = '';
+ $object->php_import_headers = '';
+ $object->php_import_save = '';
+ $object->php_import_setdata = '';
+ $object->php_model = '';
+ $object->php_model_list = '';
+ $object->php_postsavehook = '';
+ $object->php_save = '';
// add to data base
if ($this->db->insertObject('#__componentbuilder_admin_view', $object))
{
@@ -202,6 +245,15 @@ class Builder extends Mapping
$object->published = 1;
$object->store = 0;
$object->xml = $this->setFieldXML($field, $fieldType);
+ // empty values for sql sake
+ $object->css_view = '';
+ $object->css_views = '';
+ $object->initiator_on_get_model = '';
+ $object->initiator_on_save_model = '';
+ $object->on_get_model_field = '';
+ $object->on_save_model_field = '';
+ $object->javascript_view_footer = '';
+ $object->javascript_views_footer = '';
// add to data base
if ($this->db->insertObject('#__componentbuilder_field', $object))
{
diff --git a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Extrusion/Helper/Mapping.php b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Extrusion/Helper/Mapping.php
index 9729d533c..d9cc09abd 100644
--- a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Extrusion/Helper/Mapping.php
+++ b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Extrusion/Helper/Mapping.php
@@ -246,6 +246,16 @@ class Mapping
// get table name
$tableName = GetHelper::between($sql, "'#__", "'");
}
+ elseif (strpos($sql, "CREATE TABLE `") !== false)
+ {
+ // get table name
+ $tableName = GetHelper::between($sql, "CREATE TABLE `", "`");
+ }
+ elseif (strpos($sql, "CREATE TABLE IF NOT EXISTS `") !== false)
+ {
+ // get table name
+ $tableName = GetHelper::between($sql, "CREATE TABLE IF NOT EXISTS `", "`");
+ }
// if it still was not found
if (!isset($tableName) || !StringHelper::check($tableName))