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

Public Member Functions

 __construct ($entityType, $fieldType, $key, $term_id, $id, $storage_settings=[])
 
 getId ()
 
 setCardinality (int $cardinality)
 
 getCardinality ()
 
 setSearchability ($searchability)
 
 getSearchability ()
 
 setOperations ($operations)
 
 getOperations ()
 
 setSortable ($sortable)
 
 getSortable ()
 
 setReadOnly ($readOnly)
 
 getReadOnly ()
 
 setRequired ($required)
 
 getRequired ()
 
 getStorageSettings ()
 
 setStorageSettings ($storage_settings)
 
- 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

Base class for a Tripal storage property type.

Constructor & Destructor Documentation

◆ __construct()

Drupal\tripal\TripalStorage\StoragePropertyTypeBase::__construct (   $entityType,
  $fieldType,
  $key,
  $term_id,
  $id,
  $storage_settings = [] 
)

Constructs a new tripal storage property type base.

Parameters
stringentityType The entity type associated with this storage property type base.
stringfieldType The field type associated with this storage property type base.
stringkey The key associated with this storage property type base.
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")
stringid The id of this storage property type base.
arraystorage_settings An array of settings required for this property by the storage backend.

Member Function Documentation

◆ getCardinality()

Drupal\tripal\TripalStorage\StoragePropertyTypeBase::getCardinality ( )

Gets the cardinality.

NOTE: Currently this is not being used but was part of the original design. We are leaving this here for now + intend to go back and discuss with Josh.

Returns
bool The cardinality.

◆ getId()

Drupal\tripal\TripalStorage\StoragePropertyTypeBase::getId ( )

Returns the id of this storage property type base.

Returns
string The id.

◆ getOperations()

Drupal\tripal\TripalStorage\StoragePropertyTypeBase::getOperations ( )

Gets the supported operations.

NOTE: Currently this is not being used but was part of the original design. We are leaving this here for now + intend to go back and discuss with Josh.

Returns
bool The operations.

◆ getReadOnly()

Drupal\tripal\TripalStorage\StoragePropertyTypeBase::getReadOnly ( )

Gets the read only property.

NOTE: Currently this is not being used but was part of the original design. We are leaving this here for now + intend to go back and discuss with Josh.

Returns
bool The read only property.

◆ getRequired()

Drupal\tripal\TripalStorage\StoragePropertyTypeBase::getRequired ( )

Gets the required property.

NOTE: Currently this is not being used but was part of the original design. We are leaving this here for now + intend to go back and discuss with Josh.

Returns
bool The required property.

◆ getSearchability()

Drupal\tripal\TripalStorage\StoragePropertyTypeBase::getSearchability ( )

Gets the searchability.

NOTE: Currently this is not being used but was part of the original design. We are leaving this here for now + intend to go back and discuss with Josh.

Returns
bool The searchability.

◆ getSortable()

Drupal\tripal\TripalStorage\StoragePropertyTypeBase::getSortable ( )

Gets the sortable property.

NOTE: Currently this is not being used but was part of the original design. We are leaving this here for now + intend to go back and discuss with Josh.

Returns
bool The sortable property.

◆ getStorageSettings()

Drupal\tripal\TripalStorage\StoragePropertyTypeBase::getStorageSettings ( )

Gets the storage settings for this property type.

Returns
array

◆ setCardinality()

Drupal\tripal\TripalStorage\StoragePropertyTypeBase::setCardinality ( int  $cardinality)

Sets the cardinality.

NOTE: Currently this is not being used but was part of the original design. We are leaving this here for now + intend to go back and discuss with Josh.

Parameters
int$cardinalityThe cardinality. A value of 0 indicates unlimited values.

◆ setOperations()

Drupal\tripal\TripalStorage\StoragePropertyTypeBase::setOperations (   $operations)

Sets the supported operations.

NOTE: Currently this is not being used but was part of the original design. We are leaving this here for now + intend to go back and discuss with Josh.

Valid operations are (eq,ne,contains,starts).

Parameters
bool$searchabilityThe operations.

◆ setReadOnly()

Drupal\tripal\TripalStorage\StoragePropertyTypeBase::setReadOnly (   $readOnly)

Sets the read only property.

NOTE: Currently this is not being used but was part of the original design. We are leaving this here for now + intend to go back and discuss with Josh.

Parameters
bool$readOnlyThe read only property.

◆ setRequired()

Drupal\tripal\TripalStorage\StoragePropertyTypeBase::setRequired (   $required)

Sets the required property.

NOTE: Currently this is not being used but was part of the original design. We are leaving this here for now + intend to go back and discuss with Josh.

Parameters
bool$requiredThe required property.

◆ setSearchability()

Drupal\tripal\TripalStorage\StoragePropertyTypeBase::setSearchability (   $searchability)

Sets the searchability.

NOTE: Currently this is not being used but was part of the original design. We are leaving this here for now + intend to go back and discuss with Josh.

Parameters
bool$searchabilityThe searchability.

◆ setSortable()

Drupal\tripal\TripalStorage\StoragePropertyTypeBase::setSortable (   $sortable)

Sets the sortable property.

NOTE: Currently this is not being used but was part of the original design. We are leaving this here for now + intend to go back and discuss with Josh.

Parameters
bool$sortableThe sortable property.

◆ setStorageSettings()

Drupal\tripal\TripalStorage\StoragePropertyTypeBase::setStorageSettings (   $storage_settings)
Parameters
array$storage_settings

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