SilverCart\Admin\Controllers\NewsletterRecipientsAdmin
Provides a form to export newsletter recipients including anonymous ones.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class NewsletterRecipientsAdmin
extends LeftAndMain
{
- // members
- private static array $allowed_actions = ;
- private static string $menuCode = 'customer';
- private static integer $menuSortIndex = 50;
- private static string $url_segment = 'silvercart-newsletter-recipients';
- private static string $menu_title = 'Newsletter Recipients';
- // methods
- public Form getEditForm()
- public void do_newsletter_recipients_export()
- protected string getCSVContent()
- // Inherited methods from LeftAndMain
- protected void init()
- protected void beforeUpdateInit()
- protected void beforeUpdateEditForm()
- public string SectionTitle()
- public boolean canView()
Hierarchy
Members
private
- $allowed_actions
—
array
List of allowed actions - $url_segment
—
string
The URL segment
Methods
protected
- getCSVContent() — Creates and returns the CSV content to download.
public
- getEditForm() — Returns the edit form for this admin.
Inherited from SilverCart\Admin\Controllers\LeftAndMain
protected
- beforeUpdateEditForm() — Allows user code to hook into ModelAdmin::getEditForm() prior to updateEditForm being called on extensions.
- beforeUpdateInit() — Allows user code to hook into ModelAdmin::init() prior to updateInit being called on extensions.
- init() — Provides hook for decorators, so that they can overwrite css and other definitions.
public
- SectionTitle() — title in the top bar of the CMS
- canView() — Workaround to hide this class in CMS menu.