Skip to content

Commit

Permalink
Implement Icinga\Web\Widget\SortBox::create()
Browse files Browse the repository at this point in the history
  • Loading branch information
Al2Klimov committed Apr 7, 2015
1 parent 57ed849 commit e32eeb9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions library/Icinga/Web/Widget/SortBox.php
Expand Up @@ -68,6 +68,20 @@ public function __construct($name, array $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
*
Expand Down

0 comments on commit e32eeb9

Please sign in to comment.