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,
value 
)

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');
   $account->save();
Parameters:
$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 Mon Nov 20 07:10:22 2017