Stable release of v5.0.1

First stable back-end and front-end release towards Joomla 4 and 5.
This commit is contained in:
Robot 2024-01-29 09:31:35 +02:00
parent ea867eba76
commit 136fcd0fc2
Signed by: Robot
GPG Key ID: 14DECD44E7E1BB95
426 changed files with 4209 additions and 3636 deletions

View File

@ -1,3 +1,15 @@
# v5.0.1
- First stable back-end and front-end release towards Joomla 4 and 5
# v5.0.0
- Moved to Joomla 4 and 5
- Moved to Joomla 4 and 5
# v3.0.2
- More namespace updates.
# v3.0.1
- Fix missing use statement in app model.

View File

@ -125,7 +125,7 @@ class Com_GetbibleInstallerScript implements InstallerScriptInterface
{
$this->minimumJoomla = '4.3';
$this->minimumPhp = JOOMLA_MINIMUM_PHP;
$this->app = Factory::getApplication();
$this->app ??= Factory::getApplication();
$this->db = Factory::getContainer()->get(DatabaseInterface::class);
// check if the files exist
@ -755,7 +755,7 @@ class Com_GetbibleInstallerScript implements InstallerScriptInterface
echo '<div style="background-color: #fff;" class="alert alert-info"><a target="_blank" href="https://getbible.net" title="Get Bible">
<img src="components/com_getbible/assets/images/vdm-component.jpg"/>
</a>
<h3>Upgrade to Version 5.0.0 Was Successful! Let us know if anything is not working as expected.</h3></div>';
<h3>Upgrade to Version 5.0.1 Was Successful! Let us know if anything is not working as expected.</h3></div>';
// Add/Update component in the action logs extensions table.
$this->setActionLogsExtensions();

View File

@ -1,4 +1,4 @@
# Get Bible (5.0.0)
# Get Bible (5.0.1)
![Get Bible image](https://git.vdm.dev/getBible/joomla-component/raw/branch/5.0/admin/assets/images/vdm-component.jpg "GetBible")
@ -18,32 +18,32 @@ 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*: 23rd January, 2024
+ *Version*: 5.0.0
+ *Last Build*: 29th January, 2024
+ *Version*: 5.0.1
+ *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
**558 Hours** or **70 Eight Hour Days** (actual time the author saved -
**560 Hours** or **70 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*: **199899**
+ *File count*: **1710**
+ *Folder count*: **176**
+ *Line count*: **200550**
+ *File count*: **1683**
+ *Folder count*: **174**
**368 Hours** or **46 Eight Hour Days** (the actual time the author spent)
**369 Hours** or **46 Eight Hour Days** (the actual time the author spent)
> (with the following break down:
> **debugging @139hours** = codingtime / 4;
> **debugging @140hours** = codingtime / 4;
> **planning @80hours** = codingtime / 7;
> **mapping @56hours** = codingtime / 10;
> **office @93hours** = codingtime / 6;)
**926 Hours** or **116 Eight Hour Days**
**929 Hours** or **116 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**,

View File

@ -1,4 +1,4 @@
# Get Bible (5.0.0)
# Get Bible (5.0.1)
![Get Bible image](https://git.vdm.dev/getBible/joomla-component/raw/branch/5.0/admin/assets/images/vdm-component.jpg "GetBible")
@ -18,32 +18,32 @@ 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*: 23rd January, 2024
+ *Version*: 5.0.0
+ *Last Build*: 29th January, 2024
+ *Version*: 5.0.1
+ *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
**558 Hours** or **70 Eight Hour Days** (actual time the author saved -
**560 Hours** or **70 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*: **199899**
+ *File count*: **1710**
+ *Folder count*: **176**
+ *Line count*: **200550**
+ *File count*: **1683**
+ *Folder count*: **174**
**368 Hours** or **46 Eight Hour Days** (the actual time the author spent)
**369 Hours** or **46 Eight Hour Days** (the actual time the author spent)
> (with the following break down:
> **debugging @139hours** = codingtime / 4;
> **debugging @140hours** = codingtime / 4;
> **planning @80hours** = codingtime / 7;
> **mapping @56hours** = codingtime / 10;
> **office @93hours** = codingtime / 6;)
**926 Hours** or **116 Eight Hour Days**
**929 Hours** or **116 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**,

View File

@ -103,9 +103,6 @@ COM_GETBIBLE_LINKERS_EDIT_STATE_DESC="Allows the users in this group to update t
COM_GETBIBLE_LINKERS_SUBMENU="Linkers Submenu"
COM_GETBIBLE_LINKERS_SUBMENU_DESC="Allows the users in this group to submenu of linker"
COM_GETBIBLE_MENU="Get Bible"
COM_GETBIBLE_MENU_API_DESC="Api"
COM_GETBIBLE_MENU_API_OPTION="Api"
COM_GETBIBLE_MENU_API_TITLE="Api"
COM_GETBIBLE_MENU_APP_DESC="App"
COM_GETBIBLE_MENU_APP_OPTION="App"
COM_GETBIBLE_MENU_APP_TITLE="App"

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -15,9 +15,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper as Html;
@ -25,6 +22,9 @@ use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
use VDM\Joomla\Utilities\StringHelper;
use VDM\Joomla\Utilities\ArrayHelper;
// No direct access to this file
defined('_JEXEC') or die;
// set the defaults
$items = $displayData->vvwnotes;
$user = Factory::getApplication()->getIdentity();

View File

@ -15,9 +15,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper as Html;
@ -25,6 +22,9 @@ use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
use VDM\Joomla\Utilities\StringHelper;
use VDM\Joomla\Utilities\ArrayHelper;
// No direct access to this file
defined('_JEXEC') or die;
// set the defaults
$items = $displayData->vvxpasswords;
$user = Factory::getApplication()->getIdentity();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -15,9 +15,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper as Html;
@ -25,6 +22,9 @@ use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
use VDM\Joomla\Utilities\StringHelper;
use VDM\Joomla\Utilities\ArrayHelper;
// No direct access to this file
defined('_JEXEC') or die;
// set the defaults
$items = $displayData->vvvtags;
$user = Factory::getApplication()->getIdentity();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -15,9 +15,6 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper as Html;
@ -25,6 +22,9 @@ use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
use VDM\Joomla\Utilities\StringHelper;
use VDM\Joomla\Utilities\ArrayHelper;
// No direct access to this file
defined('_JEXEC') or die;
// set the defaults
$items = $displayData->vvymessage;
$user = Factory::getApplication()->getIdentity();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -15,8 +15,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('JPATH_BASE') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
@ -25,6 +24,9 @@ use Joomla\CMS\Layout\LayoutHelper;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
use VDM\Joomla\Utilities\Component\Helper;
// No direct access to this file
defined('JPATH_BASE') or die;
// get the form
$form = $displayData->getForm();

View File

@ -15,8 +15,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('JPATH_BASE') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
@ -25,6 +24,9 @@ use Joomla\CMS\Layout\LayoutHelper;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
use VDM\Joomla\Utilities\Component\Helper;
// No direct access to this file
defined('JPATH_BASE') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -15,8 +15,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('JPATH_BASE') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
@ -24,6 +23,9 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
use Joomla\CMS\Layout\LayoutHelper;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
defined('JPATH_BASE') or die;
?>

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();

View File

@ -15,8 +15,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
\defined('_JEXEC') or die;
// register additional namespace
\spl_autoload_register(function ($class) {
@ -80,6 +79,9 @@ use TrueChristianChurch\Component\Getbible\Administrator\Extension\GetbibleCompo
use Joomla\DI\Container;
use Joomla\DI\ServiceProviderInterface;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* The TrueChristianChurch Getbible service provider.
*

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Application\CMSApplication;
use Joomla\CMS\MVC\Controller\BaseController;
@ -27,6 +24,9 @@ use Joomla\CMS\Session\Session;
use Joomla\Input\Input;
use Joomla\Utilities\ArrayHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Getbible Ajax Base Controller
*/
@ -65,8 +65,8 @@ class AjaxController extends BaseController
$user = $this->app->getIdentity();
// get the input values
$jinput = $this->input ?? $this->app->input;
// check if we should return raw
$returnRaw = $jinput->get('raw', false, 'BOOLEAN');
// check if we should return raw (DEFAULT TRUE SINCE J4)
$returnRaw = $jinput->get('raw', true, 'BOOLEAN');
// return to a callback function
$callback = $jinput->get('callback', null, 'CMD');
// Check Token!
@ -91,12 +91,12 @@ class AjaxController extends BaseController
}
else
{
$result = false;
$result = ['error' => 'There was an error! [149]'];
}
}
else
{
$result = false;
$result = ['error' => 'There was an error! [149]'];
}
if($callback)
{
@ -111,7 +111,7 @@ class AjaxController extends BaseController
echo "(".json_encode($result).");";
}
}
catch(Exception $e)
catch(\Exception $e)
{
if($callback)
{
@ -140,12 +140,12 @@ class AjaxController extends BaseController
}
else
{
$result = false;
$result = ['error' => 'There was an error! [149]'];
}
}
else
{
$result = false;
$result = ['error' => 'There was an error! [149]'];
}
if($callback)
{
@ -160,7 +160,7 @@ class AjaxController extends BaseController
echo "(".json_encode($result).");";
}
}
catch(Exception $e)
catch(\Exception $e)
{
if($callback)
{
@ -189,12 +189,12 @@ class AjaxController extends BaseController
}
else
{
$result = false;
$result = ['error' => 'There was an error! [149]'];
}
}
else
{
$result = false;
$result = ['error' => 'There was an error! [149]'];
}
if($callback)
{
@ -209,7 +209,7 @@ class AjaxController extends BaseController
echo "(".json_encode($result).");";
}
}
catch(Exception $e)
catch(\Exception $e)
{
if($callback)
{
@ -238,12 +238,12 @@ class AjaxController extends BaseController
}
else
{
$result = false;
$result = ['error' => 'There was an error! [149]'];
}
}
else
{
$result = false;
$result = ['error' => 'There was an error! [149]'];
}
if($callback)
{
@ -258,7 +258,7 @@ class AjaxController extends BaseController
echo "(".json_encode($result).");";
}
}
catch(Exception $e)
catch(\Exception $e)
{
if($callback)
{
@ -281,15 +281,15 @@ class AjaxController extends BaseController
// return to a callback function
if($callback)
{
echo $callback."(".json_encode(false).");";
echo $callback."(".json_encode(['error' => 'There was an error! [129]']).");";
}
elseif($returnRaw)
{
echo json_encode(false);
echo json_encode(['error' => 'There was an error! [129]']);
}
else
{
echo "(".json_encode(false).");";
echo "(".json_encode(['error' => 'There was an error! [129]']).");";
}
}
}

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Form\FormFactoryInterface;
@ -34,6 +31,9 @@ use Joomla\CMS\Session\Session;
use Joomla\CMS\Uri\Uri;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Book Form Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Controller\AdminController;
@ -29,6 +26,9 @@ use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
use VDM\Joomla\Utilities\ArrayHelper as UtilitiesArrayHelper;
use VDM\Joomla\GetBible\Factory as GetBibleFactory;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Books Admin Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Form\FormFactoryInterface;
@ -34,6 +31,9 @@ use Joomla\CMS\Session\Session;
use Joomla\CMS\Uri\Uri;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Chapter Form Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Controller\AdminController;
@ -27,6 +24,9 @@ use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Chapters Admin Controller
*/

View File

@ -16,14 +16,14 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\MVC\Controller\BaseController;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Getbible master admin display controller.
*

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Controller\AdminController;
@ -27,6 +24,9 @@ use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Getbible Admin Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Form\FormFactoryInterface;
@ -34,6 +31,9 @@ use Joomla\CMS\Session\Session;
use Joomla\CMS\Uri\Uri;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Linker Form Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Controller\AdminController;
@ -27,6 +24,9 @@ use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Linkers Admin Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Form\FormFactoryInterface;
@ -34,6 +31,9 @@ use Joomla\CMS\Session\Session;
use Joomla\CMS\Uri\Uri;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Note Form Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Controller\AdminController;
@ -27,6 +24,9 @@ use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Notes Admin Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Form\FormFactoryInterface;
@ -34,6 +31,9 @@ use Joomla\CMS\Session\Session;
use Joomla\CMS\Uri\Uri;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Open_ai_message Form Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Controller\AdminController;
@ -27,6 +24,9 @@ use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Open_ai_messages Admin Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Form\FormFactoryInterface;
@ -34,6 +31,9 @@ use Joomla\CMS\Session\Session;
use Joomla\CMS\Uri\Uri;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Open_ai_response Form Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Controller\AdminController;
@ -27,6 +24,9 @@ use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Open_ai_responses Admin Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Form\FormFactoryInterface;
@ -34,6 +31,9 @@ use Joomla\CMS\Session\Session;
use Joomla\CMS\Uri\Uri;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Password Form Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Controller\AdminController;
@ -27,6 +24,9 @@ use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Passwords Admin Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Form\FormFactoryInterface;
@ -34,6 +31,9 @@ use Joomla\CMS\Session\Session;
use Joomla\CMS\Uri\Uri;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Prompt Form Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Controller\AdminController;
@ -27,6 +24,9 @@ use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Prompts Admin Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Form\FormFactoryInterface;
@ -34,6 +31,9 @@ use Joomla\CMS\Session\Session;
use Joomla\CMS\Uri\Uri;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Tag Form Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Form\FormFactoryInterface;
@ -34,6 +31,9 @@ use Joomla\CMS\Session\Session;
use Joomla\CMS\Uri\Uri;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Tagged_verse Form Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Controller\AdminController;
@ -27,6 +24,9 @@ use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Tagged_verses Admin Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Controller\AdminController;
@ -27,6 +24,9 @@ use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Tags Admin Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Form\FormFactoryInterface;
@ -34,6 +31,9 @@ use Joomla\CMS\Session\Session;
use Joomla\CMS\Uri\Uri;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Translation Form Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Controller\AdminController;
@ -29,6 +26,9 @@ use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
use VDM\Joomla\GetBible\Factory as GetBibleFactory;
use VDM\Joomla\Utilities\ArrayHelper as UtilitiesArrayHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Translations Admin Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Form\FormFactoryInterface;
@ -34,6 +31,9 @@ use Joomla\CMS\Session\Session;
use Joomla\CMS\Uri\Uri;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Verse Form Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Controller;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Controller\AdminController;
@ -27,6 +24,9 @@ use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Verses Admin Controller
*/

View File

@ -16,9 +16,6 @@
/------------------------------------------------------------------------------------------------------*/
namespace TrueChristianChurch\Component\Getbible\Administrator\Extension;
// No direct access to this file
\defined('_JEXEC') or die;
use Joomla\CMS\Association\AssociationServiceInterface;
use Joomla\CMS\Association\AssociationServiceTrait;
use Joomla\CMS\Categories\CategoryServiceInterface;
@ -38,6 +35,9 @@ use Joomla\CMS\User\UserFactoryInterface;
// (soon) use TrueChristianChurch\Component\Getbible\Administrator\Service\HTML\AdministratorService;
use Psr\Container\ContainerInterface;
// No direct access to this file
\defined('_JEXEC') or die;
/**
* Component class for com_getbible
*

Some files were not shown because too many files have changed in this diff Show More