Lines Matching refs:record

49     $record = new \stdClass();
50 $record->name = 'event name';
51 $record->eventtype = 'site';
52 $record->repeat = 0;
53 $record->repeats = 0;
54 $record->timestart = time();
55 $record->timeduration = 0;
56 $record->timesort = 0;
57 $record->type = CALENDAR_EVENT_TYPE_STANDARD;
58 $record->courseid = 0;
59 $record->categoryid = 0;
62 $record->$name = $value;
65 $event = new \calendar_event($record);
66 return $event->create($record);
191 public function create_instance(\stdClass $record) { argument
195 if ($record->instance && $record->modulename) {
196 $module = new cm_info_proxy($record->instance, $record->modulename, $record->courseid);
199 if ($record->subscriptionid) {
200 $subscription = new std_proxy($record->subscriptionid, function($id) {
206 $record->id,
207 $record->name,
208 new event_description($record->description, $record->format),
209 new coursecat_proxy($record->categoryid),
210 new std_proxy($record->courseid, function($id) {
215 new std_proxy($record->groupid, function($id) {
220 new std_proxy($record->userid, function($id) {
225 !empty($record->repeatid) ? new repeat_event_collection($record, $this) : null,
227 $record->eventtype,
229 (new \DateTimeImmutable())->setTimestamp($record->timestart),
230 … (new \DateTimeImmutable())->setTimestamp($record->timestart + $record->timeduration),
231 …(new \DateTimeImmutable())->setTimestamp($record->timesort ? $record->timesort : $record->timestar…
232 (new \DateTimeImmutable())->setTimestamp($record->timemodified)
234 !empty($record->visible),
236 $record->location,
237 !empty($record->component) ? $record->component : null