PHP Class IMP_Prefs_Sort, horde

Author: Michael Slusarz ([email protected])
Inheritance: implements ArrayAccess, implements IteratorAggregate
显示文件 Open project: horde/horde

Protected Properties

Property Type Description
$_sortpref array The sortpref value.

Public Methods

Method Description
__construct ( ) Constructor.
gc ( ) Garbage collection.
getIterator ( ) * IteratorAggregate method.
newSortbyValue ( integer $sortby ) : integer Get the new sortby pref value for IMP 5.
offsetExists ( $offset ) * ArrayAccess methods.
offsetGet ( $offset )
offsetSet ( string $offset, array $value ) Alter a sortpref entry.
offsetUnset ( $offset )
upgradePrefs ( ) Upgrade the preference from IMP 4 value.

Protected Methods

Method Description
_offsetGet ( $offset )
_save ( ) Save the preference to the backend.

Method Details

__construct() public method

Constructor.
public __construct ( )

_offsetGet() protected method

protected _offsetGet ( $offset )

_save() protected method

Save the preference to the backend.
protected _save ( )

gc() public method

Garbage collection.
public gc ( )

getIterator() public method

* IteratorAggregate method.
public getIterator ( )

newSortbyValue() public method

Get the new sortby pref value for IMP 5.
public newSortbyValue ( integer $sortby ) : integer
$sortby integer The old (IMP 4) value.
return integer Null if no change or else the converted sort value.

offsetExists() public method

* ArrayAccess methods.
public offsetExists ( $offset )

offsetGet() public method

public offsetGet ( $offset )

offsetSet() public method

Alter a sortpref entry.
public offsetSet ( string $offset, array $value )
$offset string The mailbox name.
$value array An array with two possible keys: 'by' and 'dir'.

offsetUnset() public method

public offsetUnset ( $offset )

upgradePrefs() public method

Upgrade the preference from IMP 4 value.
public upgradePrefs ( )

Property Details

$_sortpref protected_oe property

The sortpref value.
protected array $_sortpref
return array