diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-01-29 15:32:11 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-01-31 16:13:15 +0300 |
commit | 6d3c8d5546ced475bb050ce8471a12539b39a225 (patch) | |
tree | 09e2fa91df8f44b72aee2d1e2b0f06b893c1ed7f /lib/public/App.php | |
parent | 44b002665c936bf4450ed76bb4b6e5ff4c531337 (diff) |
Remove long time deprecated functions and deprecate \OCP\App
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/public/App.php')
-rw-r--r-- | lib/public/App.php | 46 |
1 files changed, 3 insertions, 43 deletions
diff --git a/lib/public/App.php b/lib/public/App.php index d44f719b7ea..29805df6ace 100644 --- a/lib/public/App.php +++ b/lib/public/App.php @@ -40,52 +40,10 @@ namespace OCP; /** * This class provides functions to manage apps in ownCloud * @since 4.0.0 + * @deprecated 14.0.0 */ class App { - /** - * Adds an entry to the navigation - * - * This function adds a new entry to the navigation visible to users. $data - * is an associative array. - * The following keys are required: - * - id: unique id for this entry ('addressbook_index') - * - href: link to the page - * - name: Human readable name ('Addressbook') - * - * The following keys are optional: - * - icon: path to the icon of the app - * - order: integer, that influences the position of your application in - * the navigation. Lower values come first. - * - * @param array $data containing the data - * @return boolean - * - * @deprecated 8.1.0 Use \OC::$server->getNavigationManager()->add() instead to - * register a closure, this helps to speed up all requests against ownCloud - * @since 4.0.0 - */ - public static function addNavigationEntry($data) { - \OC::$server->getNavigationManager()->add($data); - return true; - } - - /** - * Marks a navigation entry as active - * @param string $id id of the entry - * @return boolean - * - * This function sets a navigation entry as active and removes the 'active' - * property from all other entries. The templates can use this for - * highlighting the current position of the user. - * - * @deprecated 8.1.0 Use \OC::$server->getNavigationManager()->setActiveEntry() instead - * @since 4.0.0 - */ - public static function setActiveNavigationEntry( $id ) { - \OC::$server->getNavigationManager()->setActiveEntry($id); - return true; - } /** * Register a Configuration Screen that should appear in the personal settings section. @@ -93,6 +51,7 @@ class App { * @param string $page page to be included * @return void * @since 4.0.0 + * @deprecated 14.0.0 Use settings section in appinfo.xml to register personal admin sections */ public static function registerPersonal( $app, $page ) { \OC_App::registerPersonal( $app, $page ); @@ -104,6 +63,7 @@ class App { * @param string $page string page to be included * @return void * @since 4.0.0 + * @deprecated 14.0.0 Use settings section in appinfo.xml to register admin sections */ public static function registerAdmin( $app, $page ) { \OC_App::registerAdmin( $app, $page ); |