mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-27 04:04:49 +01:00
LSattr_html_select_list :: _sort() : make really static
This commit is contained in:
parent
b577fe23a9
commit
9f858c6f0f
1 changed files with 2 additions and 3 deletions
|
@ -177,12 +177,11 @@ class LSattr_html_select_list extends LSattr_html{
|
||||||
* Apply sort feature on possible values if this feature is enabled
|
* Apply sort feature on possible values if this feature is enabled
|
||||||
*
|
*
|
||||||
* @param[in] &$retInfos array Possible values array reference to sort
|
* @param[in] &$retInfos array Possible values array reference to sort
|
||||||
* @param[in] $options array|false Attribute options (optional)
|
* @param[in] $options array|false Attribute options
|
||||||
*
|
*
|
||||||
* @retval void
|
* @retval void
|
||||||
**/
|
**/
|
||||||
protected function _sort(&$retInfos,$options=false) {
|
protected static function _sort(&$retInfos, $options) {
|
||||||
if (!$options) $options=$this -> config['html_options'];
|
|
||||||
if (!isset($options['sort']) || $options['sort']) {
|
if (!isset($options['sort']) || $options['sort']) {
|
||||||
if (isset($options['sortDirection']) && $options['sortDirection']=='DESC') {
|
if (isset($options['sortDirection']) && $options['sortDirection']=='DESC') {
|
||||||
uasort($retInfos,array('LSattr_html_select_list','_sortTwoValuesDesc'));
|
uasort($retInfos,array('LSattr_html_select_list','_sortTwoValuesDesc'));
|
||||||
|
|
Loading…
Reference in a new issue