package Default

 Methods

create a new mail folder instance

__construct(string $localName, string $globalName = '', boolean $selectable = true, array $folders = array()

Parameters

$localName

string

name of folder in current subdirectory

$globalName

string

absolute name of folder

$selectable

boolean

if true folder holds messages, if false it's just a parent for subfolders (Default: true)

$folders

array

init with given instances of \Zend\Mail\Storage\Folder as subfolders

get subfolder named $name

__get(string $name) : \Zend\Mail\Storage\Folder

Parameters

$name

string

wanted subfolder

Exceptions

\Zend\Mail\Storage\Exception\InvalidArgumentException

Returns

\Zend\Mail\Storage\Folderfolder named $folder

add or replace subfolder named $name

__set(string $name, \Zend\Mail\Storage\Folder $folder) 

Parameters

$name

string

local name of subfolder

$folder

\Zend\Mail\Storage\Folder

instance for new subfolder

magic method for easy output of global name

__toString() : string

Returns

stringglobal name of folder

remove subfolder named $name

__unset(string $name) 

Parameters

$name

string

local name of subfolder

implements Iterator::current()

current() : \Zend\Mail\Storage\Folder

Returns

\Zend\Mail\Storage\Foldercurrent folder

implements RecursiveIterator::getChildren()

getChildren() : \Zend\Mail\Storage\Folder

Returns

\Zend\Mail\Storage\Foldersame as self::current()

get global name

getGlobalName() : string

Returns

stringglobal name

get local name

getLocalName() : string

Returns

stringlocal name

implements RecursiveIterator::hasChildren()

hasChildren() : boolean

Returns

booleancurrent element has children

check if folder has no subfolder

isLeaf() : boolean

Returns

booleantrue if no subfolders

is this folder selectable?

isSelectable() : boolean

Returns

booleanselectable

implements Iterator::key()

key() : string

Returns

stringkey/local name of current element

implements Iterator::next()

next() 

implements Iterator::rewind()

rewind() 

implements Iterator::valid()

valid() : boolean

Returns

booleancheck if there's a current element

 Properties

 

subfolders of folder array(localName => \Zend\Mail\Storage\Folder folder)

$folders : array

Default

 

global name (absolute name of folder)

$globalName : string

Default

 

local name (name of folder in parent folder)

$localName : string

Default

 

folder is selectable if folder is able to hold messages, else it's just a parent folder

$selectable : boolean

Default

true