Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 86... Línea 86...
86
    public function get_events(
86
    public function get_events(
87
        $timestartfrom = null,
87
        $timestartfrom = null,
88
        $timestartto = null,
88
        $timestartto = null,
89
        $timesortfrom = null,
89
        $timesortfrom = null,
90
        $timesortto = null,
90
        $timesortto = null,
91
        event_interface $timestartafterevent = null,
91
        ?event_interface $timestartafterevent = null,
92
        event_interface $timesortafterevent = null,
92
        ?event_interface $timesortafterevent = null,
93
        $limitnum = 20,
93
        $limitnum = 20,
94
        $type = null,
94
        $type = null,
95
        array $usersfilter = null,
95
        ?array $usersfilter = null,
96
        array $groupsfilter = null,
96
        ?array $groupsfilter = null,
97
        array $coursesfilter = null,
97
        ?array $coursesfilter = null,
98
        array $categoriesfilter = null,
98
        ?array $categoriesfilter = null,
99
        $withduration = true,
99
        $withduration = true,
100
        $ignorehidden = true,
100
        $ignorehidden = true,
101
        callable $filter = null,
101
        ?callable $filter = null,
102
        ?string $searchvalue = null
102
        ?string $searchvalue = null
103
    ) {
103
    ) {
Línea 104... Línea 104...
104
 
104
 
105
        $fromquery = function($field, $timefrom, $lastseenmethod, $afterevent, $withduration) {
105
        $fromquery = function($field, $timefrom, $lastseenmethod, $afterevent, $withduration) {
Línea 200... Línea 200...
200
 
200
 
201
    public function get_action_events_by_timesort(
201
    public function get_action_events_by_timesort(
202
        \stdClass $user,
202
        \stdClass $user,
203
        $timesortfrom = null,
203
        $timesortfrom = null,
204
        $timesortto = null,
204
        $timesortto = null,
205
        event_interface $afterevent = null,
205
        ?event_interface $afterevent = null,
206
        $limitnum = 20,
206
        $limitnum = 20,
207
        $limittononsuspendedevents = false,
207
        $limittononsuspendedevents = false,
208
        ?string $searchvalue = null
208
        ?string $searchvalue = null
209
    ) {
209
    ) {
Línea 245... Línea 245...
245
    public function get_action_events_by_course(
245
    public function get_action_events_by_course(
246
        \stdClass $user,
246
        \stdClass $user,
247
        \stdClass $course,
247
        \stdClass $course,
248
        $timesortfrom = null,
248
        $timesortfrom = null,
249
        $timesortto = null,
249
        $timesortto = null,
250
        event_interface $afterevent = null,
250
        ?event_interface $afterevent = null,
251
        $limitnum = 20,
251
        $limitnum = 20,
252
        ?string $searchvalue = null
252
        ?string $searchvalue = null
253
    ) {
253
    ) {
254
        $groupings = groups_get_user_groups($course->id, $user->id);
254
        $groupings = groups_get_user_groups($course->id, $user->id);
255
        return array_values(
255
        return array_values(