@@ -579,7 +579,6 @@ discard block |
||
| 579 | 579 | |
| 580 | 580 | /** |
| 581 | 581 | * action subscription form |
| 582 | - * @param Array $array |
|
| 583 | 582 | * @param Form $form |
| 584 | 583 | * |
| 585 | 584 | * return redirect |
@@ -859,7 +858,7 @@ discard block |
||
| 859 | 858 | * same as $this->CampaignMonitorCampaigns() |
| 860 | 859 | * but sorted correctly. |
| 861 | 860 | * |
| 862 | - * @return DataSet of CampaignMonitorCampaigns |
|
| 861 | + * @return DataList|null of CampaignMonitorCampaigns |
|
| 863 | 862 | */ |
| 864 | 863 | public function PreviousCampaignMonitorCampaigns() |
| 865 | 864 | { |
@@ -916,7 +915,7 @@ discard block |
||
| 916 | 915 | /** |
| 917 | 916 | * returns a bunch of stats about a campaign |
| 918 | 917 | * IF the user is an admin AND a campaign is selected |
| 919 | - * @return String (html) | false |
|
| 918 | + * @return null|false (html) | false |
|
| 920 | 919 | */ |
| 921 | 920 | public function CampaignStats() |
| 922 | 921 | { |
@@ -64,6 +64,7 @@ |
||
| 64 | 64 | * link for controller |
| 65 | 65 | * we add baseURL to make it work for all set ups. |
| 66 | 66 | * @var String |
| 67 | + * @param string $action |
|
| 67 | 68 | */ |
| 68 | 69 | public function Link($action = null) |
| 69 | 70 | { |
@@ -146,8 +146,6 @@ discard block |
||
| 146 | 146 | |
| 147 | 147 | /** |
| 148 | 148 | * action subscription form |
| 149 | - * @param CampaignMonitorSignUpPage $page |
|
| 150 | - * @param Array $array |
|
| 151 | 149 | * @param Form $form |
| 152 | 150 | * |
| 153 | 151 | * return string: can be subscribe / unsubscribe / error |
@@ -207,7 +205,7 @@ discard block |
||
| 207 | 205 | /** |
| 208 | 206 | * is this user currently signed up to one or more newsletters |
| 209 | 207 | * |
| 210 | - * @return Boolean |
|
| 208 | + * @return boolean|null |
|
| 211 | 209 | */ |
| 212 | 210 | public function IsCampaignMonitorSubscriber() |
| 213 | 211 | { |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * @return array |
|
| 56 | + * @return string[] |
|
| 57 | 57 | */ |
| 58 | 58 | public function getFoldersToSearch() |
| 59 | 59 | { |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | - * @return array |
|
| 73 | + * @return string[] |
|
| 74 | 74 | */ |
| 75 | 75 | public function getCSSFoldersToSearch() |
| 76 | 76 | { |
@@ -80,6 +80,7 @@ discard block |
||
| 80 | 80 | * turn debug on or off |
| 81 | 81 | * |
| 82 | 82 | * @param Boolean |
| 83 | + * @param boolean $b |
|
| 83 | 84 | */ |
| 84 | 85 | public function setDebug($b) |
| 85 | 86 | { |
@@ -160,6 +161,8 @@ discard block |
||
| 160 | 161 | /** |
| 161 | 162 | * returns the result or NULL in case of an error |
| 162 | 163 | * @param CS_REST_Wrapper_Result |
| 164 | + * @param CS_REST_Wrapper_Result $result |
|
| 165 | + * @param string $apiCall |
|
| 163 | 166 | * @return Mixed | Null |
| 164 | 167 | */ |
| 165 | 168 | protected function returnResult($result, $apiCall, $description) |
@@ -518,7 +521,8 @@ discard block |
||
| 518 | 521 | * @param string $listID - list ID |
| 519 | 522 | * @param string $type - type of custom field |
| 520 | 523 | * @param string $title - field type |
| 521 | - * @param array $options - options for dropdown field type |
|
| 524 | + * @param string[] $options - options for dropdown field type |
|
| 525 | + * @param boolean $visible |
|
| 522 | 526 | * |
| 523 | 527 | * @return CS_REST_Wrapper_Result A successful response will be the key of the newly created custom field |
| 524 | 528 | */ |
@@ -627,7 +631,7 @@ discard block |
||
| 627 | 631 | * Gets all active subscribers added since the given date |
| 628 | 632 | * |
| 629 | 633 | * @param Int $listID |
| 630 | - * @param string $daysAgo The date to start getting subscribers from |
|
| 634 | + * @param integer $daysAgo The date to start getting subscribers from |
|
| 631 | 635 | * @param int $page The page number to get |
| 632 | 636 | * @param int $pageSize The number of records per page |
| 633 | 637 | * @param string $sortByField ('EMAIL', 'NAME', 'DATE') |
@@ -680,7 +684,7 @@ discard block |
||
| 680 | 684 | * Gets all unconfirmed subscribers added since the given date |
| 681 | 685 | * |
| 682 | 686 | * @param Int $listID |
| 683 | - * @param string $daysAgo The date to start getting subscribers from |
|
| 687 | + * @param integer $daysAgo The date to start getting subscribers from |
|
| 684 | 688 | * @param int $page The page number to get |
| 685 | 689 | * @param int $pageSize The number of records per page |
| 686 | 690 | * @param string $sortByField ('EMAIL', 'NAME', 'DATE') |
@@ -733,7 +737,7 @@ discard block |
||
| 733 | 737 | * Gets all bounced subscribers who have bounced out since the given date |
| 734 | 738 | * |
| 735 | 739 | * @param Int $listID |
| 736 | - * @param string $daysAgo The date to start getting subscribers from |
|
| 740 | + * @param integer $daysAgo The date to start getting subscribers from |
|
| 737 | 741 | * @param int $page The page number to get |
| 738 | 742 | * @param int $pageSize The number of records per page |
| 739 | 743 | * @param string $sortByField ('EMAIL', 'NAME', 'DATE') |
@@ -787,7 +791,7 @@ discard block |
||
| 787 | 791 | * Gets all unsubscribed subscribers who have unsubscribed since the given date |
| 788 | 792 | * |
| 789 | 793 | * @param Int $listID |
| 790 | - * @param string $daysAgo The date to start getting subscribers from |
|
| 794 | + * @param integer $daysAgo The date to start getting subscribers from |
|
| 791 | 795 | * @param int $page The page number to get |
| 792 | 796 | * @param int $pageSize The number of records per page |
| 793 | 797 | * @param string $sortByField ('EMAIL', 'NAME', 'DATE') |
@@ -840,7 +844,7 @@ discard block |
||
| 840 | 844 | * Gets all unsubscribed subscribers who have unsubscribed since the given date |
| 841 | 845 | * |
| 842 | 846 | * @param Int $listID |
| 843 | - * @param string $daysAgo The date to start getting subscribers from |
|
| 847 | + * @param integer $daysAgo The date to start getting subscribers from |
|
| 844 | 848 | * @param int $page The page number to get |
| 845 | 849 | * @param int $pageSize The number of records per page |
| 846 | 850 | * @param string $sortByField ('EMAIL', 'NAME', 'DATE') |
@@ -899,7 +903,8 @@ discard block |
||
| 899 | 903 | * @param string $confirmationSuccessPage - The page to redirect subscribers to when they confirm their subscription |
| 900 | 904 | * @param string $unsubscribeSetting - Unsubscribe setting must be CS_REST_LIST_UNSUBSCRIBE_SETTING_ALL_CLIENT_LISTS or CS_REST_LIST_UNSUBSCRIBE_SETTING_ONLY_THIS_LIST. See the documentation for details: http://www.campaignmonitor.com/api/lists/#creating_a_list |
| 901 | 905 | * @param boolean $addUnsubscribesToSuppList - When UnsubscribeSetting is CS_REST_LIST_UNSUBSCRIBE_SETTING_ALL_CLIENT_LISTS, whether unsubscribes from this list should be added to the suppression list. |
| 902 | - * @param boolean $acrubActiveWithSuppList - When UnsubscribeSetting is CS_REST_LIST_UNSUBSCRIBE_SETTING_ALL_CLIENT_LISTS, whether active subscribers should be scrubbed against the suppression list. |
|
| 906 | + * @param boolean $scrubActiveWithSuppList - When UnsubscribeSetting is CS_REST_LIST_UNSUBSCRIBE_SETTING_ALL_CLIENT_LISTS, whether active subscribers should be scrubbed against the suppression list. |
|
| 907 | + * @param CS_REST_Wrapper_Result $listID |
|
| 903 | 908 | * |
| 904 | 909 | * @return CS_REST_Wrapper_Result A successful response will be empty |
| 905 | 910 | */ |
@@ -1209,7 +1214,7 @@ discard block |
||
| 1209 | 1214 | * Gets all unsubscribes recorded for a campaign since the provided date |
| 1210 | 1215 | * |
| 1211 | 1216 | * @param int $campaignID ID of the Campaign |
| 1212 | - * @param string $daysAgo The date to start getting subscribers from |
|
| 1217 | + * @param integer $daysAgo The date to start getting subscribers from |
|
| 1213 | 1218 | * @param int $page The page number to get |
| 1214 | 1219 | * @param int $pageSize The number of records per page |
| 1215 | 1220 | * @param string $sortByField ('EMAIL', 'NAME', 'DATE') |
@@ -1315,7 +1320,7 @@ discard block |
||
| 1315 | 1320 | * @param Array $customFields |
| 1316 | 1321 | * @param array $customFields The subscriber details to use during creation. |
| 1317 | 1322 | * @param boolean $resubscribe Whether we should resubscribe this subscriber if they already exist in the list |
| 1318 | - * @param boolean $RestartSubscriptionBasedAutoResponders Whether we should restart subscription based auto responders which are sent when the subscriber first subscribes to a list. |
|
| 1323 | + * @param boolean $restartSubscriptionBasedAutoResponders Whether we should restart subscription based auto responders which are sent when the subscriber first subscribes to a list. |
|
| 1319 | 1324 | * |
| 1320 | 1325 | * NOTE that for the custom fields they need to be formatted like this: |
| 1321 | 1326 | * Array( |
@@ -1428,9 +1433,9 @@ discard block |
||
| 1428 | 1433 | * given email not existing in the list. |
| 1429 | 1434 | * |
| 1430 | 1435 | * @param Int $listID |
| 1431 | - * @param ArraySet $memberSet - list of mebers |
|
| 1436 | + * @param ArraySet $membersSet - list of mebers |
|
| 1432 | 1437 | * @param array $customFields The subscriber details to use during creation. Each array item needs to have the same key as the member ID - e.g. array( 123 => array( [custom fields here] ), 456 => array( [custom fields here] ) ) |
| 1433 | - * @param $resubscribe Whether we should resubscribe any existing subscribers |
|
| 1438 | + * @param boolean $resubscribe Whether we should resubscribe any existing subscribers |
|
| 1434 | 1439 | * @param $queueSubscriptionBasedAutoResponders By default, subscription based auto responders do not trigger during an import. Pass a value of true to override this behaviour |
| 1435 | 1440 | * @param $restartSubscriptionBasedAutoResponders By default, subscription based auto responders will not be restarted |
| 1436 | 1441 | * |
@@ -1495,6 +1500,7 @@ discard block |
||
| 1495 | 1500 | /** |
| 1496 | 1501 | * @param Int $listID |
| 1497 | 1502 | * @param Member | String $member - email address or Member Object |
| 1503 | + * @param DataObject|null $member |
|
| 1498 | 1504 | * |
| 1499 | 1505 | * @return CS_REST_Wrapper_Result A successful response will be empty |
| 1500 | 1506 | */ |
@@ -1593,6 +1599,7 @@ discard block |
||
| 1593 | 1599 | * |
| 1594 | 1600 | * @param Int $listID |
| 1595 | 1601 | * @param Member | String $member |
| 1602 | + * @param DataObject|null $member |
|
| 1596 | 1603 | * |
| 1597 | 1604 | * @return Boolean |
| 1598 | 1605 | */ |
@@ -1662,6 +1669,7 @@ discard block |
||
| 1662 | 1669 | * |
| 1663 | 1670 | * @param Int $listID |
| 1664 | 1671 | * @param Member | String $member |
| 1672 | + * @param DataObject|null $member |
|
| 1665 | 1673 | * |
| 1666 | 1674 | * @return CS_REST_Wrapper_Result A successful response will be an object of the form |
| 1667 | 1675 | * { |