Merge pull request #5666 from davejenx/CRM-16321
[civicrm-core.git] / CRM / Pledge / Task.php
index b855f986cfcac8500925fd669ea6df68bd036a68..4d166216892465bb60d3ae3b9c8ebe7dd88632b4 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$
  *
  */
@@ -45,7 +45,6 @@ class CRM_Pledge_Task {
    * The task array
    *
    * @var array
-   * @static
    */
   static $_tasks = NULL;
 
@@ -53,7 +52,6 @@ class CRM_Pledge_Task {
    * The optional task array
    *
    * @var array
-   * @static
    */
   static $_optionalTasks = NULL;
 
@@ -61,13 +59,14 @@ class CRM_Pledge_Task {
    * These tasks are the core set of tasks that the user can perform
    * on a contact / group of contacts
    *
-   * @return array the set of tasks for a group of contacts
-   * @static
+   * @return array
+   *   the set of tasks for a group of contacts
    */
   public static function &tasks() {
     if (!self::$_tasks) {
-      self::$_tasks = array(1 => array(
-        'title' => ts('Delete Pledges'),
+      self::$_tasks = array(
+        1 => array(
+          'title' => ts('Delete Pledges'),
           'class' => 'CRM_Pledge_Form_Task_Delete',
           'result' => FALSE,
         ),
@@ -97,10 +96,10 @@ class CRM_Pledge_Task {
   }
 
   /**
-   * These tasks are the core set of task titles
+   * These tasks are the core set of task titles.
    *
-   * @return array the set of task titles
-   * @static
+   * @return array
+   *   the set of task titles
    */
   public static function &taskTitles() {
     self::tasks();
@@ -112,10 +111,10 @@ class CRM_Pledge_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
+   * @return array
+   *   the set of optional tasks for a group of contacts
    */
   public static function &optionalTaskTitle() {
     $tasks = array();
@@ -128,7 +127,8 @@ class CRM_Pledge_Task {
    *
    * @param int $permission
    *
-   * @return array set of tasks that are valid for the user
+   * @return array
+   *   set of tasks that are valid for the user
    */
   public static function &permissionedTaskTitles($permission) {
     $tasks = array();
@@ -155,8 +155,8 @@ class CRM_Pledge_Task {
    *
    * @param int $value
    *
-   * @return array the set of tasks for a group of pledge holders
-   * @static
+   * @return array
+   *   the set of tasks for a group of pledge holders
    */
   public static function getTask($value) {
     self::tasks();
@@ -169,5 +169,5 @@ class CRM_Pledge_Task {
       self::$_tasks[$value]['result'],
     );
   }
-}
 
+}