mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-16 04:57:15 +01:00
25 lines
605 B
PHP
25 lines
605 B
PHP
<?php
|
|
|
|
namespace Xentral\Modules\Api\Resource\Feature;
|
|
|
|
use Xentral\Modules\Api\Resource\Filter\Select\SortingFilter;
|
|
|
|
trait SortingFeatureTrait
|
|
{
|
|
/**
|
|
* Festlegen welche Sortierungen erlaubt sind
|
|
*
|
|
* @example $this->registerSortingParams([
|
|
* 'bezeichnung' => 'k.bezeichnung',
|
|
* 'projekt' => 'k.projekt',
|
|
* 'parent' => 'k.parent',
|
|
* ]);
|
|
*
|
|
* @param array $params
|
|
*/
|
|
protected function registerSortingParams(array $params)
|
|
{
|
|
$this->registerSelectFilter(new SortingFilter($params));
|
|
}
|
|
}
|