From: Tim Otten Date: Tue, 6 Jan 2015 22:56:56 +0000 (-0800) Subject: INFRA-132 - CRM/Mailing - Misc X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a3d7e8ee2273ee19535713f2968b0936220267ad;p=civicrm-core.git INFRA-132 - CRM/Mailing - Misc --- diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index df9f779966..fb921c9d62 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -1173,7 +1173,8 @@ ORDER BY civicrm_email.is_bulkmail DESC * * @return Mail_mime The mail object */ - public function &compose($job_id, $event_queue_id, $hash, $contactId, + public function &compose( + $job_id, $event_queue_id, $hash, $contactId, $email, &$recipient, $test, $contactDetails, &$attachments, $isForward = FALSE, $fromEmail = NULL, $replyToEmail = NULL diff --git a/CRM/Mailing/BAO/Query.php b/CRM/Mailing/BAO/Query.php index 064260c1d2..979dbcc302 100644 --- a/CRM/Mailing/BAO/Query.php +++ b/CRM/Mailing/BAO/Query.php @@ -197,7 +197,8 @@ class CRM_Mailing_BAO_Query { * * @return array|null */ - static function defaultReturnProperties($mode, + static function defaultReturnProperties( + $mode, $includeCustomFields = TRUE ) { diff --git a/CRM/Mailing/BAO/Recipients.php b/CRM/Mailing/BAO/Recipients.php index 9978c20166..71d0704f55 100644 --- a/CRM/Mailing/BAO/Recipients.php +++ b/CRM/Mailing/BAO/Recipients.php @@ -63,7 +63,8 @@ WHERE mailing_id = %1 * * @return Object */ - static function mailingQuery($mailingID, + static function mailingQuery( + $mailingID, $offset = NULL, $limit = NULL ) { $limitString = NULL; diff --git a/CRM/Mailing/Event/BAO/Bounce.php b/CRM/Mailing/Event/BAO/Bounce.php index 754f49ed3f..4435343cb9 100755 --- a/CRM/Mailing/Event/BAO/Bounce.php +++ b/CRM/Mailing/Event/BAO/Bounce.php @@ -191,7 +191,8 @@ class CRM_Mailing_Event_BAO_Bounce extends CRM_Mailing_Event_DAO_Bounce { * @return array Result set * @static */ - public static function &getRows($mailing_id, $job_id = NULL, + public static function &getRows( + $mailing_id, $job_id = NULL, $is_distinct = FALSE, $offset = NULL, $rowCount = NULL, $sort = NULL ) { diff --git a/CRM/Mailing/Event/BAO/Delivered.php b/CRM/Mailing/Event/BAO/Delivered.php index 99a4ae88d9..f072617d0b 100755 --- a/CRM/Mailing/Event/BAO/Delivered.php +++ b/CRM/Mailing/Event/BAO/Delivered.php @@ -159,7 +159,8 @@ class CRM_Mailing_Event_BAO_Delivered extends CRM_Mailing_Event_DAO_Delivered { * @return array Result set * @static */ - public static function &getRows($mailing_id, $job_id = NULL, + public static function &getRows( + $mailing_id, $job_id = NULL, $is_distinct = FALSE, $offset = NULL, $rowCount = NULL, $sort = NULL, $is_test = 0 ) { diff --git a/CRM/Mailing/Event/BAO/Forward.php b/CRM/Mailing/Event/BAO/Forward.php index 81ffbdcb95..c0a2b26104 100644 --- a/CRM/Mailing/Event/BAO/Forward.php +++ b/CRM/Mailing/Event/BAO/Forward.php @@ -226,7 +226,8 @@ class CRM_Mailing_Event_BAO_Forward extends CRM_Mailing_Event_DAO_Forward { * @return int Number of rows in result set * @static */ - public static function getTotalCount($mailing_id, $job_id = NULL, + public static function getTotalCount( + $mailing_id, $job_id = NULL, $is_distinct = FALSE ) { $dao = new CRM_Core_DAO(); @@ -285,7 +286,8 @@ class CRM_Mailing_Event_BAO_Forward extends CRM_Mailing_Event_DAO_Forward { * @return array Result set * @static */ - public static function &getRows($mailing_id, $job_id = NULL, + public static function &getRows( + $mailing_id, $job_id = NULL, $is_distinct = FALSE, $offset = NULL, $rowCount = NULL, $sort = NULL ) { diff --git a/CRM/Mailing/Event/BAO/Opened.php b/CRM/Mailing/Event/BAO/Opened.php index f0b53107d4..5810f76936 100755 --- a/CRM/Mailing/Event/BAO/Opened.php +++ b/CRM/Mailing/Event/BAO/Opened.php @@ -81,7 +81,8 @@ class CRM_Mailing_Event_BAO_Opened extends CRM_Mailing_Event_DAO_Opened { * @return int Number of rows in result set * @static */ - public static function getTotalCount($mailing_id, + public static function getTotalCount( + $mailing_id, $job_id = NULL, $is_distinct = FALSE, $toDate = NULL @@ -228,7 +229,8 @@ class CRM_Mailing_Event_BAO_Opened extends CRM_Mailing_Event_DAO_Opened { * @return array Result set * @static */ - public static function &getRows($mailing_id, $job_id = NULL, + public static function &getRows( + $mailing_id, $job_id = NULL, $is_distinct = FALSE, $offset = NULL, $rowCount = NULL, $sort = NULL, $contact_id = NULL ) { $dao = new CRM_Core_Dao(); diff --git a/CRM/Mailing/Event/BAO/Queue.php b/CRM/Mailing/Event/BAO/Queue.php index 0cf3d467d4..b459ff8bfc 100644 --- a/CRM/Mailing/Event/BAO/Queue.php +++ b/CRM/Mailing/Event/BAO/Queue.php @@ -184,7 +184,8 @@ class CRM_Mailing_Event_BAO_Queue extends CRM_Mailing_Event_DAO_Queue { * @return array Result set * @static */ - public static function &getRows($mailing_id, $job_id = NULL, $offset = NULL, + public static function &getRows( + $mailing_id, $job_id = NULL, $offset = NULL, $rowCount = NULL, $sort = NULL ) { $dao = new CRM_Core_Dao(); diff --git a/CRM/Mailing/Event/BAO/Reply.php b/CRM/Mailing/Event/BAO/Reply.php index 646f6762f4..7c33b6f6e5 100644 --- a/CRM/Mailing/Event/BAO/Reply.php +++ b/CRM/Mailing/Event/BAO/Reply.php @@ -316,7 +316,8 @@ class CRM_Mailing_Event_BAO_Reply extends CRM_Mailing_Event_DAO_Reply { * @return int Number of rows in result set * @static */ - public static function getTotalCount($mailing_id, $job_id = NULL, + public static function getTotalCount( + $mailing_id, $job_id = NULL, $is_distinct = FALSE ) { $dao = new CRM_Core_DAO(); @@ -375,7 +376,8 @@ class CRM_Mailing_Event_BAO_Reply extends CRM_Mailing_Event_DAO_Reply { * @return array Result set * @static */ - public static function &getRows($mailing_id, $job_id = NULL, + public static function &getRows( + $mailing_id, $job_id = NULL, $is_distinct = FALSE, $offset = NULL, $rowCount = NULL, $sort = NULL ) { diff --git a/CRM/Mailing/Event/BAO/TrackableURLOpen.php b/CRM/Mailing/Event/BAO/TrackableURLOpen.php index 8b1a0b2101..42641297f6 100755 --- a/CRM/Mailing/Event/BAO/TrackableURLOpen.php +++ b/CRM/Mailing/Event/BAO/TrackableURLOpen.php @@ -110,7 +110,8 @@ class CRM_Mailing_Event_BAO_TrackableURLOpen extends CRM_Mailing_Event_DAO_Track * @return int Number of rows in result set * @static */ - public static function getTotalCount($mailing_id, $job_id = NULL, + public static function getTotalCount( + $mailing_id, $job_id = NULL, $is_distinct = FALSE, $url_id = NULL, $toDate = NULL ) { $dao = new CRM_Core_DAO(); @@ -261,7 +262,8 @@ class CRM_Mailing_Event_BAO_TrackableURLOpen extends CRM_Mailing_Event_DAO_Track * @return array Result set * @static */ - public static function &getRows($mailing_id, $job_id = NULL, + public static function &getRows( + $mailing_id, $job_id = NULL, $is_distinct = FALSE, $url_id, $offset = NULL, $rowCount = NULL, $sort = NULL, $contact_id = NULL ) { diff --git a/CRM/Mailing/Event/BAO/Unsubscribe.php b/CRM/Mailing/Event/BAO/Unsubscribe.php index 0cc94106d7..b765a77cc0 100755 --- a/CRM/Mailing/Event/BAO/Unsubscribe.php +++ b/CRM/Mailing/Event/BAO/Unsubscribe.php @@ -427,7 +427,8 @@ WHERE email = %2 * @return int Number of rows in result set * @static */ - public static function getTotalCount($mailing_id, $job_id = NULL, + public static function getTotalCount( + $mailing_id, $job_id = NULL, $is_distinct = FALSE, $org_unsubscribe = NULL, $toDate = NULL ) { $dao = new CRM_Core_DAO(); @@ -498,7 +499,8 @@ WHERE email = %2 * @return array Result set * @static */ - public static function &getRows($mailing_id, $job_id = NULL, + public static function &getRows( + $mailing_id, $job_id = NULL, $is_distinct = FALSE, $offset = NULL, $rowCount = NULL, $sort = NULL, $org_unsubscribe = NULL ) { diff --git a/CRM/Mailing/Selector/Search.php b/CRM/Mailing/Selector/Search.php index 393149939a..2173cc9ba9 100644 --- a/CRM/Mailing/Selector/Search.php +++ b/CRM/Mailing/Selector/Search.php @@ -151,7 +151,8 @@ class CRM_Mailing_Selector_Search extends CRM_Core_Selector_Base implements CRM_ * @return \CRM_Mailing_Selector_Search @access public */ - function __construct(&$queryParams, + function __construct( + &$queryParams, $action = CRM_Core_Action::NONE, $mailingClause = NULL, $single = FALSE,