You are here

public function TMGMTJob::getRemoteMappings in Translation Management Tool 7

Gets remote mappings for current job.

Return value

array List of TMGMTRemote entities.

File

entity/tmgmt.entity.job.inc, line 806

Class

TMGMTJob
Entity class for the tmgmt_job entity.

Code

public function getRemoteMappings() {
  $query = new EntityFieldQuery();
  $query
    ->entityCondition('entity_type', 'tmgmt_remote');
  $query
    ->propertyCondition('tjid', $this->tjid);
  $result = $query
    ->execute();
  if (isset($result['tmgmt_remote'])) {
    return entity_load('tmgmt_remote', array_keys($result['tmgmt_remote']));
  }
  return array();
}