Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
rcube_message_header_sorter Class Reference

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.
 

Detailed Description

Class for sorting an array of rcube_message_header objects in a predetermined order.

@subpackage Storage

Member Function Documentation

◆ compare_uids()

rcube_message_header_sorter::compare_uids ( $a,
$b )

Sort method called by uksort()

Parameters
int$aArray key (UID)
int$bArray key (UID)

◆ set_index()

rcube_message_header_sorter::set_index ( $index)

Set the predetermined sort order.

Parameters
array$indexNumerically indexed array of IMAP UIDs

◆ sort_headers()

rcube_message_header_sorter::sort_headers ( & $headers)

Sort the array of header objects.

Parameters
array$headersArray of rcube_message_header objects indexed by UID

The documentation for this class was generated from the following file: