protected function LingotekConfigSet::metadata in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekConfigSet.php \LingotekConfigSet::metadata()
Gets the local Lingotek metadata for this config set.
Return value
array An array of key/value data for the current config set.
5 calls to LingotekConfigSet::metadata()
- LingotekConfigSet::contentUpdated in lib/
Drupal/ lingotek/ LingotekConfigSet.php - Event handler for updates to the config set's data.
- LingotekConfigSet::deleteMetadataValue in lib/
Drupal/ lingotek/ LingotekConfigSet.php - Deletes a Lingotek metadata value for this item
- LingotekConfigSet::downloadTriggered in lib/
Drupal/ lingotek/ LingotekConfigSet.php - Updates the local content of $target_code with data from a Lingotek Document
- LingotekConfigSet::setMetadataValue in lib/
Drupal/ lingotek/ LingotekConfigSet.php - Sets a Lingotek metadata value for this item.
- LingotekConfigSet::updateLocalContent in lib/
Drupal/ lingotek/ LingotekConfigSet.php - Updates the local content with data from a Lingotek Document.
File
- lib/
Drupal/ lingotek/ LingotekConfigSet.php, line 600 - Defines LingotekConfigSet.
Class
- LingotekConfigSet
- A class wrapper for Lingotek-specific behavior on ConfigSets.
Code
protected function metadata() {
$metadata = array();
$results = db_select('lingotek_config_metadata', 'meta')
->fields('meta')
->condition('id', $this->sid)
->execute();
foreach ($results as $result) {
$metadata[$result->config_key] = $result->value;
}
return $metadata;
}