Tripal
Public Member Functions | List of all members
Drupal\tripal\TripalStorage\StoragePropertyValue Class Reference
Inheritance diagram for Drupal\tripal\TripalStorage\StoragePropertyValue:
Inheritance graph
[legend]
Collaboration diagram for Drupal\tripal\TripalStorage\StoragePropertyValue:
Collaboration graph
[legend]

Public Member Functions

 __construct ($entityType, $fieldType, $key, $term_id, $entityId, $value=NUll)
 
 getEntityId ()
 
 getValue ()
 
 setValue ($value)
 
- Public Member Functions inherited from Drupal\tripal\TripalStorage\StoragePropertyBase
 __construct ($entityType, $fieldType, $key, $term_id)
 
 getEntityType ()
 
 getFieldType ()
 
 getKey ()
 
 getTermIdSpace ()
 
 getTermAccession ()
 
 getTerm ()
 

Additional Inherited Members

- Protected Attributes inherited from Drupal\tripal\TripalStorage\StoragePropertyBase
 $idSpaceService
 

Detailed Description

Defines the Tripal storage property value.

Constructor & Destructor Documentation

◆ __construct()

Drupal\tripal\TripalStorage\StoragePropertyValue::__construct (   $entityType,
  $fieldType,
  $key,
  $term_id,
  $entityId,
  $value = NUll 
)

Constructs a new tripal storage property value.

Parameters
stringentityType The entity type associated with this storage property value.
stringfieldType The field type associated with this storage property value.
stringkey The key associated with this storage property value.
stringterm_id The controlled vocabulary term asssociated with this property. It must be in the form of "IdSpace:Accession" (e.g. "rdfs:label" or "OBI:0100026")
stringentityId The entity id associated with this storage property value.
?$value An optional initial value for this storage property value.

Member Function Documentation

◆ getEntityId()

Drupal\tripal\TripalStorage\StoragePropertyValue::getEntityId ( )

Returns the entity id associated with this storage property value.

Returns
string The entity id.

◆ getValue()

Drupal\tripal\TripalStorage\StoragePropertyValue::getValue ( )

Returns the value of this storage property value.

Returns
mixed The value.

◆ setValue()

Drupal\tripal\TripalStorage\StoragePropertyValue::setValue (   $value)

Sets the value of this storage property value to the given value.

Parameters
mixed$valueThe value.

The documentation for this class was generated from the following file: