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
16 * $Id: Email.php 45499 2013-02-08 12:31:05Z kurund $
21 * This class provides the functionality to email a group of
24 class CRM_Member_Form_Task_Email
extends CRM_Member_Form_Task
{
27 * Are we operating in "single mode", i.e. sending email to one
32 public $_single = FALSE;
35 * Are we operating in "single mode", i.e. sending email to one
40 public $_noEmails = FALSE;
43 * All the existing templates in the system.
47 public $_templates = NULL;
50 * Build all the data structures needed to build the form.
54 public function preProcess() {
55 CRM_Contact_Form_Task_EmailCommon
::preProcessFromAddress($this);
58 // we have all the membership ids, so now we get the contact ids
59 parent
::setContactIDs();
61 $this->assign('single', $this->_single
);
65 * Build the form object.
70 public function buildQuickForm() {
72 $this->assign('emailTask', TRUE);
74 CRM_Contact_Form_Task_EmailCommon
::buildQuickForm($this);
78 * Process the form after the input has been submitted and validated.
83 public function postProcess() {
84 CRM_Contact_Form_Task_EmailCommon
::postProcess($this);
88 * List available tokens for this form.
92 public function listTokens() {
93 $tokens = CRM_Core_SelectValues
::contactTokens();