You are here

public function TMGMTMessage::getJob in Translation Management Tool 7

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

Return value

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

File

entity/tmgmt.entity.message.inc, line 122

Class

TMGMTMessage
Entity class for the tmgmt_message entity.

Code

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