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

Public Member Functions

 __construct ($entityType, $fieldType, $key, $term_id, int $size=255, $storage_settings=[])
 
 getMaxCharacterSize ()
 
- Public Member Functions inherited from Drupal\tripal\TripalStorage\StoragePropertyTypeBase
 __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

Defines the variable character Tripal storage property type.

Constructor & Destructor Documentation

◆ __construct()

Drupal\tripal\TripalStorage\VarCharStoragePropertyType::__construct (   $entityType,
  $fieldType,
  $key,
  $term_id,
int  $size = 255,
  $storage_settings = [] 
)

Constructs a new variable character tripal storage property type.

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

Member Function Documentation

◆ getMaxCharacterSize()

Drupal\tripal\TripalStorage\VarCharStoragePropertyType::getMaxCharacterSize ( )

Returns the maximum character size of this storage property type.

Returns
int The character size.

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