DerivedAttributeMetadata Class Reference

Inheritance diagram for DerivedAttributeMetadata:
RedBeanModel BeanModel ObservableComponent CalculatedDerivedAttributeMetadata DropDownDependencyDerivedAttributeMetadata

Public Member Functions

 validateSerializedMetadata ($attribute, $params)
 validateUniqueNameByModelClassName ($attribute, $params)
 getLabelByLanguage ($language)

Static Public Member Functions

static getByNameAndModelClassName ($name, $modelClassName)
static getAllByModelClassName ($modelClassName)
static getDefaultMetadata ()

Detailed Description

Holds metadata for derived attribute if required. Some derived attributes such as calculated attributes and dropdown dependencies require metadata to be stored.

Definition at line 41 of file DerivedAttributeMetadata.php.


Member Function Documentation

static getByNameAndModelClassName ( name,
modelClassName 
) [static]

Get by specifying a name and model class name. This combination is unique and so one object will be returned.

Definition at line 47 of file DerivedAttributeMetadata.php.

static getAllByModelClassName ( modelClassName  )  [static]

Given a model class name, return all the derived attributes based on the called class.

Parameters:
string $modelClassName

Definition at line 72 of file DerivedAttributeMetadata.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.

Reimplemented in CalculatedDerivedAttributeMetadata, and DropDownDependencyDerivedAttributeMetadata.

Definition at line 88 of file DerivedAttributeMetadata.php.


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