Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

NewsletterController Class Reference

Inheritance diagram for NewsletterController:
ModulesController AppController

List of all members.

Public Member Functions

 index ()
 viewMailMessage ($id=null)
 Get newsletter detail.
 viewInvoice ($id)
 newsletters ($id=null, $order="", $dir=true, $page=1, $dim=20)
 save ()
 Generic save method: to override in real modules.
 delete ()
 Generic delete method: to override in real modules.
 mailGroups ()
 viewMailGroup ($id=null)
 Get list detail.
 saveMailGroups ()
 deleteMailGroups ()
 sendNewsletter ()
 testNewsletter ($to)
 templates ()
 viewMailTemplate ($id=null)
 saveTemplate ()
 cloneObject ()
 invoices ($id=null, $order="MailMessage.start_sending", $dir=false, $page=1, $dim=20)
 showTemplateDetailsAjax ($id)
 AJAX CALLS.
 loadContentToNewsletter ($template_id=null)
 listSubscribers ($mail_group_id)
 load paginated list of list's subscribers
 addCardToGroup ($old_group_id=null)
 copy or move a list of subscribers
 changeCardStatus ($mail_group_id=null)
 unlinkCard ($mail_group_id)

Public Attributes

 $name = 'Newsletter'
 $helpers = array('BeTree', 'BeToolbar', 'Paginator')
 $components = array('BeTree', 'BeCustomProperty', 'BeLangText', 'BeMail', 'BeSecurity')
 $uses = array('BEObject', 'Card', 'MailGroup', 'MailMessage', 'MailTemplate', 'MailGroupCard', 'MailJob')
 $paginate

Protected Member Functions

 forward ($action, $result)
 Default forward for BEdita modules - to overrider in module controllers if needed.

Protected Attributes

 $moduleName = 'newsletter'

Detailed Description

Version:
$Revision$ $LastChangedBy$ $LastChangedDate$

$Id$

Definition at line 31 of file newsletter_controller.php.


Member Function Documentation

NewsletterController::addCardToGroup ( old_group_id = null  ) 

copy or move a list of subscribers

Parameters:
unknown_type $old_group_id

Definition at line 663 of file newsletter_controller.php.

References AppController::eventInfo().

NewsletterController::delete (  ) 

Generic delete method: to override in real modules.

If more types are handled by this module create specific delete methods like delete[ModelName] (e.g. deleteDocument, deleteEvent...) This methods will be called automagically....

Reimplemented from ModulesController.

Definition at line 256 of file newsletter_controller.php.

References AppController::deleteObjects(), AppController::eventInfo(), and AppController::userInfoMessage().

NewsletterController::forward ( action,
result 
) [protected]

Default forward for BEdita modules - to overrider in module controllers if needed.

See also:
AppController::forward()

Reimplemented from ModulesController.

Definition at line 736 of file newsletter_controller.php.

References ModulesController::moduleForward().

NewsletterController::listSubscribers ( mail_group_id  ) 

load paginated list of list's subscribers

Parameters:
int $mail_group_id

Definition at line 637 of file newsletter_controller.php.

NewsletterController::save (  ) 

Generic save method: to override in real modules.

If more types are handled by this module create specific 'save' methods like save[ModelName] (e.g. saveDocument, saveEvent...) This methods will be called automagically....

Reimplemented from ModulesController.

Definition at line 250 of file newsletter_controller.php.

References AppController::eventInfo(), and AppController::userInfoMessage().

NewsletterController::viewMailMessage ( id = null  ) 

Get newsletter detail.

If id is null, empty document

Parameters:
integer $id

Definition at line 141 of file newsletter_controller.php.


Member Data Documentation

NewsletterController::$paginate
Initial value:
 array(
        'MailJob' => array(
            'limit' => 30,
            'order' => array('MailJob.sending_date' => 'asc'),
            'contain' => array("Card")
        )
    )

Definition at line 39 of file newsletter_controller.php.


The documentation for this class was generated from the following file:
Generated on Fri Dec 11 2015 15:29:47 by Doxygen 1.7.1  BEditaBEdita 3.7 Corylus