diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2013-01-04 17:18:58 -0800 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2013-01-04 17:18:58 -0800 |
commit | 0b13b411893c472ce3102ece5d63de34bf872a8d (patch) | |
tree | 9d85a64dcd50d395837837ba4d5424528e2f3fa4 /lib/app.php | |
parent | 934d9dcc42e2d7281e04c6acecdd53ae2a03b25f (diff) | |
parent | 3d23e983908d02fe72f305aeaabbdca05d167e8f (diff) | |
download | nextcloud-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.php | 14 |
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 |