diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-12-17 11:28:01 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-12-17 11:28:01 +0100 |
commit | 77c4c2856aa4cb27ca6ab77e5bedbaa65300d111 (patch) | |
tree | 92262ae01c9215983cfa27ad3e70d221c98e3ad6 /lib/public | |
parent | 6d80524e67c2f9bfe23fe37d650fe5ef20d03f53 (diff) | |
parent | d59c4e832fea87d03d199a3211186a47fd252c32 (diff) | |
download | nextcloud-server-77c4c2856aa4cb27ca6ab77e5bedbaa65300d111.tar.gz nextcloud-server-77c4c2856aa4cb27ca6ab77e5bedbaa65300d111.zip |
Merge pull request #12889 from owncloud/deprecation-time
Deprecate old and replaced appframework apis
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/appframework/iapi.php | 9 | ||||
-rw-r--r-- | lib/public/appframework/iappcontainer.php | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/lib/public/appframework/iapi.php b/lib/public/appframework/iapi.php index ecbc0fd1900..96199d90b92 100644 --- a/lib/public/appframework/iapi.php +++ b/lib/public/appframework/iapi.php @@ -30,6 +30,7 @@ namespace OCP\AppFramework; /** * A few very basic and frequently used API functions are combined in here + * @deprecated */ interface IApi { @@ -44,6 +45,7 @@ interface IApi { /** * Adds a new javascript file + * @deprecated include javascript and css in template files * @param string $scriptName the name of the javascript in js/ without the suffix * @param string $appName the name of the app, defaults to the current one * @return void @@ -53,6 +55,7 @@ interface IApi { /** * Adds a new css file + * @deprecated include javascript and css in template files * @param string $styleName the name of the css file in css/without the suffix * @param string $appName the name of the app, defaults to the current one * @return void @@ -61,6 +64,7 @@ interface IApi { /** + * @deprecated include javascript and css in template files * shorthand for addScript for files in the 3rdparty directory * @param string $name the name of the file without the suffix * @return void @@ -69,6 +73,7 @@ interface IApi { /** + * @deprecated include javascript and css in template files * shorthand for addStyle for files in the 3rdparty directory * @param string $name the name of the file without the suffix * @return void @@ -78,6 +83,10 @@ interface IApi { /** * Checks if an app is enabled + * @deprecated communication between apps should happen over built in + * callbacks or interfaces (check the contacts and calendar managers) + * Checks if an app is enabled + * also use \OC::$server->getAppManager()->isEnabledForUser($appName) * @param string $appName the name of an app * @return bool true if app is enabled */ diff --git a/lib/public/appframework/iappcontainer.php b/lib/public/appframework/iappcontainer.php index a0b0c06881a..3621d69a542 100644 --- a/lib/public/appframework/iappcontainer.php +++ b/lib/public/appframework/iappcontainer.php @@ -40,6 +40,7 @@ interface IAppContainer extends IContainer{ function getAppName(); /** + * @deprecated implements only deprecated methods * @return IApi */ function getCoreApi(); @@ -62,10 +63,13 @@ interface IAppContainer extends IContainer{ /** * @return boolean + * @deprecated use the groupmanager instead to find out if the user is in + * the admin group */ function isAdminUser(); /** + * @deprecated use the ILogger instead * @param string $message * @param string $level * @return mixed |