X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FTask.php;h=4caa253392ff2f58a4bd808218e54907e2deda21;hb=c8881afb8c9973a27e206296e8eceddae8f33855;hp=9d1b8672016ab654b655db602e4b71dc00c867c0;hpb=1861d923dd4e29ac945caa98e1efbeda0bb71483;p=civicrm-core.git diff --git a/CRM/Contact/Task.php b/CRM/Contact/Task.php index 9d1b867201..4caa253392 100644 --- a/CRM/Contact/Task.php +++ b/CRM/Contact/Task.php @@ -1,7 +1,7 @@ array( @@ -279,11 +277,10 @@ class CRM_Contact_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 - * @access public + * @return array + * the set of tasks for a group of contacts */ - static function &taskTitles() { + public static function &taskTitles() { self::initTasks(); $titles = array(); @@ -314,12 +311,13 @@ class CRM_Contact_Task { * of the user * * @param int $permission - * @param bool $deletedContacts are these tasks for operating on deleted contacts? + * @param bool $deletedContacts + * Are these tasks for operating on deleted contacts?. * - * @return array set of tasks that are valid for the user - * @access public + * @return array + * set of tasks that are valid for the user */ - static function &permissionedTaskTitles($permission, $deletedContacts = FALSE) { + public static function &permissionedTaskTitles($permission, $deletedContacts = FALSE) { self::initTasks(); $tasks = array(); if ($deletedContacts) { @@ -358,11 +356,10 @@ class CRM_Contact_Task { /** * 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 - * @access public + * @return array + * the set of optional tasks for a group of contacts */ - static function &optionalTaskTitle() { + public static function &optionalTaskTitle() { $tasks = array( self::SAVE_SEARCH_UPDATE => self::$_tasks[self::SAVE_SEARCH_UPDATE]['title'], ); @@ -374,7 +371,7 @@ class CRM_Contact_Task { * * @return array */ - static function getTask($value) { + public static function getTask($value) { self::initTasks(); if (!CRM_Utils_Array::value($value, self::$_tasks)) { @@ -386,5 +383,5 @@ class CRM_Contact_Task { CRM_Utils_Array::value('result', self::$_tasks[$value]), ); } -} +}