Skip to content

Commit 93f1ae9

Browse files
committed
added appinfo.php
1 parent da98367 commit 93f1ae9

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

appinfo/app.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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');

0 commit comments

Comments
 (0)