Loads a batch.
int $id: The ID of the batch to load.
array An array representing the batch, or FALSE if no batch was found.
Overrides BatchStorageInterface::load
public function load($id) {
$batch = $this->connection
->query("SELECT batch FROM {batch} WHERE bid = :bid AND token = :token", array(
':bid' => $id,
':token' => drupal_get_token($id),
))
->fetchField();
if ($batch) {
return unserialize($batch);
}
return FALSE;
}