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 $
20 * This class provides the functionality to email a group of
23 class CRM_Event_Form_Task_Email
extends CRM_Event_Form_Task
{
26 * Are we operating in "single mode", i.e. sending email to one
31 public $_single = FALSE;
34 * Are we operating in "single mode", i.e. sending email to one
39 public $_noEmails = FALSE;
42 * All the existing templates in the system.
46 public $_templates = NULL;
49 * Build all the data structures needed to build the form.
51 public function preProcess() {
52 CRM_Contact_Form_Task_EmailCommon
::preProcessFromAddress($this);
55 // we have all the participant ids, so now we get the contact ids
56 parent
::setContactIDs();
58 $this->assign('single', $this->_single
);
62 * Build the form object.
64 public function buildQuickForm() {
66 $this->assign('emailTask', TRUE);
68 CRM_Contact_Form_Task_EmailCommon
::buildQuickForm($this);
72 * Process the form after the input has been submitted and validated.
74 public function postProcess() {
75 CRM_Contact_Form_Task_EmailCommon
::postProcess($this);
79 * List available tokens for this form.
83 public function listTokens() {
84 $tokens = CRM_Core_SelectValues
::contactTokens();