X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FTask.php;h=9d1b8672016ab654b655db602e4b71dc00c867c0;hb=63e91f559645ec20ff4bcce59ea8c5cad7ced61e;hp=5c7f45be679da9118bd8bc14f7f3826fb1c0c4f2;hpb=e425a965789b9e5a86069069c8fa18c50d3e2b6a;p=civicrm-core.git diff --git a/CRM/Contact/Task.php b/CRM/Contact/Task.php index 5c7f45be67..9d1b867201 100644 --- a/CRM/Contact/Task.php +++ b/CRM/Contact/Task.php @@ -67,7 +67,7 @@ class CRM_Contact_Task { COMMUNICATION_PREFS = 25; /** - * the task array + * The task array * * @var array * @static @@ -75,7 +75,7 @@ class CRM_Contact_Task { static $_tasks = NULL; /** - * the optional task array + * The optional task array * * @var array * @static @@ -310,7 +310,7 @@ class CRM_Contact_Task { } /** - * show tasks selectively based on the permission level + * Show tasks selectively based on the permission level * of the user * * @param int $permission @@ -369,6 +369,11 @@ class CRM_Contact_Task { return $tasks; } + /** + * @param $value + * + * @return array + */ static function getTask($value) { self::initTasks();