PHP Class IMP_Prefs_Sort, horde

Author: Michael Slusarz ([email protected])
Inheritance: implements ArrayAccess, implements IteratorAggregate
Afficher le fichier Open project: horde/horde

Protected Properties

Свойство Type Description
$_sortpref array The sortpref value.

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
_offsetGet ( $offset )
_save ( ) Save the preference to the backend.

Method Details

__construct() public méthode

Constructor.
public __construct ( )

_offsetGet() protected méthode

protected _offsetGet ( $offset )

_save() protected méthode

Save the preference to the backend.
protected _save ( )

gc() public méthode

Garbage collection.
public gc ( )

getIterator() public méthode

* IteratorAggregate method.
public getIterator ( )

newSortbyValue() public méthode

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

offsetExists() public méthode

* ArrayAccess methods.
public offsetExists ( $offset )

offsetGet() public méthode

public offsetGet ( $offset )

offsetSet() public méthode

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 méthode

public offsetUnset ( $offset )

upgradePrefs() public méthode

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

Property Details

$_sortpref protected_oe property

The sortpref value.
protected array $_sortpref
Résultat array