You are here

function organigrams_item_load_multiple in Organigrams 7

Load multiple organigrams items based on certain conditions.

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

Parameters

array $iids: An array of organigrams item IDs.

array $conditions: An associative array of conditions on the {organigrams} table, where the keys are the database fields and the values are the values those fields must have.

Return value

array An array of organigrams item objects, indexed by iid.

4 calls to organigrams_item_load_multiple()
organigrams_get_item_by_name in ./organigrams.module
Try to map a string to an existing organigrams item, as for glossary use.
organigrams_get_tree in ./organigrams.module
Create a hierarchical representation of an organigram.
organigrams_item_get_children in ./organigrams.module
Finds all children of an organigrams item ID.
organigrams_item_load in ./organigrams.module
Get an organigrams item object matching the organigrams item ID.

File

./organigrams.module, line 1573
Defines the organigrams functions and entity types.

Code

function organigrams_item_load_multiple($iids = array(), $conditions = array()) {

  // Retrieve an array of organigrams item objects using the specified
  // conditions and return the result.
  return entity_load('organigrams_item', $iids, $conditions);
}