You are here

public function TMGMTJobItem::getMessagesSince in Translation Management Tool 7

Returns all job messages attached to this job item with timestamp newer than $time.

Parameters

$timestamp: (Optional) Messages need to have a newer timestamp than $time. Defaults to REQUEST_TIME.

Return value

array An array of translation job messages.

File

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

Class

TMGMTJobItem
Entity class for the tmgmt_job entity.

Code

public function getMessagesSince($time = NULL) {
  $time = isset($time) ? $time : REQUEST_TIME;
  $conditions = array(
    'created' => array(
      'value' => $time,
      'operator' => '>=',
    ),
  );
  return $this
    ->getMessages($conditions);
}