X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCampaign%2FTask.php;h=db4f7f563587154f7ed7d97a5f4536bc53f41ac0;hb=c70fe6df65806594654d845249a7ad9152e3cac0;hp=77eab97b3ac2e2acb1b5f726f1d407402aeeab7c;hpb=fc39f196c427ec3f13f2a240967bd36f426e9609;p=civicrm-core.git diff --git a/CRM/Campaign/Task.php b/CRM/Campaign/Task.php index 77eab97b3a..db4f7f5635 100755 --- a/CRM/Campaign/Task.php +++ b/CRM/Campaign/Task.php @@ -1,7 +1,7 @@ array( 'title' => ts('Record Respondents Interview'), @@ -111,9 +110,8 @@ class CRM_Campaign_Task { * * @return array the set of task titles * @static - * @access public */ - static function &taskTitles() { + public static function &taskTitles() { self::tasks(); $titles = array(); foreach (self::$_tasks as $id => $value) { @@ -124,15 +122,14 @@ class CRM_Campaign_Task { } /** - * show tasks selectively based on the permission level + * Show tasks selectively based on the permission level * of the user * * @param int $permission * * @return array set of tasks that are valid for the user - * @access public */ - static function &permissionedTaskTitles($permission) { + public static function &permissionedTaskTitles($permission) { $tasks = self::taskTitles(); return $tasks; @@ -146,9 +143,8 @@ class CRM_Campaign_Task { * * @return array the set of tasks for a group of voters. * @static - * @access public */ - static function getTask($value) { + public static function getTask($value) { self::tasks(); if (!$value || !CRM_Utils_Array::value($value, self::$_tasks)) { // make the interview task by default @@ -161,4 +157,3 @@ class CRM_Campaign_Task { ); } } -