You are here

public function TMGMTJob::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.

5 calls to TMGMTJob::isState()
TMGMTJob::isAborted in entity/tmgmt.entity.job.inc
Returns whether the state of this job is 'aborted'.
TMGMTJob::isActive in entity/tmgmt.entity.job.inc
Returns whether the state of this job is 'active'.
TMGMTJob::isFinished in entity/tmgmt.entity.job.inc
Returns whether the state of this jon is 'finished'.
TMGMTJob::isRejected in entity/tmgmt.entity.job.inc
Returns whether the state of this job is 'rejected'.
TMGMTJob::isUnprocessed in entity/tmgmt.entity.job.inc
Returns whether the state of this job is 'unprocessed'.

File

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

Class

TMGMTJob
Entity class for the tmgmt_job entity.

Code

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