PHP Class IMP_LoginTasks_Task_RenameSentmailMonthly, horde

Author: Michael Slusarz ([email protected])
Inheritance: extends Horde_LoginTasks_Task
ファイルを表示 Open project: horde/horde

Public Methods

Method Description
__construct ( ) Constructor.
describe ( ) : string Returns information for the login task.
execute ( ) : boolean Renames the old sent-mail mailboxes.

Protected Methods

Method Description
_getSentmail ( ) : array Returns the list of sent-mail mailboxes.

Method Details

__construct() public method

Constructor.
public __construct ( )

_getSentmail() protected method

Returns the list of sent-mail mailboxes.
protected _getSentmail ( ) : array
return array All sent-mail mailboxes (IMP_Mailbox objects).

describe() public method

Returns information for the login task.
public describe ( ) : string
return string Description of what the operation is going to do during this login.

execute() public method

Mailbox name: sent-mail-month-year month = English: 3 letter abbreviation Other Languages: Month value (01-12) year = 4 digit year The mailbox name needs to be in this specific format (as opposed to a user-defined one) to ensure that 'delete_sentmail_monthly' processing can accurately find all the old sent-mail mailboxes.
public execute ( ) : boolean
return boolean Whether all sent-mail mailboxes were renamed.