File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ \OC ::$ server ->getNavigationManager ()->add (function () {
4+ $ urlGenerator = \OC ::$ server ->getURLGenerator ();
5+ return [
6+ // the string under which your app will be referenced in Nextcloud
7+ 'id ' => 'timetracker ' ,
8+
9+ // sorting weight for the navigation. The higher the number, the higher
10+ // will it be listed in the navigation
11+ 'order ' => 10 ,
12+
13+ // the route that will be shown on startup
14+ 'href ' => $ urlGenerator ->linkToRoute ('timetracker.page.index ' ),
15+
16+ // the icon that will be shown in the navigation
17+ // this file needs to exist in img/
18+ 'icon ' => $ urlGenerator ->imagePath ('timetracker ' , 'app.svg ' ),
19+
20+ // the title of your application. This will be used in the
21+ // navigation or on the settings page of your app
22+ 'name ' => \OC ::$ server ->getL10N ('timetracker ' )->t ('Time Tracker ' ),
23+ ];
24+ });
25+
26+ // execute OCA\MyApp\BackgroundJob\Task::run when cron is called
27+ //\OC::$server->getJobList()->add('OCA\MyApp\BackgroundJob\Task');
28+
29+ // execute OCA\MyApp\Hooks\User::deleteUser before a user is being deleted
30+ //\OCP\Util::connectHook('OC_User', 'pre_deleteUser', 'OCA\MyApp\Hooks\User', 'deleteUser');
You can’t perform that action at this time.
0 commit comments