aboutsummaryrefslogtreecommitdiffstats
path: root/lib/app.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-01-04 17:18:58 -0800
committerMichael Gapczynski <mtgap@owncloud.com>2013-01-04 17:18:58 -0800
commit0b13b411893c472ce3102ece5d63de34bf872a8d (patch)
tree9d85a64dcd50d395837837ba4d5424528e2f3fa4 /lib/app.php
parent934d9dcc42e2d7281e04c6acecdd53ae2a03b25f (diff)
parent3d23e983908d02fe72f305aeaabbdca05d167e8f (diff)
downloadnextcloud-server-0b13b411893c472ce3102ece5d63de34bf872a8d.tar.gz
nextcloud-server-0b13b411893c472ce3102ece5d63de34bf872a8d.zip
Merge pull request #1053 from owncloud/ocs_api
External API for ownCloud based on OCS
Diffstat (limited to 'lib/app.php')
-rw-r--r--[-rwxr-xr-x]lib/app.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/app.php b/lib/app.php
index be6d5ab3dd3..30f76300365 100755..100644
--- a/lib/app.php
+++ b/lib/app.php
@@ -137,6 +137,20 @@ class OC_App{
OC_Appconfig::setValue($app, 'types', $appTypes);
}
+
+ /**
+ * check if app is shipped
+ * @param string $appid the id of the app to check
+ * @return bool
+ */
+ public static function isShipped($appid){
+ $info = self::getAppInfo($appid);
+ if(isset($info['shipped']) && $info['shipped']=='true'){
+ return true;
+ } else {
+ return false;
+ }
+ }
/**
* get all enabled apps