public function TMGMTJobItem::cloneAsActive in Translation Management Tool 7
Clones as active.
File
- entity/
tmgmt.entity.job_item.inc, line 119
Class
- TMGMTJobItem
- Entity class for the tmgmt_job entity.
Code
public function cloneAsActive() {
$clone = clone $this;
$clone->data = NULL;
$clone->tjid = NULL;
$clone->tjiid = NULL;
$clone->changed = NULL;
$clone->word_count = NULL;
$clone->count_accepted = NULL;
$clone->count_pending = NULL;
$clone->count_translated = NULL;
$clone->count_reviewed = NULL;
$clone->state = TMGMT_JOB_ITEM_STATE_ACTIVE;
return $clone;
}