Property | Type | Description | |
---|---|---|---|
$_accounts | array | Account sources. | |
$_changed | boolean | Tree changed flag. Set when something in the tree has been altered. | |
$_eltdiff | IMP_Ftree_Eltdiff | Element diff tracking. | |
$_elts | array | Array containing the mailbox elements. | |
$_parent | array | Parent/child list. | |
$_temp | array | Temporary data that is not saved across serialization. |
Method | Description | |
---|---|---|
__construct ( ) | Constructor. | |
__get ( $name ) | ||
collapse ( mixed $elts ) | Collapse an element. | |
collapseAll ( ) | Collapse all elements. | |
count ( ) | Return the number of mailboxes on the server. | |
createTree ( string | Horde_Tree $name, array $opts = [] ) : Horde_Tree | Creates a Horde_Tree representation of the current tree. | |
delete ( $id ) | Delete an element from the tree. | |
expand ( mixed $elts, boolean $expandall = false ) | Expand an element. | |
expandAll ( ) | Expand all elements. | |
getAccount ( string $id ) : IMP_Ftree_Account | Get the account object for a given element ID. | |
getAttribute ( string $type, string $name ) : mixed | Get an attribute value. | |
getChildren ( string $id ) : array | Return the list of children for a given element ID. | |
getIterator ( ) : IMP_Ftree_Iterator | This returns a RecursiveIterator - a RecursiveIteratorIterator is needed to properly iterate through all elements. | |
getParent ( string $id ) : mixed | Get the parent element for a given element ID. | |
init ( ) | Initialize the tree. | |
insert ( mixed $id ) | Insert an element into the tree. | |
loadUnsubscribed ( ) | Load unsubscribed mailboxes. | |
offsetExists ( $offset ) | ||
offsetGet ( $offset ) : IMP_Ftree_Element | ||
offsetSet ( $offset, $value ) | ||
offsetUnset ( $offset ) | ||
rename ( string $old, string $new ) | Rename a mailbox. | |
serialize ( ) | ||
setAttribute ( string $type, string $elt, boolean $bool ) | Change an attribute value. | |
sortList ( &$mbox, IMP_Ftree_Element $base = false ) | Sorts a list of mailboxes. | |
subscribe ( mixed $id ) | Subscribe an element to the tree. | |
unserialize ( $data ) | ||
unsubscribe ( mixed $id ) | Unsubscribe an element from the tree. |
Method | Description | |
---|---|---|
_insertElt ( array $elt ) | Insert an element into the tree. | |
_normalize ( string $id ) : string | Normalize an element ID to the correct, internal name. | |
_sortLevel ( string $id ) | Sort a level in the tree. |
protected _insertElt ( array $elt ) | ||
$elt | array | Element data. Keys: - a: (integer) Attributes. - p: (string) Parent element ID. - v: (string) Mailbox ID. |
protected _normalize ( string $id ) : string | ||
$id | string | The element ID. |
return | string | The converted name. |
protected _sortLevel ( string $id ) | ||
$id | string | The parent element whose children need to be sorted. |
public createTree ( string | Horde_Tree $name, array $opts = [] ) : Horde_Tree | ||
$name | string | Horde_Tree | Either the tree name, or a Horde_Tree object to add nodes to. |
$opts | array | Additional options: - basename: (boolean) Use raw basename instead of abbreviated label? DEFAULT: false - checkbox: (boolean) Display checkboxes? DEFAULT: false - editvfolder: (boolean) Display vfolder edit links? DEFAULT: false - iterator: (Iterator) Tree iterator to use. DEFAULT: Base iterator. - open: (boolean) Force child mailboxes to this status. DEFAULT: null - parent: (string) The parent object of the current level. DEFAULT: null (add to base level) - poll_info: (boolean) Include poll information in output? DEFAULT: false - render_params: (array) List of params to pass to renderer if auto-creating. DEFAULT: 'alternate', 'lines', and 'lines_base' are passed in with true values. - render_type: (string) The renderer name. DEFAULT: Javascript |
return | Horde_Tree | The tree object. |
public getAccount ( string $id ) : IMP_Ftree_Account | ||
$id | string | Element ID. |
return | IMP_Ftree_Account | Account object. |
public getChildren ( string $id ) : array | ||
$id | string | Element ID. |
return | array | Array of tree elements. |
public getIterator ( ) : IMP_Ftree_Iterator | ||
return | IMP_Ftree_Iterator | Iterator object. |
public sortList ( &$mbox, IMP_Ftree_Element $base = false ) | ||
$base | IMP_Ftree_Element | The base element. |
public unsubscribe ( mixed $id ) | ||
$id | mixed | The element name or an array of element names. |
protected bool $_changed | ||
return | boolean |
protected IMP_Ftree_Eltdiff $_eltdiff | ||
return | IMP_Ftree_Eltdiff |
protected array $_elts | ||
return | array |
protected array $_temp | ||
return | array |