diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-05-08 16:24:24 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-05-15 17:51:04 +0200 |
commit | 88ebb15f1d91b82022e02903ab73338065e223b9 (patch) | |
tree | fab7c807dc21209aa00980701107e26d695dba74 /apps/files/lib | |
parent | 9ccb3279dd09b7042ab07c936a4c04127282476f (diff) | |
download | nextcloud-server-88ebb15f1d91b82022e02903ab73338065e223b9.tar.gz nextcloud-server-88ebb15f1d91b82022e02903ab73338065e223b9.zip |
Added navigation manager in files app for the sidebar
Apps can now register navigation items into the sidebar of the files app.
For every sidebar item there is a container.
The container's content is rendered based on the script name given at
registration time.
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/app.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/files/lib/app.php b/apps/files/lib/app.php index ed4aa32c662..e32225d0680 100644 --- a/apps/files/lib/app.php +++ b/apps/files/lib/app.php @@ -31,6 +31,11 @@ class App { private $l10n; /** + * @var \OCP\INavigationManager + */ + private static $navigationManager; + + /** * @var \OC\Files\View */ private $view; @@ -41,6 +46,18 @@ class App { } /** + * Returns the app's navigation manager + * + * @return \OCP\INavigationManager + */ + public static function getNavigationManager() { + if (self::$navigationManager === null) { + self::$navigationManager = new \OC\NavigationManager(); + } + return self::$navigationManager; + } + + /** * rename a file * * @param string $dir |