inavigationmanager.php 634 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Copyright (c) 2013 Bart Visscher <bartv@thisnet.nl>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. *
  8. */
  9. namespace OCP;
  10. /**
  11. * Manages the ownCloud navigation
  12. */
  13. interface INavigationManager {
  14. /**
  15. * Creates a new navigation entry
  16. * @param array $entry containing: id, name, order, icon and href key
  17. */
  18. public function add(array $entry);
  19. /**
  20. * Sets the current navigation entry of the currently running app
  21. * @param string $appId id of the app entry to activate (from added $entry)
  22. */
  23. public function setActiveEntry($appId);
  24. }