Class CApiMailFolder
CApiMailFolder class is used for operations with a folder.
Methods summary
protected
|
#
__construct( MailSo\Imap\Folder $oImapFolder, boolean $bSubscribed = true, boolean $bExists = true )
Fills in the required data first. |
public static
|
#
createInstance( MailSo\Imap\Folder $oImapFolder, boolean $bSubscribed = true, boolean $bExists = true )
Creates new instance of the object. |
public static
|
#
createNonexistentInstance( string $sFullNameRaw, string $sDelimiter )
Creates new instance of the object which represents folder not present on IMAP. |
public
integer
|
|
public
integer
|
|
public
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
|
#
getSubFolders( boolean $bCreateIfNull = false )
Return list of subfolders belonging to the folder. |
public
boolean
|
|
public
mixed
|
#
getStatus( )
Returns imap folder status - information about total messages count, unseen messages count and value of uidnext. |
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
integer
|
#
getFolderXListType( )
Returns a number which denotes folder type. The value is retrieved using IMAP XLIST extension. |
Properties summary
protected
integer
|
$iNestingLevel
Level of depth at which the folder is located. |
|
protected
integer
|
$iType
Type of folder: 1 = Inbox; 2 = Sent; 3 = Drafts; 4 = Spam; 5 = Trash; 6 = Quarantine; 9 = System; 10 = Custom; 0 = generic folder. |
|
protected
boolean
|
$bExists
If true the folder exists on IMAP server. |
|
protected
boolean
|
$bSubscribed
If true the folder is subscribed on IMAP server. |
|
protected
MailSo\Imap\Folder
|
$oImapFolder
ImapFolder object. |
|
protected
|
$oSubFolders
Collection of subfolders belonging to the folder. |