*
*/
class CRM_Contribute_Task {
- CONST DELETE_CONTRIBUTIONS = 1, PRINT_CONTRIBUTIONS = 2, EXPORT_CONTRIBUTIONS = 3, BATCH_CONTRIBUTIONS = 4, EMAIL_CONTACTS = 5, UPDATE_STATUS = 6, PDF_RECEIPT = 7;
+ const DELETE_CONTRIBUTIONS = 1, PRINT_CONTRIBUTIONS = 2, EXPORT_CONTRIBUTIONS = 3, BATCH_CONTRIBUTIONS = 4, EMAIL_CONTACTS = 5, UPDATE_STATUS = 6, PDF_RECEIPT = 7;
/**
* The task array
*
* @return array the set of tasks for a group of contacts
* @static
- * @access public
*/
- static function &tasks() {
+ public static function &tasks() {
if (!(self::$_tasks)) {
self::$_tasks = array(
1 => array(
}
//CRM-12920 - check for edit permission
if( !CRM_Core_Permission::check('edit contributions') ){
- unset(self::$_tasks[4],self::$_tasks[6]);
+ unset(self::$_tasks[4], self::$_tasks[6]);
}
// remove action "Print or Email Contribution Invoices"
*
* @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) {
* @param bool $softCreditFiltering
*
* @return array set of tasks that are valid for the user
- * @access public
*/
- static function &permissionedTaskTitles($permission, $softCreditFiltering = FALSE) {
+ public static function &permissionedTaskTitles($permission, $softCreditFiltering = FALSE) {
$tasks = array();
if (($permission == CRM_Core_Permission::EDIT)
|| CRM_Core_Permission::check('edit contributions')
*
* @return array the set of tasks for a group of contributors
* @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 print task by default
);
}
}
-