[TASK] Make arguments "where" + "orderBy" optional

This commit is contained in:
Philipp Dieter 2021-06-30 23:56:50 +02:00
parent e431b9f04b
commit e10fb0bbd7

View File

@ -6,7 +6,7 @@ use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Database\Connection;
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
class DbTableViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper {
class DbTableViewHelper extends \TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper {
/**
* As this ViewHelper renders HTML, the output must not be escaped.
@ -22,8 +22,8 @@ class DbTableViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHel
parent::initializeArguments();
$this->registerArgument('table', 'string', '', true);
$this->registerArgument('fields', 'array', '', true, ['*']);
$this->registerArgument('where', 'array', '', true);
$this->registerArgument('orderBy', 'array', '', true);
$this->registerArgument('where', 'array', '', false);
$this->registerArgument('orderBy', 'array', '', false);
}
/**