$_collator
$_collator : \Collator
Collator object to use for sotring.
Client sorting methods for the Socket driver.
NOTE: This class is NOT intended to be accessed outside of a Base object. There is NO guarantees that the API of this class will not change across versions.
$_socket : \Horde_Imap_Client_Socket
Socket object.
__construct(\Horde_Imap_Client_Socket $socket)
Constructor.
\Horde_Imap_Client_Socket | $socket | Socket object. |
clientSort(\Horde_Imap_Client_Ids $res, array $opts) : array
Sort search results client side if the server does not support the SORT IMAP extension (RFC 5256).
\Horde_Imap_Client_Ids | $res | The search results. |
array | $opts | The options to _search(). |
The sort results.
threadOrderedSubject(\Horde_Imap_Client_Fetch_Results $data, boolean $uids) : array
If server does not support the THREAD IMAP extension (RFC 5256), do ORDEREDSUBJECT threading on the client side.
\Horde_Imap_Client_Fetch_Results | $data | Fetch results. |
boolean | $uids | Are IDs UIDs? |
The thread sort results.
_getSentDates(\Horde_Imap_Client_Fetch_Results $data, array $ids, boolean $internal = false) : array
Get the sent dates for purposes of SORT/THREAD sorting under RFC 5256 [2.2].
\Horde_Imap_Client_Fetch_Results | $data | Data returned from fetch() that includes both date and envelope items. |
array | $ids | The IDs to process. |
boolean | $internal | Only use internal date? |
A mapping of IDs -> UNIX timestamps.
_stableAsort( $a)
Stable asort() function.
PHP's asort() (BWT) is not a stable sort - identical values have no guarantee of key order. Use Schwartzian Transform instead. See: http://notmysock.org/blog/php/schwartzian-transform.html
$a |