+--------------------------------------------------------------------+
*/
-use Civi\ActionSchedule\RecipientBuilder;
/**
* Class CRM_Contribute_ActionMapping_ByPage
* @throws CRM_Core_Exception
*/
public function getValueLabels() {
- return CRM_Contribute_BAO_Contribution::buildOptions('contribution_page_id', 'get', array());
+ return CRM_Contribute_BAO_Contribution::buildOptions('contribution_page_id', 'get', []);
}
/**
* @throws CRM_Core_Exception
*/
public function getStatusLabels($value) {
- return CRM_Contribute_BAO_Contribution::buildOptions('contribution_status_id', 'get', array());
+ return CRM_Contribute_BAO_Contribution::buildOptions('contribution_status_id', 'get', []);
}
/**
* Array(string $fieldName => string $fieldLabel).
*/
public function getDateFields() {
- return array(
+ return [
'receive_date' => ts('Receive Date'),
'cancel_date' => ts('Cancel Date'),
'receipt_date' => ts('Receipt Date'),
'thankyou_date' => ts('Thank You Date'),
- );
+ ];
}
/**
* Ex: array('assignee' => 'Activity Assignee').
*/
public function getRecipientTypes() {
- return array();
+ return [];
}
/**
* @see getRecipientTypes
*/
public function getRecipientListing($recipientType) {
- return array();
+ return [];
}
/**
* List of error messages.
*/
public function validateSchedule($schedule) {
- return array();
+ return [];
}
/**
return $query;
}
+ /**
+ * Determine whether a schedule based on this mapping should
+ * reset the reminder state if the trigger date changes.
+ *
+ * @return bool
+ *
+ * @param \CRM_Core_DAO_ActionSchedule $schedule
+ */
+ public function resetOnTriggerDateChange($schedule) {
+ return FALSE;
+ }
+
}