private function PDDocument::getTargetInfos in GlobalLink Connect for Drupal 7.7
* Internal method used by the UCF API * *
Return value
TargetInfo array
1 call to PDDocument::getTargetInfos()
- PDDocument::getDocumentInfo in gl_ws/
glc/ model/ Document.inc.php
File
- gl_ws/
glc/ model/ Document.inc.php, line 82
Class
Code
private function getTargetInfos() {
$targetInfos = array();
foreach ($this->targetLanguages as $language) {
$targetInfo = new TargetInfo();
$targetInfo->targetLocale = $language;
if (isset($submission->dueDate)) {
$targetInfo->requestedDueDate = $submission->dueDate;
}
else {
$targetInfo->requestedDueDate = 0;
}
if (isset($this->encoding)) {
$targetInfo->encoding = $this->encoding;
}
else {
$targetInfo->encoding = "UTF-8";
}
$targetInfos[] = $targetInfo;
}
return $targetInfos;
}