+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* $Id$
*
*/
class CRM_Event_Task {
// Value for SAVE_SEARCH is set to 13 in accordance with CRM_Contact_Task::SAVE_SEARCH
const DELETE_EVENTS = 1, PRINT_EVENTS = 2, EXPORT_EVENTS = 3, BATCH_EVENTS = 4, CANCEL_REGISTRATION = 5, EMAIL_CONTACTS = 6,
- // Value for LABEL_CONTACTS is set to 16 in accordance with CRM_Contact_Task::LABEL_CONTACTS
- SAVE_SEARCH = 13, SAVE_SEARCH_UPDATE = 14, PARTICIPANT_STATUS = 15,
- LABEL_CONTACTS = 16, GROUP_CONTACTS = 20;
+ // Value for LABEL_CONTACTS is set to 16 in accordance with CRM_Contact_Task::LABEL_CONTACTS
+ SAVE_SEARCH = 13, SAVE_SEARCH_UPDATE = 14, PARTICIPANT_STATUS = 15,
+ LABEL_CONTACTS = 16, GROUP_CONTACTS = 20;
/**
* The task array
*
* @var array
- * @static
*/
static $_tasks = NULL;
* The optional task array
*
* @var array
- * @static
*/
static $_optionalTasks = NULL;
*
* @return array
* the set of tasks for a group of contacts
- * @static
*/
public static function &tasks() {
if (!(self::$_tasks)) {
self::$_tasks = array(
- 1 => array(
- 'title' => ts('Delete Participants'),
+ 1 => array(
+ 'title' => ts('Delete Participants'),
'class' => 'CRM_Event_Form_Task_Delete',
'result' => FALSE,
),
'class' => 'CRM_Event_Form_Task_Badge',
'result' => FALSE,
),
+ 17 => array(
+ 'title' => ts('Print PDF Letter for Participants'),
+ 'class' => 'CRM_Event_Form_Task_PDF',
+ 'result' => TRUE,
+ ),
20 => array(
'title' => ts('Add Contacts to Group'),
'class' => 'CRM_Event_Form_Task_AddToGroup',
*
* @return array
* the set of task titles
- * @static
*/
public static function &taskTitles() {
self::tasks();
}
/**
- * These tasks get added based on the context the user is in
+ * These tasks get added based on the context the user is in.
*
* @return array
* the set of optional tasks for a group of contacts
- * @static
*/
public static function &optionalTaskTitle() {
$tasks = array(
*
* @return array
* the set of tasks for a group of participants
- * @static
*/
public static function getTask($value) {
self::tasks();
self::$_tasks[$value]['result'],
);
}
+
}