Calendar Event, affected users

Calendar Event, affected users

by Artur Welp -
Number of replies: 0

Hello.

Now i am working on a calendar extension. Moodle 3.0.1.

So i can take the Event Hook  and manage the arguments. In this object there is a set of informations about the created event.

Example of a Assign Event

Array
(
[0] => stdClass Object
(
[name] => One
[timestart] => 1465873200
[description] =>
[courseid] => 366
[groupid] => 0
[userid] => 7193
[modulename] => assign
[instance] => 174
[eventtype] => due
[timeduration] => 0
[eventrepeats] => 0
[id] => 165
[format] => 1
[context] => context_course Object
(
[_id:protected] => 17115
[_contextlevel:protected] => 50
[_instanceid:protected] => 366
[_path:protected] => /1/17114/17115
[_depth:protected] => 3
)

[timemodified] => 1465321577
)

[1] => Array
(
)
)

With this informations, i need to know the affected users.

In other words, i have the Event ID and i need to know which users can see it.


Average of ratings: -