InstanceRecord Class Reference
Instance Record item description. More...
Public Member Functions | |
| __construct () | |
| __destruct () | |
| setId ($id) | |
| Set the value of the ID. | |
| setAttribute ($attr, $value, $valueType) | |
| Set a value for an attribute describing the instance record. | |
| setAttributeRef ($attr, $metaData, $ref, $valueType) | |
| Set a "ref" attribute. | |
| getValueType ($property) | |
| Get the valueType of an attribute. | |
Public Attributes | |
| $id | |
| ID of the instance record. The ID of an instance record is used to create the global reference of local records belonging to the dataset. | |
| $attributes = array() | |
| All attributes/values describing the dataset. | |
Private Member Functions | |
| addRef (&$attr, $metaData, $ref, $valueType) | |
| Create a reference to a source, creator, curator or maintenainer of an instance record. | |
Detailed Description
Instance Record item description.
Definition at line 26 of file InstanceRecord.php.
Constructor & Destructor Documentation
| InstanceRecord::__construct | ( | ) |
Definition at line 34 of file InstanceRecord.php.
| InstanceRecord::__destruct | ( | ) |
Definition at line 36 of file InstanceRecord.php.
Member Function Documentation
| InstanceRecord::addRef | ( | &$ | attr, | |
| $ | metaData, | |||
| $ | ref, | |||
| $ | valueType | |||
| ) | [private] |
Create a reference to a source, creator, curator or maintenainer of an instance record.
- Parameters:
-
[in] $attr attribute reference [in] $metaData metaData that describe the <subject, attribute, value> triple. [in] $ref Reference to the local or global ID of the reference [in] $valueType Value type of the reference value
Definition at line 116 of file InstanceRecord.php.
Referenced by setAttributeRef().
| InstanceRecord::getValueType | ( | $ | property | ) |
Get the valueType of an attribute.
- Parameters:
-
[in] $property Target property you want to get the valueType
Definition at line 140 of file InstanceRecord.php.
| InstanceRecord::setAttribute | ( | $ | attr, | |
| $ | value, | |||
| $ | valueType | |||
| ) |
Set a value for an attribute describing the instance record.
- Parameters:
-
[in] $attr attribute describing the instance record [in] $value value of the attribute [in] $valueType type of the value of the attribute (ex: String, Object, etc).
Definition at line 70 of file InstanceRecord.php.
| InstanceRecord::setAttributeRef | ( | $ | attr, | |
| $ | metaData, | |||
| $ | ref, | |||
| $ | valueType | |||
| ) |
Set a "ref" attribute.
- Parameters:
-
[in] $attr attribute describing the instance record [in] $metaData metaData that describe the <subject, attribute, value> triple. [in] $ref Reference to the local or global ID of the reference [in] $valueType type of the value of the attribute (ex: String, Object, etc).
Definition at line 100 of file InstanceRecord.php.
References addRef().

| InstanceRecord::setId | ( | $ | id | ) |
Set the value of the ID.
- Parameters:
-
[in] $id ID of the dataset
Definition at line 48 of file InstanceRecord.php.
References $id.
Member Data Documentation
| InstanceRecord::$attributes = array() |
| InstanceRecord::$id |
ID of the instance record. The ID of an instance record is used to create the global reference of local records belonging to the dataset.
Definition at line 29 of file InstanceRecord.php.
Referenced by setId().
The documentation for this class was generated from the following file:
