class Notifications_Subscription_Multiple in Notifications 7
Multiple subscription. It has an undetermined number of fields
This is the base class for subscriptions that:
- Have a fixed number of fields defined by the subscription type
- Have only a field of each type
Hierarchy
- class \Notifications_Subscription_Multiple extends \Notifications_Subscription
Expanded class hierarchy of Notifications_Subscription_Multiple
File
- ./
notifications.subscription.inc, line 1659 - Drupal Notifications Framework - Default class file
View source
class Notifications_Subscription_Multiple extends Notifications_Subscription {
/**
* Map field to its right position in this subscription. As fields have no specific position it will be the next one
*/
function map_field($field) {
return isset($this->fields) ? count($this->fields) : 0;
}
/**
* Check all fields are there and they have a value. In this case we need at least the same fields that the type fields has
*/
function check_fields() {
return count($this
->type_fields()) <= count($this
->get_fields(TRUE));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Notifications_Subscription_Multiple:: |
function | Check all fields are there and they have a value. In this case we need at least the same fields that the type fields has | ||
Notifications_Subscription_Multiple:: |
function | Map field to its right position in this subscription. As fields have no specific position it will be the next one |