You are here

public function TMGMTJob::cloneAsUnprocessed in Translation Management Tool 7

Clones job as unprocessed.

File

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

Class

TMGMTJob
Entity class for the tmgmt_job entity.

Code

public function cloneAsUnprocessed() {
  $clone = clone $this;
  $clone->tjid = NULL;
  $clone->uid = NULL;
  $clone->changed = NULL;
  $clone->reference = NULL;
  $clone->created = REQUEST_TIME;
  $clone->state = TMGMT_JOB_STATE_UNPROCESSED;
  return $clone;
}