X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FGrant%2FTask.php;h=a5ec0f4ac2918c44b88458820adc6d379af6a00c;hb=b6e6000818a3bc99d2292cb50ea8470e85bff7de;hp=c44e872ffec69d65e56e29c011b4717d5c9d0171;hpb=5667521530926d61b370a4bb0806b7e5ad63ccbc;p=civicrm-core.git diff --git a/CRM/Grant/Task.php b/CRM/Grant/Task.php index c44e872ffe..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,13 +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'), + self::$_tasks = array( + 1 => array( + 'title' => ts('Delete Grants'), 'class' => 'CRM_Grant_Form_Task_Delete', 'result' => FALSE, ), @@ -102,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(); @@ -120,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(); @@ -146,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();