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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue