You are here

function PDLanguageDirection::__construct in GlobalLink Connect for Drupal 7.7

File

gl_ws/glc/model/LanguageDirection.inc.php, line 8

Class

PDLanguageDirection

Code

function __construct($externalLanguageDirection) {
  $this->sourceLanguage = $externalLanguageDirection->sourceLanguage->locale;
  $this->sourceLanguageName = $externalLanguageDirection->sourceLanguage->value;
  $this->targetLanguage = $externalLanguageDirection->targetLanguage->locale;
  $this->targetLanguageName = $externalLanguageDirection->targetLanguage->value;
}