Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

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 Wed Feb 20 07:10:58 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8