Skip to content

Commit

Permalink
Namespace tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Babker committed Apr 14, 2019
1 parent 536033f commit ab94577
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
Expand Up @@ -7,8 +7,14 @@
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

namespace Joomla\Component\Privacy\Administrator\Table;

defined('_JEXEC') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\Table\Table;
use Joomla\Database\DatabaseDriver;

/**
* Table interface class for the #__privacy_consents table
*
Expand All @@ -19,16 +25,16 @@
*
* @since 3.9.0
*/
class PrivacyTableConsent extends JTable
class ConsentTable extends Table
{
/**
* The class constructor.
*
* @param JDatabaseDriver $db JDatabaseDriver connector object.
* @param DatabaseDriver $db DatabaseInterface connector object.
*
* @since 3.9.0
*/
public function __construct(JDatabaseDriver $db)
public function __construct(DatabaseDriver $db)
{
parent::__construct('#__privacy_consents', 'id', $db);
}
Expand All @@ -44,7 +50,7 @@ public function __construct(JDatabaseDriver $db)
*/
public function store($updateNulls = false)
{
$date = JFactory::getDate();
$date = Factory::getDate();

// Set default values for new records
if (!$this->id)
Expand Down
Expand Up @@ -7,8 +7,14 @@
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

namespace Joomla\Component\Privacy\Administrator\Table;

defined('_JEXEC') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\Table\Table;
use Joomla\Database\DatabaseDriver;

/**
* Table interface class for the #__privacy_requests table
*
Expand All @@ -22,16 +28,16 @@
*
* @since 3.9.0
*/
class PrivacyTableRequest extends JTable
class RequestTable extends Table
{
/**
* The class constructor.
*
* @param JDatabaseDriver $db JDatabaseDriver connector object.
* @param DatabaseDriver $db DatabaseDriver connector object.
*
* @since 3.9.0
*/
public function __construct(JDatabaseDriver $db)
public function __construct(DatabaseDriver $db)
{
parent::__construct('#__privacy_requests', 'id', $db);
}
Expand All @@ -47,7 +53,7 @@ public function __construct(JDatabaseDriver $db)
*/
public function store($updateNulls = false)
{
$date = JFactory::getDate();
$date = Factory::getDate();

// Set default values for new records
if (!$this->id)
Expand Down

0 comments on commit ab94577

Please sign in to comment.