| @@ 1544-1560 (lines=17) @@ | ||
| 1541 | * |
|
| 1542 | * @return Boolean |
|
| 1543 | */ |
|
| 1544 | public function getSubscriberExistsForThisList($listID, $member) |
|
| 1545 | { |
|
| 1546 | if ($member instanceof Member) { |
|
| 1547 | $member = $member->Email; |
|
| 1548 | } |
|
| 1549 | $outcome = $this->getSubscriber($listID, $member); |
|
| 1550 | if ($outcome && isset($outcome->State)) { |
|
| 1551 | if ($this->debug) { |
|
| 1552 | echo "<h3>Subscriber Exists For This List</h3>"; |
|
| 1553 | } |
|
| 1554 | return true; |
|
| 1555 | } |
|
| 1556 | if ($this->debug) { |
|
| 1557 | echo "<h3>Subscriber does *** NOT *** Exist For This List</h3>"; |
|
| 1558 | } |
|
| 1559 | return false; |
|
| 1560 | } |
|
| 1561 | ||
| 1562 | /** |
|
| 1563 | * Can we send e-mails to this person in the future for this list? |
|
| @@ 1570-1588 (lines=19) @@ | ||
| 1567 | * |
|
| 1568 | * @return Boolean |
|
| 1569 | */ |
|
| 1570 | public function getSubscriberCanReceiveEmailsForThisList($listID, $member) |
|
| 1571 | { |
|
| 1572 | if ($member instanceof Member) { |
|
| 1573 | $member = $member->Email; |
|
| 1574 | } |
|
| 1575 | $outcome = $this->getSubscriber($listID, $member); |
|
| 1576 | if ($outcome && isset($outcome->State)) { |
|
| 1577 | if ($outcome->State == "Active") { |
|
| 1578 | if ($this->debug) { |
|
| 1579 | echo "<h3>Subscriber Can Receive Emails For This List</h3>"; |
|
| 1580 | } |
|
| 1581 | return true; |
|
| 1582 | } |
|
| 1583 | } |
|
| 1584 | if ($this->debug) { |
|
| 1585 | echo "<h3>Subscriber Can *** NOT *** Receive Emails For This List</h3>"; |
|
| 1586 | } |
|
| 1587 | return false; |
|
| 1588 | } |
|
| 1589 | ||
| 1590 | /** |
|
| 1591 | * This e-mail / user has been banned from a list. |
|