| Current Path : /home/jeromecohp/www/administrator/components/com_conditions/src/Table/ |
| Current File : /home/jeromecohp/www/administrator/components/com_conditions/src/Table/GroupTable.php |
<?php
/**
* @package Conditions
* @version 25.1.10755
*
* @author Peter van Westen <info@regularlabs.com>
* @link https://regularlabs.com
* @copyright Copyright © 2025 Regular Labs All Rights Reserved
* @license GNU General Public License version 2 or later
*/
namespace RegularLabs\Component\Conditions\Administrator\Table;
use Exception;
use Joomla\CMS\Table\Table;
use Joomla\Database\DatabaseDriver;
defined('_JEXEC') or die;
class GroupTable extends Table
{
public function __construct(DatabaseDriver $db)
{
parent::__construct('#__conditions_groups', 'id', $db);
}
public function check(): bool
{
try
{
parent::check();
}
catch (Exception $e)
{
$this->setError($e->getMessage());
return false;
}
$this->condition_id = (int) $this->condition_id;
return true;
}
}