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