diff options
author | thomascube <thomas@roundcube.net> | 2012-02-11 11:38:46 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2012-02-11 11:38:46 +0000 |
commit | ba36dd03f6f7005a6e35ec02e4ff9a58f95be1c3 (patch) | |
tree | 002d0183144bb7adcf757144c035f0f8d0eba649 /program/include/rcube_ldap.php | |
parent | 5ea6e16036aa18c57c709dc88e4255120b63e965 (diff) |
Backported r5850 to 0.7 branch
Diffstat (limited to 'program/include/rcube_ldap.php')
-rw-r--r-- | program/include/rcube_ldap.php | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/program/include/rcube_ldap.php b/program/include/rcube_ldap.php index 978c4e7e4..b82e17502 100644 --- a/program/include/rcube_ldap.php +++ b/program/include/rcube_ldap.php @@ -35,8 +35,6 @@ class rcube_ldap extends rcube_addressbook public $readonly = true; public $ready = false; public $group_id = 0; - public $list_page = 1; - public $page_size = 10; public $coltypes = array(); /** private properties */ @@ -47,7 +45,6 @@ class rcube_ldap extends rcube_addressbook protected $filter = ''; protected $result = null; protected $ldap_result = null; - protected $sort_col = ''; protected $mail_domain = ''; protected $debug = false; @@ -413,24 +410,15 @@ class rcube_ldap extends rcube_addressbook /** - * Set internal list page + * Set internal sort settings * - * @param number $page Page number to list + * @param string $sort_col Sort column + * @param string $sort_order Sort order */ - function set_page($page) + function set_sort_order($sort_col, $sort_order = null) { - $this->list_page = (int)$page; - } - - - /** - * Set internal page size - * - * @param number $size Number of messages to display on one page - */ - function set_pagesize($size) - { - $this->page_size = (int)$size; + if ($this->fieldmap[$sort_col]) + $this->sort_col = $this->fieldmap[$sort_col]; } |