You are here

public function TMGMTJobItem::isState in Translation Management Tool 7

Checks whether the passed value matches the current state.

Parameters

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

Return value

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

4 calls to TMGMTJobItem::isState()
TMGMTJobItem::isAborted in entity/tmgmt.entity.job_item.inc
Checks whether the state of this transaction is 'aborted'.
TMGMTJobItem::isAccepted in entity/tmgmt.entity.job_item.inc
Checks whether the state of this transaction is 'accepted'.
TMGMTJobItem::isActive in entity/tmgmt.entity.job_item.inc
Checks whether the state of this transaction is 'active'.
TMGMTJobItem::isNeedsReview in entity/tmgmt.entity.job_item.inc
Checks whether the state of this transaction is 'needs review'.

File

entity/tmgmt.entity.job_item.inc, line 499

Class

TMGMTJobItem
Entity class for the tmgmt_job entity.

Code

public function isState($state) {
  return $this
    ->getState() == $state;
}