Completed
Push — master ( 8d8fd4...93bd5a )
by Nicolaas
03:00
created
code/api/CampaignMonitorAPIConnector.php 1 patch
Doc Comments   +19 added lines, -11 removed lines patch added patch discarded remove patch
@@ -80,6 +80,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
      * {
Please login to merge, or discard this patch.