You are here

public static function WorkflowScheduledTransition::loadBetween in Workflow 7

Same name and namespace in other branches
  1. 7.2 includes/Entity/WorkflowScheduledTransition.php \WorkflowScheduledTransition::loadBetween()

Given a timeframe, get all scheduled transitions. @deprecated: workflow_get_workflow_scheduled_transition_by_between() --> WorkflowScheduledTransition::loadBetween()

3 calls to WorkflowScheduledTransition::loadBetween()
workflow_cron in ./workflow.module
Implements hook_cron().
workflow_get_workflow_scheduled_transition_by_between in ./workflow.deprecated.inc
Given a timeframe, get all scheduled transitions. @deprecated: workflow_get_workflow_scheduled_transition_by_between() --> WorkflowScheduledTransition::loadBetween()
workflow_update_7004 in ./workflow.install
Update contents of table workflow_scheduled_transition for new columns.

File

includes/Entity/WorkflowScheduledTransition.php, line 80
Contains workflow\includes\Entity\WorkflowScheduledTransition.

Class

WorkflowScheduledTransition

Code

public static function loadBetween($start = 0, $end = REQUEST_TIME) {
  $results = db_query('SELECT * ' . 'FROM {workflow_scheduled_transition} ' . 'WHERE scheduled > :start AND scheduled < :end ' . 'ORDER BY scheduled ASC', array(
    ':start' => $start,
    ':end' => $end,
  ));
  $result = $results
    ->fetchAll(PDO::FETCH_CLASS, 'WorkflowScheduledTransition');
  return $result;
}