Remove long time deprecated functions and deprecate \OCP\App

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-01-29 13:32:11 +01:00 committed by Morris Jobke
parent 44b002665c
commit 6d3c8d5546
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with 3 additions and 43 deletions

View File

@ -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 );