SendGridEmailAccount Class Reference

Inheritance diagram for SendGridEmailAccount:
Item CustomFieldsModel RedBeanModel BeanModel ObservableComponent

Public Member Functions

 __toString ()
 afterValidate ()

Static Public Member Functions

static getModuleClassName ()
static getByUserAndName (User $user, $name=null)
static resolveAndGetByUserAndName (User $user, $name=null, $decrypt=true)
static getDefaultMetadata ()
static isTypeDeletable ()

Data Fields

const DEFAULT_NAME = 'Default'

Static Protected Member Functions

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

Detailed Description

Model for user's sendgrid email accounts.

Definition at line 40 of file SendGridEmailAccount.php.


Member Function Documentation

__toString (  ) 

Returns the displayable string for the class. Should be overridden in any model that can provide a meaningful string representation of itself.

Returns:
A string.

Reimplemented from RedBeanModel.

Definition at line 44 of file SendGridEmailAccount.php.

static getModuleClassName (  )  [static]
Returns:
string

Reimplemented from RedBeanModel.

Definition at line 56 of file SendGridEmailAccount.php.

static getByUserAndName ( User user,
name = null 
) [static]
Parameters:
User $user
mixed $name null or String representing the email account name

Definition at line 65 of file SendGridEmailAccount.php.

static resolveAndGetByUserAndName ( User user,
name = null,
decrypt = true 
) [static]

Attempt to get the email account for a given user. If it does not exist, make a default SendGridEmailAccount and return it.

Parameters:
User $user
mixed $name null or String representing the email account name
bool $decrypt
Returns:
SendGridEmailAccount

Definition at line 99 of file SendGridEmailAccount.php.

static getDefaultMetadata (  )  [static]
Returns:
array

Reimplemented from Item.

Definition at line 126 of file SendGridEmailAccount.php.

static isTypeDeletable (  )  [static]
Returns:
boolean

Reimplemented from Item.

Definition at line 165 of file SendGridEmailAccount.php.

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

Returns the display name for the model class.

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

Reimplemented from RedBeanModel.

Definition at line 175 of file SendGridEmailAccount.php.

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 185 of file SendGridEmailAccount.php.

static translatedAttributeLabels ( language  )  [static, protected]
Returns:
array

Reimplemented from Item.

Definition at line 193 of file SendGridEmailAccount.php.

afterValidate (  ) 

Encrypt password beforeSave

Returns:
void

Reimplemented from RedBeanModel.

Definition at line 213 of file SendGridEmailAccount.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun Sep 22 07:11:08 2019