Activity Class Reference

Inheritance diagram for Activity:
OwnedSecurableItem SecurableItem Item CustomFieldsModel RedBeanModel BeanModel ObservableComponent MashableActivity Meeting Note Task

Public Member Functions

 onCreated ()

Static Public Member Functions

static getByName ($name)
static canSaveMetadata ()
static getDefaultMetadata ()
static getModuleClassName ()
static isTypeDeletable ()
static getByActivityItemsCastedDown ($relationItemId)

Static Protected Member Functions

static translatedAttributeLabels ($language)

Detailed Description

Extend this class to make different types of activity models.

Definition at line 41 of file Activity.php.

Member Function Documentation

static getByName ( name  )  [static]

Gets by name

string $name

Reimplemented from Item.

Reimplemented in Note.

Definition at line 43 of file Activity.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.

Reimplemented in Meeting, Note, and Task.

Definition at line 58 of file Activity.php.

onCreated (  ) 

Called on construction when a new model is created.

Reimplemented from Item.

Definition at line 63 of file Activity.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 OwnedSecurableItem.

Reimplemented in Meeting, Note, and Task.

Definition at line 69 of file Activity.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 OwnedSecurableItem.

Reimplemented in Meeting, Note, and Task.

Definition at line 107 of file Activity.php.

static getByActivityItemsCastedDown ( relationItemId  )  [static]

Get by activity items casted down

int $relationItemId

Definition at line 117 of file Activity.php.

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sat Nov 16 07:10:49 2019