1: <?php
2: /**
3: * Copyright 2013-2014 Horde LLC (http://www.horde.org/)
4: *
5: * See the enclosed file COPYING for license information (GPL). If you
6: * did not receive this file, see http://www.horde.org/licenses/gpl.
7: *
8: * @category Horde
9: * @copyright 2013-2014 Horde LLC
10: * @license http://www.horde.org/licenses/gpl GPL
11: * @package IMP
12: */
13:
14: /**
15: * A fixed (read-only) implementation of the sortpref preference (arrival
16: * sort) that does no sorting on either mail server or web server.
17: *
18: * @author Michael Slusarz <slusarz@horde.org>
19: * @category Horde
20: * @copyright 2013-2014 Horde LLC
21: * @license http://www.horde.org/licenses/gpl GPL
22: * @package IMP
23: */
24: class IMP_Prefs_Sort_None extends IMP_Prefs_Sort
25: {
26: /**
27: * Constructor.
28: */
29: public function __construct()
30: {
31: }
32:
33: /**
34: * Garbage collection.
35: */
36: public function gc()
37: {
38: }
39:
40: /**
41: * Upgrade the preference from IMP 4 value.
42: */
43: public function upgradePrefs()
44: {
45: }
46:
47: /**
48: * Save the preference to the backend.
49: */
50: protected function _save()
51: {
52: }
53:
54: /* ArrayAccess methods. */
55:
56: public function offsetExists($offset)
57: {
58: return true;
59: }
60:
61: public function offsetGet($offset)
62: {
63: return new IMP_Prefs_Sort_Sortpref_Locked(
64: $offset,
65: Horde_Imap_Client::SORT_SEQUENCE,
66: 1
67: );
68: }
69:
70: public function offsetSet($offset, $value)
71: {
72: }
73:
74: public function offsetUnset($offset)
75: {
76: }
77:
78: }
79: