Implement Icinga\Web\Widget\SortBox::create()

This commit is contained in:
Alexander Klimov 2015-04-07 11:32:09 +02:00
parent 57ed849cee
commit e32eeb991e
1 changed files with 14 additions and 0 deletions

View File

@ -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
*