Upgrade to Version 5.0.13 Was Successful! Let us know if anything is not working as expected.
';
+
Upgrade to Version 5.0.14 Was Successful! Let us know if anything is not working as expected.
';
// Add/Update component in the action logs extensions table.
$this->setActionLogsExtensions();
@@ -1820,6 +1827,35 @@ class Com_GetbibleInstallerScript implements InstallerScriptInterface
}
}
+ /**
+ * Ensures that a class in the namespace is available.
+ * If the class is not already loaded, it attempts to load it via the specified autoloader.
+ *
+ * @param string $className The fully qualified name of the class to check.
+ *
+ * @return bool True if the class exists or was successfully loaded, false otherwise.
+ * @since 4.0.1
+ */
+ protected function classExists(string $className): bool
+ {
+ if (!class_exists($className, true))
+ {
+ // The power autoloader for this project (JPATH_ADMINISTRATOR) area.
+ $power_autoloader = JPATH_ADMINISTRATOR . '/components/com_getbible/src/Helper/PowerloaderHelper.php';
+ if (file_exists($power_autoloader))
+ {
+ require_once $power_autoloader;
+ }
+
+ // Check again if the class now exists after requiring the autoloader
+ if (!class_exists($className, true))
+ {
+ return false;
+ }
+ }
+ return true;
+ }
+
/**
* Define the required limits with specific messages for success and warning scenarios
*
@@ -1926,66 +1962,6 @@ class Com_GetbibleInstallerScript implements InstallerScriptInterface
$app->enqueueMessage('To optimize your Get Bible environment, specific PHP settings must be enhanced. These settings are crucial for ensuring the successful installation and stable functionality of the extension. We\'ve identified that certain configurations currently do not meet the recommended standards. To adjust these settings and prevent potential issues, please consult our detailed guide available at Get Bible PHP Settings Wiki.
', 'notice');
}
- }
-
- /**
- * Make sure that the getbible database schema is up to date.
- *
- * @return void
- * @since 3.0.8
- */
- protected function databaseSchemaCheck($app): void
- {
- // try to load the schema class
- try
- {
- // make sure the class is loaded
- $this->ensureClassExists(
- Schema::class
- );
-
- // instantiate the schema class and check/update the database
- $messages = (new Schema())->update();
- }
- catch (\Exception $e)
- {
- $app->enqueueMessage($e->getMessage(), 'warning');
- return;
- }
-
- foreach ($messages as $message)
- {
- $app->enqueueMessage($message, 'message');
- }
- }
-
- /**
- * Ensures that a class in the namespace is available.
- * If the class is not already loaded, it attempts to load it via the power autoloader.
- *
- * @param mixed $nameClass The name::class we are looking for.
- *
- * @return void
- * @since 3.0.8
- * @throws \Exception If the class could not be loaded.
- */
- protected function ensureClassExists($nameClass): void
- {
- if (!class_exists($nameClass, true))
- {
- // The power autoloader for this project admin area.
- $power_autoloader = JPATH_ADMINISTRATOR . '/components/com_getbible/src/Helper/PowerloaderHelper.php';
- if (file_exists($power_autoloader))
- {
- require_once $power_autoloader;
- }
-
- // Check again if the class now exists after requiring it
- if (!class_exists($nameClass, true))
- {
- throw new \Exception("We failed to find/load the $nameClass");
- }
- }
}
/**
diff --git a/README.md b/README.md
index 45c406c..30b8c4b 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# Get Bible (5.0.13)
+# Get Bible (5.0.14)
![Get Bible image](https://git.vdm.dev/getBible/joomla-component/raw/branch/5.0/admin/assets/images/vdm-component.jpg "GetBible")
@@ -18,38 +18,38 @@ In essence, The Bible for Joomla is designed to transform how the Word of God is
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Get Bible](https://getbible.net)
+ *First Build*: 3rd December, 2015
-+ *Last Build*: 29th April, 2024
-+ *Version*: 5.0.13
++ *Last Build*: 15th July, 2024
++ *Version*: 5.0.14
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
## Build Time
-**595 Hours** or **74 Eight Hour Days** (actual time the author saved -
+**642 Hours** or **80 Eight Hour Days** (actual time the author saved -
due to [Automated Component Builder](https://www.joomlacomponentbuilder.com))
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
> never making one mistake or taking any coffee break.)
-+ *Line count*: **213109**
-+ *File count*: **1749**
-+ *Folder count*: **189**
++ *Line count*: **230106**
++ *File count*: **1904**
++ *Folder count*: **193**
-**392 Hours** or **49 Eight Hour Days** (the actual time the author spent)
+**424 Hours** or **53 Eight Hour Days** (the actual time the author spent)
> (with the following break down:
-> **debugging @149hours** = codingtime / 4;
-> **planning @85hours** = codingtime / 7;
-> **mapping @59hours** = codingtime / 10;
-> **office @99hours** = codingtime / 6;)
+> **debugging @161hours** = codingtime / 4;
+> **planning @92hours** = codingtime / 7;
+> **mapping @64hours** = codingtime / 10;
+> **office @107hours** = codingtime / 6;)
-**987 Hours** or **123 Eight Hour Days**
+**1066 Hours** or **133 Eight Hour Days**
(a total of the realistic time frame for this project)
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
> with the normal everyday realities at the office, that includes the component planning, mapping & debugging.)
-Project duration: **24.6 weeks** or **5.1 months**
+Project duration: **26.6 weeks** or **5.5 months**
> This **component** was build with a Joomla [Automated Component Builder](https://www.joomlacomponentbuilder.com).
> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)
diff --git a/admin/README.txt b/admin/README.txt
index 45c406c..30b8c4b 100644
--- a/admin/README.txt
+++ b/admin/README.txt
@@ -1,4 +1,4 @@
-# Get Bible (5.0.13)
+# Get Bible (5.0.14)
![Get Bible image](https://git.vdm.dev/getBible/joomla-component/raw/branch/5.0/admin/assets/images/vdm-component.jpg "GetBible")
@@ -18,38 +18,38 @@ In essence, The Bible for Joomla is designed to transform how the Word of God is
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Get Bible](https://getbible.net)
+ *First Build*: 3rd December, 2015
-+ *Last Build*: 29th April, 2024
-+ *Version*: 5.0.13
++ *Last Build*: 15th July, 2024
++ *Version*: 5.0.14
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
## Build Time
-**595 Hours** or **74 Eight Hour Days** (actual time the author saved -
+**642 Hours** or **80 Eight Hour Days** (actual time the author saved -
due to [Automated Component Builder](https://www.joomlacomponentbuilder.com))
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
> never making one mistake or taking any coffee break.)
-+ *Line count*: **213109**
-+ *File count*: **1749**
-+ *Folder count*: **189**
++ *Line count*: **230106**
++ *File count*: **1904**
++ *Folder count*: **193**
-**392 Hours** or **49 Eight Hour Days** (the actual time the author spent)
+**424 Hours** or **53 Eight Hour Days** (the actual time the author spent)
> (with the following break down:
-> **debugging @149hours** = codingtime / 4;
-> **planning @85hours** = codingtime / 7;
-> **mapping @59hours** = codingtime / 10;
-> **office @99hours** = codingtime / 6;)
+> **debugging @161hours** = codingtime / 4;
+> **planning @92hours** = codingtime / 7;
+> **mapping @64hours** = codingtime / 10;
+> **office @107hours** = codingtime / 6;)
-**987 Hours** or **123 Eight Hour Days**
+**1066 Hours** or **133 Eight Hour Days**
(a total of the realistic time frame for this project)
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
> with the normal everyday realities at the office, that includes the component planning, mapping & debugging.)
-Project duration: **24.6 weeks** or **5.1 months**
+Project duration: **26.6 weeks** or **5.5 months**
> This **component** was build with a Joomla [Automated Component Builder](https://www.joomlacomponentbuilder.com).
> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)
diff --git a/admin/config.xml b/admin/config.xml
index 339800e..1f9bda9 100644
--- a/admin/config.xml
+++ b/admin/config.xml
@@ -1,8 +1,8 @@