diff options
Diffstat (limited to 'lib/public/appframework/iapi.php')
-rw-r--r-- | lib/public/appframework/iapi.php | 9 |
1 files changed, 9 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 */ |