2011-08-11 13:22:07 +04:00
|
|
|
<?php
|
2012-04-14 18:44:15 +04:00
|
|
|
$l=OC_L10N::get('calendar');
|
2012-03-03 17:30:52 +04:00
|
|
|
OC::$CLASSPATH['OC_Calendar_App'] = 'apps/calendar/lib/app.php';
|
|
|
|
OC::$CLASSPATH['OC_Calendar_Calendar'] = 'apps/calendar/lib/calendar.php';
|
|
|
|
OC::$CLASSPATH['OC_Calendar_Object'] = 'apps/calendar/lib/object.php';
|
|
|
|
OC::$CLASSPATH['OC_Calendar_Hooks'] = 'apps/calendar/lib/hooks.php';
|
|
|
|
OC::$CLASSPATH['OC_Connector_Sabre_CalDAV'] = 'apps/calendar/lib/connector_sabre.php';
|
2012-05-29 15:34:27 +04:00
|
|
|
OC::$CLASSPATH['OC_Calendar_Repeat'] = 'apps/calendar/lib/repeat.php';
|
2012-03-03 18:06:51 +04:00
|
|
|
OC::$CLASSPATH['OC_Calendar_Share'] = 'apps/calendar/lib/share.php';
|
2012-03-03 17:30:52 +04:00
|
|
|
OC::$CLASSPATH['OC_Search_Provider_Calendar'] = 'apps/calendar/lib/search.php';
|
2012-06-03 16:54:53 +04:00
|
|
|
OC::$CLASSPATH['OC_Calendar_Export'] = 'apps/calendar/lib/export.php';
|
2012-06-30 17:17:29 +04:00
|
|
|
OC::$CLASSPATH['OC_Calendar_Import'] = 'apps/calendar/lib/import.php';
|
2012-06-29 19:26:29 +04:00
|
|
|
//General Hooks
|
2012-07-17 05:04:04 +04:00
|
|
|
OCP\Util::connectHook('OC_User', 'post_createUser', 'OC_Calendar_Hooks', 'createUser');
|
2012-05-05 12:18:45 +04:00
|
|
|
OCP\Util::connectHook('OC_User', 'post_deleteUser', 'OC_Calendar_Hooks', 'deleteUser');
|
2012-06-29 19:26:29 +04:00
|
|
|
//Repeating Events Hooks
|
2012-06-11 17:18:46 +04:00
|
|
|
OCP\Util::connectHook('OC_Calendar', 'addEvent', 'OC_Calendar_Repeat', 'generate');
|
|
|
|
OCP\Util::connectHook('OC_Calendar', 'editEvent', 'OC_Calendar_Repeat', 'update');
|
|
|
|
OCP\Util::connectHook('OC_Calendar', 'deleteEvent', 'OC_Calendar_Repeat', 'clean');
|
|
|
|
OCP\Util::connectHook('OC_Calendar', 'moveEvent', 'OC_Calendar_Repeat', 'update');
|
2012-06-15 13:34:21 +04:00
|
|
|
OCP\Util::connectHook('OC_Calendar', 'deleteCalendar', 'OC_Calendar_Repeat', 'cleanCalendar');
|
2012-06-29 19:26:29 +04:00
|
|
|
//Sharing Hooks
|
|
|
|
OCP\Util::connectHook('OC_Calendar', 'deleteEvent', 'OC_Calendar_Share', 'post_eventdelete');
|
|
|
|
OCP\Util::connectHook('OC_Calendar', 'deleteCalendar', 'OC_Calendar_Share', 'post_caldelete');
|
2012-05-01 22:03:41 +04:00
|
|
|
OCP\Util::addscript('calendar','loader');
|
|
|
|
OCP\Util::addscript("3rdparty", "chosen/chosen.jquery.min");
|
2012-05-01 11:49:22 +04:00
|
|
|
OCP\Util::addStyle("3rdparty", "chosen/chosen");
|
2012-07-04 23:14:40 +04:00
|
|
|
OCP\Util::addStyle('3rdparty/miniColors', 'jquery.miniColors');
|
|
|
|
OCP\Util::addscript('3rdparty/miniColors', 'jquery.miniColors.min');
|
2012-05-02 02:50:26 +04:00
|
|
|
OCP\App::addNavigationEntry( array(
|
2012-03-03 17:30:52 +04:00
|
|
|
'id' => 'calendar_index',
|
|
|
|
'order' => 10,
|
2012-05-02 01:19:39 +04:00
|
|
|
'href' => OCP\Util::linkTo( 'calendar', 'index.php' ),
|
2012-05-02 02:20:45 +04:00
|
|
|
'icon' => OCP\Util::imagePath( 'calendar', 'icon.svg' ),
|
2012-03-03 17:30:52 +04:00
|
|
|
'name' => $l->t('Calendar')));
|
2012-05-01 11:49:22 +04:00
|
|
|
OC_Search::registerProvider('OC_Search_Provider_Calendar');
|