You are here

public static function Notifications_Subscription::load_multiple in Notifications 7

Load multiple from db

See also

select_subscriptions

2 calls to Notifications_Subscription::load_multiple()
notifications_get_subscriptions in ./notifications.module
Load multiple subscriptions.
Notifications_Subscription::load_instances in ./notifications.subscription.inc
Get all existing instances form the db

File

./notifications.subscription.inc, line 135
Drupal Notifications Framework - Default class file

Class

Notifications_Subscription
Common base for subscription type and subscription instance

Code

public static function load_multiple($conditions, $fields = array(), $limit = FALSE) {
  $query = self::select_subscriptions($conditions, $fields, $limit);
  if ($sids = $query
    ->execute()
    ->fetchCol()) {
    return entity_load('notifications_subscription', $sids);
  }
  else {
    return array();
  }
}