IMP_Prefs_Sort_Sortpref
in package
This class provides the object representation for the sort preference for a mailbox.
Tags
Table of Contents
Properties
- $mbox : IMP_Mailbox
- $sortby : int
- $sortby_default : bool
- $sortby_locked : bool
- $sortdir : int
- $sortdir_default : bool
- $sortdir_locked : bool
- $_mbox : IMP_Mailbox
- Mailbox object.
- $_sortby : array<string|int, mixed>
- The sortby value.
- $_sortdir : array<string|int, mixed>
- The sortdir value.
Methods
- __construct() : mixed
- Constructor.
- __get() : mixed
- __set() : mixed
- convertSortby() : mixed
- Converts sortby value given current mailbox attributes.
- toArray() : mixed
- Returns the array representation of this object.
Properties
$mbox
public
IMP_Mailbox
$mbox
Mailbox for these preferences.
$sortby
public
int
$sortby
The sortby value.
$sortby_default
public
bool
$sortby_default
Is the sortby value the default?
$sortby_locked
public
bool
$sortby_locked
Is the sortby value locked?
$sortdir
public
int
$sortdir
The sortdir value.
$sortdir_default
public
bool
$sortdir_default
Is the sortdir value the default?
$sortdir_locked
public
bool
$sortdir_locked
Is the sortdir value locked?
$_mbox
Mailbox object.
protected
IMP_Mailbox
$_mbox
$_sortby
The sortby value.
protected
array<string|int, mixed>
$_sortby
$_sortdir
The sortdir value.
protected
array<string|int, mixed>
$_sortdir
Methods
__construct()
Constructor.
public
__construct(string $mbox[, int $sortby = null ][, int $sortdir = null ]) : mixed
Parameters
- $mbox : string
-
Mailbox.
- $sortby : int = null
-
Sortby value.
- $sortdir : int = null
-
Sortdir value.
__get()
public
__get(mixed $name) : mixed
Parameters
- $name : mixed
__set()
public
__set(mixed $name, mixed $value) : mixed
Parameters
- $name : mixed
- $value : mixed
convertSortby()
Converts sortby value given current mailbox attributes.
public
convertSortby() : mixed
toArray()
Returns the array representation of this object.
public
toArray() : mixed