You are here

function TMGMTJob::addExistingItem in Translation Management Tool 7

Add a given TMGMTJobItem to this job.

Parameters

TMGMTJobItem $job: The job item to add.

File

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

Class

TMGMTJob
Entity class for the tmgmt_job entity.

Code

function addExistingItem(TMGMTJobItem &$item) {
  $item->tjid = $this->tjid;
  $item
    ->save();
}