public static function Notifications_Subscription_List::build_list in Notifications 7
Build subscription list instance from object or array of subscriptions
File
- ./
notifications.list.inc, line 248 - Drupal Notifications Framework - Default class file
Class
- Notifications_Subscription_List
- List of subscriptions or subscription types
Code
public static function build_list($items) {
// PHP 5.3.0 only, we may want to construct another class extending this one
$class = get_called_class();
if (is_a($items, $class)) {
return $items;
}
else {
$list = new $class();
$list
->add($items);
return $list;
}
}