summaryrefslogtreecommitdiff
path: root/app/frontend/events/CalendarPreferenceEvents.php
blob: 76fa0717935c022ffcc5aa0dfb1183ace0825683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

Prado::using('Application.events.EventModule');
Prado::using('Application.model.User');
Prado::using('Application.facades.CalendarFacade');

class CalendarPreferenceEvents extends EventModule {

    public function onUserRegistered(User $user) {
        $facade = CalendarFacade::getInstance();
        $facade->setPreferredCalendars($user, $facade->getDefaultPreference());
    }

}

?>