Contact Class Reference

Inheritance diagram for Contact:
Person StarredInterface OwnedSecurableItem SecurableItem Item CustomFieldsModel RedBeanModel BeanModel ObservableComponent

Public Member Functions

 setLatestActivityDateTime ($dateTime)

Static Public Member Functions

static getByName ($name)
static getModuleClassName ()
static canSaveMetadata ()
static getDefaultMetadata ()
static isTypeDeletable ()
static getRollUpRulesType ()
static hasReadPermissionsOptimization ()
static getGamificationRulesType ()
static hasReadPermissionsSubscriptionOptimization ()
static supportsQueueing ()

Protected Member Functions

 afterDelete ()

Static Protected Member Functions

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

Detailed Description

Definition at line 37 of file Contact.php.


Member Function Documentation

static getByName ( name  )  [static]

Gets by name

Parameters:
string $name
Returns:
string

Reimplemented from Item.

Definition at line 39 of file Contact.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 72 of file Contact.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 Person.

Definition at line 77 of file Contact.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 Person.

Definition at line 147 of file Contact.php.

static hasReadPermissionsOptimization (  )  [static]

Override on any models you want to utilize ReadPermissionsOptimization

Reimplemented from SecurableItem.

Definition at line 157 of file Contact.php.

static getGamificationRulesType (  )  [static]
Returns:
string of gamificationRulesType Override for a child class as needed.

Reimplemented from Item.

Definition at line 162 of file Contact.php.

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

Override since Person has its own override.

See also:
RedBeanModel::getLabel
Parameters:
null | string $language
Returns:
dynamic label name based on module.

Reimplemented from Person.

Definition at line 173 of file Contact.php.

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

Override since Person has its own override.

See also:
RedBeanModel::getPluralLabel
Parameters:
null | string $language
Returns:
dynamic label name based on module.

Reimplemented from Person.

Definition at line 188 of file Contact.php.

static hasReadPermissionsSubscriptionOptimization (  )  [static]

Should model have read permission subscription table or not. This feature is used to track of created/deleted models, so we can easily sync Zurmo with Google Apps or Outlook

Returns:
bool

Reimplemented from OwnedSecurableItem.

Definition at line 197 of file Contact.php.

static supportsQueueing (  )  [static]

Describes if the current model supports being routed through queues. This is for the Queues feature in commercial edition.

Reimplemented from OwnedSecurableItem.

Definition at line 202 of file Contact.php.

afterDelete (  )  [protected]

This method is invoked after deleting a record. The default implementation raises the onAfterDelete event. You may override this method to do postprocessing after the record is deleted. Make sure you call the parent implementation so that the event is raised properly.

Reimplemented from RedBeanModel.

Definition at line 213 of file Contact.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sat Aug 19 07:10:23 2017