You are here

public function TMGMTLocalTask::assign in Translation Management Tool 7

Assign translation task to passed user.

Parameters

object $user: User object.

File

translators/tmgmt_local/entity/tmgmt_local.entity.task.inc, line 139

Class

TMGMTLocalTask
Entity class for the local task entity.

Code

public function assign($user) {
  $this
    ->incrementLoopCount(TMGMT_LOCAL_TASK_STATUS_PENDING, $user->uid);
  $this->tuid = $user->uid;
  $this->status = TMGMT_LOCAL_TASK_STATUS_PENDING;
}