mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
Implement Icinga\Web\Widget\SortBox::create()
This commit is contained in:
parent
57ed849cee
commit
e32eeb991e
@ -68,6 +68,20 @@ class SortBox extends AbstractWidget
|
|||||||
$this->sortFields = $sortFields;
|
$this->sortFields = $sortFields;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a SortBox with the entries from $sortFields
|
||||||
|
*
|
||||||
|
* @param string $name The name of the sort form
|
||||||
|
* @param array $sortFields An array containing the columns and their labels to be displayed
|
||||||
|
* in the sort select box
|
||||||
|
*
|
||||||
|
* @return static
|
||||||
|
*/
|
||||||
|
public static function create($name, array $sortFields)
|
||||||
|
{
|
||||||
|
return new static($name, $sortFields);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Apply the parameters from the given request on this SortBox
|
* Apply the parameters from the given request on this SortBox
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user