X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FMailingContact.php;h=4f1c563a4671a99089db0b91bc020dd3d16ec010;hb=b71cb96619f284fb007d4365c33f59f088573d8f;hp=f58575e605918af19f388aa0144300f62c7d2ea6;hpb=82e7a8b8a4054c4814900ddf5e8fc56d6819c134;p=civicrm-core.git diff --git a/api/v3/MailingContact.php b/api/v3/MailingContact.php index f58575e605..4f1c563a46 100644 --- a/api/v3/MailingContact.php +++ b/api/v3/MailingContact.php @@ -26,18 +26,13 @@ */ /** - * File for the CiviCRM APIv3 contact and mailing functions + * This api exposes CiviCRM contact and mailing. * * @package CiviCRM_APIv3 - * @subpackage API_MailingContact - * - * @copyright CiviCRM LLC (c) 2004-2014 - * @version $Id$ - * */ /** - * Get all the mailings and details that a contact was involved with + * Get all the mailings and details that a contact was involved with. * * @param array $params * Input parameters - see _spec for details (returned by getfields) @@ -48,11 +43,13 @@ function civicrm_api3_mailing_contact_get($params) { return civicrm_api3_create_success(_civicrm_api3_mailing_contact_getresults($params, FALSE)); } + /** - * This is a wrapper for the functions that return the results from the 'quasi-entity' - * mailing contact + * This is a wrapper for the functions that return the results from the 'quasi-entity' mailing contact. + * * @param array $params * @param bool $count + * * @throws Exception */ function _civicrm_api3_mailing_contact_getresults($params, $count) { @@ -70,11 +67,12 @@ function _civicrm_api3_mailing_contact_getresults($params, $count) { $count ); } + /** - * Adjust Metadata for Get action + * Adjust Metadata for Get action. * * @param array $params - * Array or parameters determined by getfields. + * Array of parameters determined by getfields. */ function _civicrm_api3_mailing_contact_get_spec(&$params) { $params['contact_id']['api.required'] = 1; @@ -91,6 +89,8 @@ function _civicrm_api3_mailing_contact_get_spec(&$params) { } /** + * Helper function for mailing contact queries. + * * @param int $contactID * @param $offset * @param $limit @@ -199,6 +199,8 @@ LIMIT %2, %3 } /** + * Get delivered mailing contacts. + * * @param int $contactID * @param $offset * @param $limit @@ -238,6 +240,8 @@ AND meb.id IS NULL } /** + * Get bounced mailing contact records. + * * @param int $contactID * @param $offset * @param $limit @@ -270,7 +274,7 @@ INNER JOIN civicrm_mailing_event_bounce meb ON meb.event_queue_id = meq.id } /** - * Get count of all the mailings that a contact was involved with + * Get count of all the mailings that a contact was involved with. * * @param array $params * Input parameters per getfields