3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
19 * This class provides the functionality to email a group of contacts.
21 class CRM_Contribute_Form_Task_Email
extends CRM_Contribute_Form_Task
{
22 use CRM_Contact_Form_Task_EmailTrait
;
25 * Build all the data structures needed to build the form.
27 public function preProcess() {
28 CRM_Contact_Form_Task_EmailCommon
::preProcessFromAddress($this);
31 // we have all the contribution ids, so now we get the contact ids
32 parent
::setContactIDs();
34 $this->assign('single', $this->_single
);
38 * Build the form object.
40 public function buildQuickForm() {
42 $this->assign('emailTask', TRUE);
44 CRM_Contact_Form_Task_EmailCommon
::buildQuickForm($this);
48 * List available tokens for this form.
52 public function listTokens() {
53 $tokens = CRM_Core_SelectValues
::contactTokens();
54 $tokens = array_merge(CRM_Core_SelectValues
::contributionTokens(), $tokens);