summaryrefslogtreecommitdiffstats
path: root/lib/public/app
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-04-16 17:00:08 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-04-16 17:00:08 +0200
commit7644950b48b094bfe5675348aefb7cf5747d325b (patch)
treea1792e21239a86f471da99b454134a5d8533ef77 /lib/public/app
parent8653da6c16597959c7bd0f0b202747ff96204575 (diff)
downloadnextcloud-server-7644950b48b094bfe5675348aefb7cf5747d325b.tar.gz
nextcloud-server-7644950b48b094bfe5675348aefb7cf5747d325b.zip
Add @since tags to all methods in public namespace
* enhance the app development experience - you can look up the method introduction right inside the code without searching via git blame * easier to write apps for multiple versions
Diffstat (limited to 'lib/public/app')
-rw-r--r--lib/public/app/iappmanager.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/public/app/iappmanager.php b/lib/public/app/iappmanager.php
index 69b8c335d67..7be5c921841 100644
--- a/lib/public/app/iappmanager.php
+++ b/lib/public/app/iappmanager.php
@@ -24,6 +24,12 @@ namespace OCP\App;
use OCP\IUser;
+/**
+ * Interface IAppManager
+ *
+ * @package OCP\App
+ * @since 8.0.0
+ */
interface IAppManager {
/**
* Check if an app is enabled for user
@@ -31,6 +37,7 @@ interface IAppManager {
* @param string $appId
* @param \OCP\IUser $user (optional) if not defined, the currently loggedin user will be used
* @return bool
+ * @since 8.0.0
*/
public function isEnabledForUser($appId, $user = null);
@@ -39,6 +46,7 @@ interface IAppManager {
*
* @param string $appId
* @return bool
+ * @since 8.0.0
*/
public function isInstalled($appId);
@@ -46,6 +54,7 @@ interface IAppManager {
* Enable an app for every user
*
* @param string $appId
+ * @since 8.0.0
*/
public function enableApp($appId);
@@ -54,6 +63,7 @@ interface IAppManager {
*
* @param string $appId
* @param \OCP\IGroup[] $groups
+ * @since 8.0.0
*/
public function enableAppForGroups($appId, $groups);
@@ -61,6 +71,7 @@ interface IAppManager {
* Disable an app for every user
*
* @param string $appId
+ * @since 8.0.0
*/
public function disableApp($appId);
@@ -69,6 +80,7 @@ interface IAppManager {
*
* @param \OCP\IUser $user
* @return string[]
+ * @since 8.1.0
*/
public function getEnabledAppsForUser(IUser $user);
@@ -76,11 +88,13 @@ interface IAppManager {
* List all installed apps
*
* @return string[]
+ * @since 8.0.0
*/
public function getInstalledApps();
/**
* Clear the cached list of apps when enabling/disabling an app
+ * @since 8.1.0
*/
public function clearAppsCache();
}