MarketingListMember Class Reference

Inheritance diagram for MarketingListMember:
OwnedModel RedBeanModel BeanModel ObservableComponent

Public Member Functions

 onCreated ()
 beforeSave ()

Static Public Member Functions

static getModuleClassName ()
static getDefaultMetadata ()
static isTypeDeletable ()
static canSaveMetadata ()
static getCountByMarketingListIdAndUnsubscribed ($marketingListId, $unsubscribed)
static getByMarketingListIdContactIdAndUnsubscribed ($marketingListId, $contactId, $unsubscribed)
static getByContactIdAndSubscribed ($contactId, $unsubscribed)
static getByContactId ($contactId)

Static Protected Member Functions

static getPluralLabel ($language=null)
static getLabel ($language=null)

Detailed Description

Definition at line 37 of file MarketingListMember.php.


Member Function Documentation

static getPluralLabel ( language = null  )  [static, protected]

Returns the display name for plural of the model class.

Parameters:
null | string $language
Returns:
dynamic label name based on module.

Reimplemented from RedBeanModel.

Definition at line 49 of file MarketingListMember.php.

static getLabel ( language = null  )  [static, protected]

Returns the display name for the model class. Defaults to the module label. Override if the model label is not the module label. Make sure to return a translated label. Also provides fall back in moduleClassName is null.

Parameters:
null | string $language
Returns:
dynamic label name based on module.

Reimplemented from RedBeanModel.

Definition at line 54 of file MarketingListMember.php.

static getDefaultMetadata (  )  [static]

Returns the default meta data for the class. It must be appended to the meta data from the parent model, if any.

Reimplemented from RedBeanModel.

Definition at line 59 of file MarketingListMember.php.

static isTypeDeletable (  )  [static]

To be overriden on intermediate derived classes to return false so that deletes are not done on intermediate classes because the object relational mapping will not clean up properly. For example if User is a Person, and Person is a RedBeanModel delete should be called only on User, not on Person. So User must override isDeletable to return false.

Reimplemented from OwnedModel.

Definition at line 89 of file MarketingListMember.php.

static canSaveMetadata (  )  [static]

By default models cannot save their metadata, allowing them to be loaded quickly because the loading of of metadata can be avoided as much as possible. To make a model able to save its metadata override this method to return true. PUT it before the getDefaultMetadata in the derived class.

Reimplemented from RedBeanModel.

Definition at line 94 of file MarketingListMember.php.

static getByContactId ( contactId  )  [static]
Parameters:
$contactId 
Returns:
members associated to given contactId

Definition at line 187 of file MarketingListMember.php.

onCreated (  ) 

Called on construction when a new model is created.

Reimplemented from RedBeanModel.

Definition at line 205 of file MarketingListMember.php.

beforeSave (  ) 

This method is invoked before saving a record (after validation, if any). The default implementation raises the onBeforeSave event. You may override this method to do any preparation work for record saving. Use isNewModel to determine whether the saving is for inserting or updating record. Make sure you call the parent implementation so that the event is raised properly.

Returns:
boolean whether the saving should be executed. Defaults to true.

Reimplemented from RedBeanModel.

Definition at line 212 of file MarketingListMember.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Wed Apr 26 07:10:27 2017