public function LingotekApi::xmlFormat in Lingotek Translation 7.3
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::xmlFormat()
- 7.2 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::xmlFormat()
- 7.4 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::xmlFormat()
- 7.5 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::xmlFormat()
- 7.6 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::xmlFormat()
Gets the appropriate format code for the current system state.
Return value
string A XML format code.
4 calls to LingotekApi::xmlFormat()
- LingotekApi::addContentDocument in lib/
Drupal/ lingotek/ LingotekApi.php - Add a document to the Lingotek platform.
- LingotekApi::getCommentCreateWithTargetsParams in lib/
Drupal/ lingotek/ LingotekApi.php - Gets the comment-specific parameters for use in a createContentDocumentWithTargets API call.
- LingotekApi::getConfigChunkCreateWithTargetsParams in lib/
Drupal/ lingotek/ LingotekApi.php - Gets the config-chunk-specific parameters for use in a createContentDocumentWithTargets API call.
- LingotekApi::updateContentDocument in lib/
Drupal/ lingotek/ LingotekApi.php - Updates the content of an existing Lingotek document with the current object contents.
File
- lib/
Drupal/ lingotek/ LingotekApi.php, line 916 - Defines Drupal\lingotek\LingotekApi
Class
- LingotekApi
- @file Defines Drupal\lingotek\LingotekApi
Code
public function xmlFormat() {
return variable_get('lingotek_advanced_parsing', TRUE) ? 'XML_OKAPI' : 'XML';
}