You are here

public function TMGMTLocalTask::isStatus in Translation Management Tool 7

Checks whether the passed value matches the current status.

Parameters

$status: The value to check the current status against.

Return value

boolean TRUE if the passed status matches the current status, FALSE otherwise.

5 calls to TMGMTLocalTask::isStatus()
TMGMTLocalTask::isClosed in translators/tmgmt_local/entity/tmgmt_local.entity.task.inc
Returns whether the status of this task is 'closed'.
TMGMTLocalTask::isCompleted in translators/tmgmt_local/entity/tmgmt_local.entity.task.inc
Returns whether the status of this task is 'completed'.
TMGMTLocalTask::isPending in translators/tmgmt_local/entity/tmgmt_local.entity.task.inc
Returns whether the status of this task is 'pending'.
TMGMTLocalTask::isRejected in translators/tmgmt_local/entity/tmgmt_local.entity.task.inc
Returns whether the status of this task is 'rejected'.
TMGMTLocalTask::isUnassigned in translators/tmgmt_local/entity/tmgmt_local.entity.task.inc
Returns whether the status of this task is 'unassigned'.

File

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

Class

TMGMTLocalTask
Entity class for the local task entity.

Code

public function isStatus($status) {
  return $this
    ->getStatus() == $status;
}