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 +--------------------------------------------------------------------+
14 * @copyright CiviCRM LLC https://civicrm.org/licensing
18 * This class provides the functionality to sms a group of contacts.
20 class CRM_Activity_Form_Task_SMS
extends CRM_Activity_Form_Task
{
23 * Are we operating in "single mode", i.e. sending sms to one
28 public $_single = FALSE;
31 * All the existing templates in the system.
35 public $_templates = NULL;
38 * Build all the data structures needed to build the form.
40 public function preProcess() {
42 CRM_Contact_Form_Task_SMSCommon
::preProcessProvider($this);
43 $this->assign('single', $this->_single
);
47 * Build the form object.
49 public function buildQuickForm() {
50 // Enable form element.
51 $this->assign('SMSTask', TRUE);
52 CRM_Contact_Form_Task_SMSCommon
::buildQuickForm($this);
56 * Process the form after the input has been submitted and validated.
58 public function postProcess() {
59 CRM_Contact_Form_Task_SMSCommon
::postProcess($this);
63 * List available tokens for this form.
67 public function listTokens() {
68 $tokens = CRM_Core_SelectValues
::contactTokens();