Subversion Repositories oidplus

Rev

Rev 316 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 316 Rev 360
Line 25... Line 25...
25
 
25
 
26
        public function natOrder($fieldname, $order='asc'): string {
26
        public function natOrder($fieldname, $order='asc'): string {
27
 
27
 
28
                $order = strtolower($order);
28
                $order = strtolower($order);
29
                if (($order != 'asc') && ($order != 'desc')) {
29
                if (($order != 'asc') && ($order != 'desc')) {
30
                        throw new OIDplusException("Invalid order '$order' (needs to be 'asc' or 'desc')");
30
                        throw new OIDplusException(_L('Invalid order "%1" (needs to be "asc" or "desc")',$order));
31
                }
31
                }
32
 
32
 
33
                $out = array();
33
                $out = array();
34
 
34
 
35
                $max_arc_len = OIDplus::baseConfig()->getValue('LIMITS_MAX_OID_ARC_SIZE') > 65 ? 65 : OIDplus::baseConfig()->getValue('LIMITS_MAX_OID_ARC_SIZE'); // Limit of "decimal()" type
35
                $max_arc_len = OIDplus::baseConfig()->getValue('LIMITS_MAX_OID_ARC_SIZE') > 65 ? 65 : OIDplus::baseConfig()->getValue('LIMITS_MAX_OID_ARC_SIZE'); // Limit of "decimal()" type