Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ad2bfd
)
MDL-59388 calendar: Allow filter to be specified when fetching events
author
Andrew Nicols
<andrew@nicols.co.uk>
Wed, 19 Jul 2017 01:36:29 +0000
(09:36 +0800)
committer
Simey Lameze
<simey@moodle.com>
Mon, 14 Aug 2017 01:28:23 +0000
(09:28 +0800)
calendar/classes/local/api.php
patch
|
blob
|
blame
|
history
diff --git
a/calendar/classes/local/api.php
b/calendar/classes/local/api.php
index
4eb25fd
..
e7bddfd
100644
(file)
--- a/
calendar/classes/local/api.php
+++ b/
calendar/classes/local/api.php
@@
-70,7
+70,8
@@
class api {
array $groupsfilter = null,
array $coursesfilter = null,
$withduration = true,
- $ignorehidden = true
+ $ignorehidden = true,
+ callable $filter = null
) {
global $USER;
@@
-100,7
+101,8
@@
class api {
$groupsfilter,
$coursesfilter,
$withduration,
- $ignorehidden
+ $ignorehidden,
+ $filter
);
}