BaseCustomField Class Reference

Inheritance diagram for BaseCustomField:
RedBeanModel BeanModel ObservableComponent CustomField MultipleValuesCustomField OwnedCustomField OwnedMultipleValuesCustomField

Public Member Functions

 __set ($attributeName, $value)

Static Public Member Functions

static getDefaultMetadata ()

Detailed Description

Definition at line 37 of file BaseCustomField.php.

Member Function Documentation

__set ( attributeName,

Sets the members and relations of the model as if they were actual attributes of the model. For example, if Account extends RedBeanModel and its attributeNames() returns that one it has a member 'name' and a relation 'owner' they are simply accessed as:

   $account = new Account();
   $account->name = 'International Corp';
   $account->owner = User::getByUsername('bill');
$attributeName A non-empty string that is the name of a member or relation of the model.
$value A value or model of the type specified as valid for the member or relation by the meta data supplied by the extending class's getMetadata() method.

Reimplemented from RedBeanModel.

Reimplemented in OwnedCustomField, and OwnedMultipleValuesCustomField.

Definition at line 39 of file BaseCustomField.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 CustomField, and MultipleValuesCustomField.

Definition at line 52 of file BaseCustomField.php.

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