class CRM_Mailing_Event_BAO_MailingEventDelivered extends CRM_Mailing_Event_DAO_MailingEventDelivered {
/**
- * Create a new delivery event.
+ * Record a new delivery event.
*
* @param array $params
* Associative array of delivery event values.
*
* @return \CRM_Mailing_Event_BAO_MailingEventDelivered
*/
- public static function &create(&$params) {
- $q = &CRM_Mailing_Event_BAO_MailingEventQueue::verify($params['job_id'],
+ public static function recordDelivery(&$params) {
+ $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify($params['job_id'],
$params['event_queue_id'],
$params['hash']
);
return $delivered;
}
+ /**
+ * Create function was renamed `recordDelivery` because it's not a standard CRUD create function
+ *
+ * @param array $params
+ * @deprecated
+ *
+ * @return \CRM_Mailing_Event_BAO_MailingEventDelivered
+ */
+ public static function create(&$params) {
+ CRM_Core_Error::deprecatedFunctionWarning('recordDelivery');
+ return self::recordDelivery($params);
+ }
+
/**
* Get row count for the event selector.
*
$successfulForward = TRUE;
// Register the delivery event.
- CRM_Mailing_Event_BAO_MailingEventDelivered::create($params);
+ CRM_Mailing_Event_BAO_MailingEventDelivered::recordDelivery($params);
}
$transaction->commit();
--- /dev/null
+<?php
+/*
+ +--------------------------------------------------------------------+
+ | Copyright CiviCRM LLC. All rights reserved. |
+ | |
+ | This work is published under the GNU AGPLv3 license with some |
+ | permitted exceptions and without any warranty. For full license |
+ | and copyright information, see https://civicrm.org/licensing |
+ +--------------------------------------------------------------------+
+ */
+namespace Civi\Api4;
+
+/**
+ * Tracks when a queued email is actually delivered to the MTA.
+ *
+ * @see \Civi\Api4\Mailing
+ * @since 5.64
+ * @package Civi\Api4
+ */
+class MailingEventDelivered extends Generic\DAOEntity {
+ use Generic\Traits\ReadOnlyEntity;
+
+}
--- /dev/null
+<?php
+/*
+ +--------------------------------------------------------------------+
+ | Copyright CiviCRM LLC. All rights reserved. |
+ | |
+ | This work is published under the GNU AGPLv3 license with some |
+ | permitted exceptions and without any warranty. For full license |
+ | and copyright information, see https://civicrm.org/licensing |
+ +--------------------------------------------------------------------+
+ */
+namespace Civi\Api4;
+
+/**
+ * Tracks when a contact forwards a mailing to a (new) contact
+ *
+ * @see \Civi\Api4\Mailing
+ * @since 5.64
+ * @package Civi\Api4
+ */
+class MailingEventForward extends Generic\DAOEntity {
+ use Generic\Traits\ReadOnlyEntity;
+
+}
--- /dev/null
+<?php
+/*
+ +--------------------------------------------------------------------+
+ | Copyright CiviCRM LLC. All rights reserved. |
+ | |
+ | This work is published under the GNU AGPLv3 license with some |
+ | permitted exceptions and without any warranty. For full license |
+ | and copyright information, see https://civicrm.org/licensing |
+ +--------------------------------------------------------------------+
+ */
+namespace Civi\Api4;
+
+/**
+ * TTracks when a contact replies to a mailing.
+ *
+ * @see \Civi\Api4\Mailing
+ * @since 5.64
+ * @package Civi\Api4
+ */
+class MailingEventReply extends Generic\DAOEntity {
+ use Generic\Traits\ReadOnlyEntity;
+
+}