diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2012-11-28 02:25:26 +0400 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2012-11-28 02:25:26 +0400 |
commit | b0c8cec8bb0d60f08d4c90e7812b096428e6e2c5 (patch) | |
tree | 7b51e76dee68ecc51aea9837a19683009d37c1b0 /apptemplate | |
parent | 460a69dd0be973dd6aee2094e5645f394e7b0c95 (diff) |
added documentation to the app.php
Diffstat (limited to 'apptemplate')
-rw-r--r-- | apptemplate/appinfo/app.php | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/apptemplate/appinfo/app.php b/apptemplate/appinfo/app.php index 9160daeca..91a4cc683 100644 --- a/apptemplate/appinfo/app.php +++ b/apptemplate/appinfo/app.php @@ -29,12 +29,26 @@ require_once \OC_App::getAppPath('apptemplate') . '/appinfo/bootstrap.php'; -OCP\App::registerAdmin('apptemplate', 'admin/settings'); +\OCP\App::registerAdmin('apptemplate', 'admin/settings'); -OCP\App::addNavigationEntry( array( +\OCP\App::addNavigationEntry( array( + + // the string under which your app will be referenced + // in owncloud, for instance: \OC_App::getAppPath('APP_ID') 'id' => 'apptemplate', + + // sorting weight for the navigation. The higher the number, the higher + // will it be listed in the navigation 'order' => 74, + + // the route that will be shown on startup 'href' => \OC_Helper::linkToRoute('apptemplate_index'), - 'icon' => OCP\Util::imagePath('apptemplate', 'example.png' ), + + // the icon that will be shown in the navigation + 'icon' => \OCP\Util::imagePath('apptemplate', 'example.png' ), + + // the title of your application. This will be used in the + // navigation or on the settings page of your app 'name' => \OC_L10N::get('apptemplate')->t('App Template') + )); |