Tripal
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Drupal\tripal\TripalStorage\RealStoragePropertyType Class Reference
Inheritance diagram for Drupal\tripal\TripalStorage\RealStoragePropertyType:
Inheritance graph
[legend]
Collaboration diagram for Drupal\tripal\TripalStorage\RealStoragePropertyType:
Collaboration graph
[legend]

Public Member Functions

 __construct ($entityType, $fieldType, $key, $term_id, $storage_settings=[], $idspace_plugin_id='')
 
 getDefaultValue ()
 
- Public Member Functions inherited from Drupal\tripal\TripalStorage\StoragePropertyTypeBase
 __construct ($entityType, $fieldType, $key, $term_id, $id, $storage_settings=[], $idspace_plugin_id='')
 
 getId ()
 
 setCardinality (int $cardinality)
 
 getCardinality ()
 
 setSearchability ($searchability)
 
 getSearchability ()
 
 setOperations ($operations)
 
 getOperations ()
 
 setSortable ($sortable)
 
 getSortable ()
 
 setReadOnly ($readOnly)
 
 getReadOnly ()
 
 setRequired ($required)
 
 getRequired ()
 
 setCacheStatus (bool $status)
 
 getCacheStatus ()
 
 getStorageSettings ()
 
 setStorageSettings ($storage_settings)
 
- Public Member Functions inherited from Drupal\tripal\TripalStorage\StoragePropertyBase
 __construct ($entityType, $fieldType, $key, $term_id, $idspace_plugin_id='')
 
 getEntityType ()
 
 getFieldType ()
 
 getKey ()
 
 getTermIdSpace ()
 
 getTermAccession ()
 
 getTerm ()
 

Additional Inherited Members

- Public Attributes inherited from Drupal\tripal\TripalStorage\StoragePropertyTypeBase
bool $cache_status
 
- Protected Attributes inherited from Drupal\tripal\TripalStorage\StoragePropertyBase
 $idSpaceService
 

Detailed Description

Defines the real Tripal storage property type.

Note: A real type is any real floating point number.

Constructor & Destructor Documentation

◆ __construct()

Drupal\tripal\TripalStorage\RealStoragePropertyType::__construct (   $entityType,
  $fieldType,
  $key,
  $term_id,
  $storage_settings = [],
  $idspace_plugin_id = '' 
)

Constructs a new real tripal storage property type.

Parameters
string$entityTypeThe entity type associated with this property type.
string$fieldTypeThe field type associated with this property type.
string$keyThe key associated with this property type.
string$term_idThe controlled vocabulary term asssociated with this property. It must be in the form of "IdSpace:Accession" (e.g. "rdfs:label" or "OBI:0100026")
array$storage_settingsAn array of settings required for this property by the storage backend.
string$idspace_plugin_idThe plugin_id associated with the term. This is optional but if provided allows a missing ID Space to be looked up in the backend storage.

Member Function Documentation

◆ getDefaultValue()

Drupal\tripal\TripalStorage\RealStoragePropertyType::getDefaultValue ( )

Returns the default empty value of the correct type for this property.

Returns
float A zero.

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