You are here

function biblio_load_multiple in Bibliography Module 7.2

Same name and namespace in other branches
  1. 7.3 biblio.module \biblio_load_multiple()

Load biblio entities from the database.

This function should be used whenever you need to load more than one biblio from the database. biblios are loaded into memory and will not require database access if loaded again during the same page request.

Parameters

$bids: An array of biblio IDs.

$conditions: An array of conditions on the {biblio} table in the form 'field' => $value.

$reset: Whether to reset the internal entity_load cache.

Return value

An array of biblio objects indexed by bid.

See also

entity_load()

4 calls to biblio_load_multiple()
biblio_bibtex_biblio_export in modules/bibtexParse/biblio_bibtex.module
biblio_delete_multiple in ./biblio.module
Deletes multiple biblio records from the database
biblio_load in ./biblio.module
Load a biblio object from the database.
biblio_page_content in includes/biblio.pages.inc

File

./biblio.module, line 2902

Code

function biblio_load_multiple($bids = array(), $conditions = array(), $reset = FALSE) {

  // entity_load() will create a new instance of biblioController as needed
  // and call the load() method on it.
  $biblios = entity_load('biblio', $bids, $conditions, $reset);
  return $biblios;
}