Merge pull request #6454 from eileenmcnaughton/master
[civicrm-core.git] / CRM / Member / Task.php
index 2509e040e5cac0f031c007884eb354e9a7011e05..19bc954e984f9480896a203bec37af38ba9e8992 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$
  *
  */
@@ -46,7 +46,6 @@ class CRM_Member_Task {
    * The task array
    *
    * @var array
-   * @static
    */
   static $_tasks = NULL;
 
@@ -54,7 +53,6 @@ class CRM_Member_Task {
    * The optional task array
    *
    * @var array
-   * @static
    */
   static $_optionalTasks = NULL;
 
@@ -62,8 +60,8 @@ class CRM_Member_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)) {
@@ -118,7 +116,7 @@ class CRM_Member_Task {
         unset(self::$_tasks[1]);
       }
       //CRM-12920 - check for edit permission
-      if (!CRM_Core_Permission::check('edit memberships') ){
+      if (!CRM_Core_Permission::check('edit memberships'){
         unset(self::$_tasks[5]);
       }
     }
@@ -131,8 +129,8 @@ class CRM_Member_Task {
    * These tasks are the core set of task titles
    * on members
    *
-   * @return array the set of task titles
-   * @static
+   * @return array
+   *   the set of task titles
    */
   public static function &taskTitles() {
     self::tasks();
@@ -149,7 +147,8 @@ class CRM_Member_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();
@@ -177,8 +176,8 @@ class CRM_Member_Task {
    *
    * @param int $value
    *
-   * @return array the set of tasks for a group of members
-   * @static
+   * @return array
+   *   the set of tasks for a group of members
    */
   public static function getTask($value) {
     self::tasks();
@@ -191,4 +190,5 @@ class CRM_Member_Task {
       self::$_tasks[$value]['result'],
     );
   }
+
 }