CRM-16808 follow up - finally remove all references to calling doTransferPayment...
[civicrm-core.git] / CRM / Event / Task.php
index 9621d61e11edbcc96ffd63f42b5df2b1535e9a43..d354fb89edb62949ce2ebe8aa389f9e0e7d5030a 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | 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;
 
@@ -57,7 +56,6 @@ class CRM_Event_Task {
    * The optional task array
    *
    * @var array
-   * @static
    */
   static $_optionalTasks = NULL;
 
@@ -67,13 +65,12 @@ class CRM_Event_Task {
    *
    * @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,
         ),
@@ -128,6 +125,11 @@ class CRM_Event_Task {
           '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',
@@ -156,7 +158,6 @@ class CRM_Event_Task {
    *
    * @return array
    *   the set of task titles
-   * @static
    */
   public static function &taskTitles() {
     self::tasks();
@@ -171,11 +172,10 @@ class CRM_Event_Task {
   }
 
   /**
-   * 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(
@@ -222,7 +222,6 @@ class CRM_Event_Task {
    *
    * @return array
    *   the set of tasks for a group of participants
-   * @static
    */
   public static function getTask($value) {
     self::tasks();
@@ -235,4 +234,5 @@ class CRM_Event_Task {
       self::$_tasks[$value]['result'],
     );
   }
+
 }