24 lines
514 B
PHP
24 lines
514 B
PHP
<?php
|
|
|
|
namespace Komponent\Component\Testquestions\Administrator\Table;
|
|
|
|
defined('_JEXEC') or die;
|
|
|
|
use Joomla\CMS\Table\Table;
|
|
use Joomla\Database\DatabaseDriver;
|
|
|
|
class SetTable extends Table
|
|
{
|
|
public function __construct(DatabaseDriver $db)
|
|
{
|
|
parent::__construct('#__testquestions_sets', 'id', $db);
|
|
}
|
|
|
|
public function check($updateNulls = false): bool
|
|
{
|
|
$this->title = trim((string) $this->title);
|
|
|
|
return $this->title !== '' && parent::check($updateNulls);
|
|
}
|
|
}
|