Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
Class for sorting an array of rcube_message_header objects in a predetermined order. More...
Public Member Functions | |
compare_uids ($a, $b) | |
Sort method called by uksort() | |
set_index ($index) | |
Set the predetermined sort order. | |
sort_headers (&$headers) | |
Sort the array of header objects. | |
Class for sorting an array of rcube_message_header objects in a predetermined order.
@subpackage Storage
rcube_message_header_sorter::compare_uids | ( | $a, | |
$b ) |
Sort method called by uksort()
int | $a | Array key (UID) |
int | $b | Array key (UID) |
rcube_message_header_sorter::set_index | ( | $index | ) |
Set the predetermined sort order.
array | $index | Numerically indexed array of IMAP UIDs |
rcube_message_header_sorter::sort_headers | ( | & | $headers | ) |
Sort the array of header objects.
array | $headers | Array of rcube_message_header objects indexed by UID |