PHP Class DomainController

Inheritance: extends MController
Show file Open project: opensolutions/vimbadmin

Public Methods

Method Description
addAction ( ) Add / edit a domain.
adminsAction ( ) Lists the domain admins.
ajaxToggleActiveAction ( ) Toggles the active property for the current domain. Prints 'ok' on success or 'ko' otherwise to stdout.
assignAdminAction ( ) Add a domain admin. Prints 'ok' on success or 'ko' otherwise to stdout.
editAction ( )
getDomainForm ( ) : ViMbAdmin_Form_Domain_AddEdit Instantiate / get the domain add-edit form
indexAction ( ) Jumps to list action.
listAction ( ) List all domains if super admin, else relevant domains
listSearchAction ( )
preDispatch ( ) Most actions in this object will require a domain object to edit / act on.
purgeAction ( ) Purges a mailbox, removes all the related entries from the other tables.
removeAdminAction ( ) Remove a domain admin. Prints 'ok' on success or 'ko' otherwise to stdout.

Method Details

addAction() public method

Add / edit a domain.
public addAction ( )

adminsAction() public method

Lists the domain admins.
public adminsAction ( )

ajaxToggleActiveAction() public method

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

assignAdminAction() public method

Add a domain admin. Prints 'ok' on success or 'ko' otherwise to stdout.
public assignAdminAction ( )

editAction() public method

public editAction ( )

getDomainForm() public method

Instantiate / get the domain add-edit form
public getDomainForm ( ) : ViMbAdmin_Form_Domain_AddEdit
return ViMbAdmin_Form_Domain_AddEdit

indexAction() public method

Jumps to list action.
public indexAction ( )

listAction() public method

List all domains if super admin, else relevant domains
public listAction ( )

listSearchAction() public method

public listSearchAction ( )

preDispatch() public method

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.
See also: Zend_Controller_Action::preDispatch()
public preDispatch ( )

purgeAction() public method

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

removeAdminAction() public method

Remove a domain admin. Prints 'ok' on success or 'ko' otherwise to stdout.
public removeAdminAction ( )