Add method to check if an app is shipped or not
This commit is contained in:
parent
9dbe5f3703
commit
038af7e636
1 changed files with 14 additions and 0 deletions
14
lib/app.php
Executable file → Normal file
14
lib/app.php
Executable file → Normal file
|
@ -139,6 +139,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 function isShipped($appid){
|
||||
$info = self::getAppInfo($appid);
|
||||
if(isset($info['shipped']) && $info['shipped']=='true'){
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* get all enabled apps
|
||||
|
|
Loading…
Reference in a new issue