Tripal
|
Public Member Functions | |
getIdSpaceNames () | |
addIdSpace ($idSpace) | |
removeIdSpace ($idspace) | |
getTerms ($name, $exact=True) | |
getURL () | |
setURL ($url) | |
getNameSpace () | |
setLabel ($label) | |
getLabel () | |
![]() | |
createRecord () | |
destroy () | |
isValid () | |
recordExists () | |
Defines an interface for tripal vocabulary plugins.
Drupal\tripal\TripalVocabTerms\Interfaces\TripalVocabularyInterface::addIdSpace | ( | $idSpace | ) |
Adds the id space with the given collection name to this vocabulary. The given collection name must be a valid id space collection.
string | $idSpace | The id space collection name. |
Implemented in Drupal\tripal_chado\Plugin\TripalVocabulary\ChadoVocabulary, and Drupal\tripal\Plugin\TripalVocabulary\TripalDefaultVocabulary.
Drupal\tripal\TripalVocabTerms\Interfaces\TripalVocabularyInterface::getIdSpaceNames | ( | ) |
Returns list of id space collection names that is contained in this vocabulary.
Implemented in Drupal\tripal_chado\Plugin\TripalVocabulary\ChadoVocabulary, and Drupal\tripal\Plugin\TripalVocabulary\TripalDefaultVocabulary.
Drupal\tripal\TripalVocabTerms\Interfaces\TripalVocabularyInterface::getLabel | ( | ) |
Returns the label of the vocabulary.
This is the human readable proper name of the vocabulary.
Note that the name of the collection serves as the namespace of the vocabulary.
Implemented in Drupal\tripal_chado\Plugin\TripalVocabulary\ChadoVocabulary, and Drupal\tripal\Plugin\TripalVocabulary\TripalDefaultVocabulary.
Drupal\tripal\TripalVocabTerms\Interfaces\TripalVocabularyInterface::getNameSpace | ( | ) |
Returns the namespace of the vocabulary
This should be identical to the name of the collection, and therefore, there is no setter function.
Implemented in Drupal\tripal_chado\Plugin\TripalVocabulary\ChadoVocabulary, and Drupal\tripal\Plugin\TripalVocabulary\TripalDefaultVocabulary.
Drupal\tripal\TripalVocabTerms\Interfaces\TripalVocabularyInterface::getTerms | ( | $name, | |
$exact = True |
|||
) |
Returns the terms in this vocabulary whose names match the given name. Matches can only be exact or a substring depending on the given flag. The default is to only return exact matches.
string | $name | The name. |
bool | $exact | True to only include exact matches else include all substring matches. |
Implemented in Drupal\tripal_chado\Plugin\TripalVocabulary\ChadoVocabulary, Drupal\tripal\TripalVocabTerms\TripalVocabularyBase, and Drupal\tripal\Plugin\TripalVocabulary\TripalDefaultVocabulary.
Drupal\tripal\TripalVocabTerms\Interfaces\TripalVocabularyInterface::getURL | ( | ) |
Returns the URL of this vocabulary.
Implemented in Drupal\tripal_chado\Plugin\TripalVocabulary\ChadoVocabulary, and Drupal\tripal\Plugin\TripalVocabulary\TripalDefaultVocabulary.
Drupal\tripal\TripalVocabTerms\Interfaces\TripalVocabularyInterface::removeIdSpace | ( | $idspace | ) |
Removes the id space from this vocabulary with the given collection name.
string | $idSpace | The id space collection name. |
Implemented in Drupal\tripal_chado\Plugin\TripalVocabulary\ChadoVocabulary, and Drupal\tripal\Plugin\TripalVocabulary\TripalDefaultVocabulary.
Drupal\tripal\TripalVocabTerms\Interfaces\TripalVocabularyInterface::setLabel | ( | $label | ) |
Sets the label for the vocabulary.
This is the human readable proper name of the vocabulary.
Note that the name of the collection serves as the namespace of the vocabulary.
string | $label | The name of the vocabulary. |
Implemented in Drupal\tripal_chado\Plugin\TripalVocabulary\ChadoVocabulary, and Drupal\tripal\Plugin\TripalVocabulary\TripalDefaultVocabulary.
Drupal\tripal\TripalVocabTerms\Interfaces\TripalVocabularyInterface::setURL | ( | $url | ) |
Sets the URL of this vocabulary to the given URL.
string | $url | The URL. |
Implemented in Drupal\tripal_chado\Plugin\TripalVocabulary\ChadoVocabulary, and Drupal\tripal\Plugin\TripalVocabulary\TripalDefaultVocabulary.