PHP 클래스 MailboxController

상속: extends AppController
파일 보기 프로젝트 열기: opensolutions/vimbadmin

공개 메소드들

메소드 설명
addAction ( ) Add a mailbox.
ajaxToggleActiveAction ( ) Toggles the active property of the current mailbox. Prints 'ok' on success or 'ko' otherwise to stdout.
aliasesAction ( ) Lists the aliases of a mailbox, except the default alias (where address == goto).
cliDeletePendingAction ( )
cliGetSizesAction ( )
deleteAliasAction ( ) Deletes a mailbox alias. Prints 'ok' on success or 'ko' otherwise to stdout.
editAction ( ) Edit a mailbox.
emailSettingsAction ( )
getMailboxForm ( ) : ViMbAdmin_Form_Mailbox_AddEdit Instantiate / get the mailbox add-edit form
indexAction ( ) Jumps to list action.
listAction ( ) Lists all mailboxes available to the admin (superadmin sees all) or to the specified domain.
listSearchAction ( )
passwordAction ( ) Action FOR ADMINS AND SUPERADMINS to change the password of a mailbox.
preDispatch ( ) Most actions in this object will require a domain object to edit / act on.
purgeAction ( ) Purges a mailbox from the system, with all the related entries in other tables.

비공개 메소드들

메소드 설명
_sendSettingsEmail ( boolean $cc = false, string $password = '', boolean $isWelcome = false, $email = false ) : boolean Sends email with settings

메소드 상세

addAction() 공개 메소드

Add a mailbox.
public addAction ( )

ajaxToggleActiveAction() 공개 메소드

Toggles the active property of the current mailbox. Prints 'ok' on success or 'ko' otherwise to stdout.

aliasesAction() 공개 메소드

Lists the aliases of a mailbox, except the default alias (where address == goto).
public aliasesAction ( )

cliDeletePendingAction() 공개 메소드

cliGetSizesAction() 공개 메소드

public cliGetSizesAction ( )

deleteAliasAction() 공개 메소드

Deletes a mailbox alias. Prints 'ok' on success or 'ko' otherwise to stdout.
public deleteAliasAction ( )

editAction() 공개 메소드

Edit a mailbox.
public editAction ( )

emailSettingsAction() 공개 메소드

public emailSettingsAction ( )

getMailboxForm() 공개 메소드

Instantiate / get the mailbox add-edit form
public getMailboxForm ( ) : ViMbAdmin_Form_Mailbox_AddEdit
리턴 ViMbAdmin_Form_Mailbox_AddEdit

indexAction() 공개 메소드

Jumps to list action.
public indexAction ( )

listAction() 공개 메소드

$this->view->mailbox_actions allow to append mailbox list action buttons. %id% will be replaced by mailbox id form the list. below is example array which creates edit mailbox button, and another button with drop down options for purge or edit mailbox. Only one drop down button can be defined per button group, and it always be appended at the end. $actions = [ [ //Simple link button 'tagName' => 'a', //Mandatory parameter for element type. 'href' => OSS_Utils::genUrl( "mailbox", "edit" ) . "/mid/%id%", //Url for action 'title' => "Edit", 'class' => "btn btn-mini have-tooltip", //Class for css options. 'id' => "test-%id%", //If setting id id must have %id% which will be replaced by original mailbox id to avoid same ids. 'child' => [ //Mandatory element if is not array it will be shown as text. 'tagName' => "i", //Mandatory option if child is array to define element type 'class' => "icon-pencil" //Icon class ], ], [ //Drop down button 'tagName' => 'span', //Mandatory parameter for element type 'title' => "Settings", 'class' => "btn btn-mini have-tooltip dropdown-toggle", //Class dropdown-toggle is mandatory for drop down button 'data-toggle' => "dropdown", //data-toggle attribute is mandatory for drop down button 'id' => "cog-%id%", 'style' => "max-height: 15px;", 'child' => [ 'tagName' => "i", 'class' => "icon-cog" ], 'menu' => [ //menu array is mandatory then defining drop down button [ 'id' => "menu-edit-%id%", //Not mandatory attribute but if is set %id% should be use to avoid same ids. 'text' => " Edit", //Mandatory for display action text 'url' => OSS_Utils::genUrl( "mailbox", "edit" ) . "/mid/%id%" //Mandatory to redirect the action. ], [ 'text' => " Purge", 'url' => OSS_Utils::genUrl( "mailbox", "purge" ) . "/mid/%id%" ], ] ] ];
public listAction ( )

listSearchAction() 공개 메소드

public listSearchAction ( )

passwordAction() 공개 메소드

Action FOR ADMINS AND SUPERADMINS to change the password of a mailbox.
public passwordAction ( )

preDispatch() 공개 메소드

This method will look for an 'id' parameter and, if set, will try to load the domain model and authorise the user to edit / act on it.
또한 보기: Zend_Controller_Action::preDispatch()
public preDispatch ( )

purgeAction() 공개 메소드

Purges a mailbox from the system, with all the related entries in other tables.
public purgeAction ( )