Get the next subscriber for the given list
Usage
// basic usage
$proMailerSubscriber = $proMailerSubscribers->getNext($list);
// usage with all arguments
$proMailerSubscriber = $proMailerSubscribers->getNext($list, $lastSubscriberId = 0, bool $confirmed = true, bool $reverse = false);
Arguments
Name | Type(s) | Description |
---|---|---|
list | int, ProMailerList | |
lastSubscriberId (optional) | int, ProMailerSubscriber | Last retrieved subscriber ID (or object) or 0 to start from beginning |
confirmed (optional) | bool | Include only confirmed subscribers (default=true) |
reverse (optional) | bool | Reverse order? (default=false) |
Return value
ProMailerSubscriber
bool
null
Subscriber object or boolean false when there is no next subscriber, or null if other error
ProMailerSubscribers methods and properties
API reference based on ProcessWire core version 3.0.236