projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #11703 from eileenmcnaughton/export
[civicrm-core.git]
/
CRM
/
Core
/
Task.php
diff --git
a/CRM/Core/Task.php
b/CRM/Core/Task.php
index 96a64e8a56e3595b199718d3f6b82036afda1973..caa1107f8bdc7b65b5986b8217f7a8300495912f 100644
(file)
--- a/
CRM/Core/Task.php
+++ b/
CRM/Core/Task.php
@@
-3,7
+3,7
@@
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-201
7
|
+ | Copyright CiviCRM LLC (c) 2004-201
8
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-27,7
+27,7
@@
/**
* @package CRM
/**
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-201
7
+ * @copyright CiviCRM LLC (c) 2004-201
8
*/
/**
*/
/**
@@
-120,7
+120,7
@@
abstract class CRM_Core_Task {
/**
* Show tasks selectively based on the permission level
* of the user
/**
* Show tasks selectively based on the permission level
* of the user
- * This function should be call parent::corePermissionedTaskTitles
+ * This function should be
overridden by the child class which would normally
call parent::corePermissionedTaskTitles
*
* @param int $permission
* @param array $params
*
* @param int $permission
* @param array $params
@@
-129,7
+129,9
@@
abstract class CRM_Core_Task {
* @return array
* set of tasks that are valid for the user
*/
* @return array
* set of tasks that are valid for the user
*/
- abstract public static function permissionedTaskTitles($permission, $params);
+ public static function permissionedTaskTitles($permission, $params) {
+ return self::corePermissionedTaskTitles(self::tasks(), $permission, $params);
+ }
/**
* Show tasks selectively based on the permission level
/**
* Show tasks selectively based on the permission level