diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-09-20 17:34:33 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-09-20 20:20:01 +0200 |
commit | e3013c580108e6b0cc332ba14976f3ffb4b7b274 (patch) | |
tree | d89d9dc176abd69974ebc3d7c275e5bb67d8cb12 /lib/public | |
parent | aa8a85f77d0c6705ee727d182e95d288ba7b7917 (diff) | |
download | nextcloud-server-e3013c580108e6b0cc332ba14976f3ffb4b7b274.tar.gz nextcloud-server-e3013c580108e6b0cc332ba14976f3ffb4b7b274.zip |
Add Navigation class to server container
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/inavigationmanager.php | 27 | ||||
-rw-r--r-- | lib/public/iservercontainer.php | 5 |
2 files changed, 32 insertions, 0 deletions
diff --git a/lib/public/inavigationmanager.php b/lib/public/inavigationmanager.php new file mode 100644 index 00000000000..21744dd1c21 --- /dev/null +++ b/lib/public/inavigationmanager.php @@ -0,0 +1,27 @@ +<?php +/** + * Copyright (c) 2013 Bart Visscher <bartv@thisnet.nl> + * This file is licensed under the Affero General Public License version 3 or + * later. + * See the COPYING-README file. + * + */ + +namespace OCP; + +/** + * Manages the owncloud navigation + */ +interface INavigationManager { + /** + * Creates a new navigation entry + * @param array $entry containing: id, name, order, icon and href key + */ + public function add(array $entry); + + /** + * Sets the current navigation entry of the currently running app + * @param string $appId id of the app entry to activate (from added $entry) + */ + public function setActiveEntry($appId); +}
\ No newline at end of file diff --git a/lib/public/iservercontainer.php b/lib/public/iservercontainer.php index 5481cd6ce6a..ebcc0fe4cd4 100644 --- a/lib/public/iservercontainer.php +++ b/lib/public/iservercontainer.php @@ -70,6 +70,11 @@ interface IServerContainer { function getUserSession(); /** + * @return \OCP\INavigationManager + */ + function getNavigationManager(); + + /** * Returns an ICache instance * * @return \OCP\ICache |