summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-12-16 19:50:31 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-12-16 19:50:31 +0100
commitd59c4e832fea87d03d199a3211186a47fd252c32 (patch)
tree1ef7534a027e296a1b3da23e9a1f7e4efa9448c4 /lib/public
parent5b9c453071fe900529cd26b88fbc681d8b153b43 (diff)
downloadnextcloud-server-d59c4e832fea87d03d199a3211186a47fd252c32.tar.gz
nextcloud-server-d59c4e832fea87d03d199a3211186a47fd252c32.zip
first round of deprecation
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/appframework/iapi.php9
-rw-r--r--lib/public/appframework/iappcontainer.php4
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