function _addPreferredTerm($mapping, $term, $entry, $type_or_language_value) {
    if(!property_exists($entry, $type_or_language_value)) {
      $entry->{$type_or_language_value} = $term;
    }
  }
function _addPreferredTerm($mapping, $term, $entry, $type_or_language_value) {
    if(!property_exists($entry, $type_or_language_value)) {
      $entry->{$type_or_language_value} = $term;
    }
  }
function _addPreferredTerm ( $ mapping , $ term , $ entry , $ type_or_language_value ) { if ( ! property_exists ( $ entry , $ type_or_language_value ) ) { $ entry -> { $ type_or_language_value } = $ term ; } }
Adds the term for the given entry if not already added.

@param stdClass $mapping the term mapping.
@param string $term the term to add.
@param stdClass $entry the inverse context type_or_language entry to
add to.
@param string $type_or_language_value the key in the entry to add to.
Adds the term for the given entry if not already added .