Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/zenit/libraries/src/MVC/Model/ |
Upload File : |
<?php
/**
* Joomla! Content Management System
*
* @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS\MVC\Model;
\defined('JPATH_PLATFORM') or die;
use Joomla\Database\DatabaseInterface;
/**
* Database aware trait.
*
* @since 4.0.0
*/
trait DatabaseAwareTrait
{
/**
* The database driver.
*
* @var DatabaseInterface
* @since 4.0.0
*/
protected $_db;
/**
* Get the database driver.
*
* @return DatabaseInterface The database driver.
*
* @since 4.0.0
* @throws \UnexpectedValueException
*/
public function getDbo()
{
if ($this->_db)
{
return $this->_db;
}
throw new \UnexpectedValueException('Database driver not set in ' . __CLASS__);
}
/**
* Set the database driver.
*
* @param DatabaseInterface $db The database driver.
*
* @return void
*
* @since 4.0.0
*/
public function setDbo(DatabaseInterface $db = null)
{
$this->_db = $db;
}
}