You are here

public function TMGMTJobItem::getJob in Translation Management Tool 7

Loads the job entity that this job item is attached to.

Return value

TMGMTJob The job entity that this job item is attached to or FALSE if there was a problem.

3 calls to TMGMTJobItem::getJob()
TMGMTJobItem::accepted in entity/tmgmt.entity.job_item.inc
Sets the state of the job item to 'accepted'.
TMGMTJobItem::getTranslator in entity/tmgmt.entity.job_item.inc
Returns the translator for this job item.
TMGMTJobItem::getTranslatorController in entity/tmgmt.entity.job_item.inc
Returns the translator plugin controller of the translator of this job item.

File

entity/tmgmt.entity.job_item.inc, line 254

Class

TMGMTJobItem
Entity class for the tmgmt_job entity.

Code

public function getJob() {
  if (!empty($this->tjid)) {
    return tmgmt_job_load($this->tjid);
  }
  return FALSE;
}