X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FGrant%2FTask.php;h=a5ec0f4ac2918c44b88458820adc6d379af6a00c;hb=b6e6000818a3bc99d2292cb50ea8470e85bff7de;hp=8ea92e05427e09f92b0a348c0a417d1bfbd0d3ad;hpb=af321125666c7444accea956adaad22395fcd4c9;p=civicrm-core.git diff --git a/CRM/Grant/Task.php b/CRM/Grant/Task.php index 8ea92e0542..a5ec0f4ac2 100644 --- a/CRM/Grant/Task.php +++ b/CRM/Grant/Task.php @@ -45,7 +45,6 @@ class CRM_Grant_Task { * The task array * * @var array - * @static */ static $_tasks = NULL; @@ -53,7 +52,6 @@ class CRM_Grant_Task { * The optional task array * * @var array - * @static */ static $_optionalTasks = NULL; @@ -61,14 +59,14 @@ class CRM_Grant_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 Grants'), + 1 => array( + 'title' => ts('Delete Grants'), 'class' => 'CRM_Grant_Form_Task_Delete', 'result' => FALSE, ), @@ -103,8 +101,8 @@ class CRM_Grant_Task { /** * 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(); @@ -121,7 +119,8 @@ class CRM_Grant_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(); @@ -147,8 +146,8 @@ class CRM_Grant_Task { * * @param int $value * - * @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 getTask($value) { self::tasks();