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
22 class CRM_Member_Form_Task_Email
extends CRM_Member_Form_Task
{
23 use CRM_Contact_Form_Task_EmailTrait
;
26 * Build all the data structures needed to build the form.
30 * @throws \CRM_Core_Exception
31 * @throws \CiviCRM_API3_Exception
33 public function preProcess() {
34 CRM_Contact_Form_Task_EmailCommon
::preProcessFromAddress($this);
37 // we have all the membership ids, so now we get the contact ids
38 parent
::setContactIDs();
40 $this->assign('single', $this->_single
);
44 * List available tokens for this form.
48 public function listTokens() {
49 $tokens = CRM_Core_SelectValues
::contactTokens();