/** * @param string $app * @return bool */ public static function removeApp($app) { if (self::isShipped($app)) { return false; } return OC_Installer::removeApp($app); }
protected function tearDown() { OC_Installer::removeApp(self::$appid); \OC::$server->getConfig()->setSystemValue('appstoreenabled', $this->appstore); parent::tearDown(); }
/** * @brief disables an app * @param string $app app * @return bool * * This function set an app as disabled in appconfig. */ public static function disable($app) { self::$enabledAppsCache = array(); // flush // check if app is a shipped app or not. if not delete \OC_Hook::emit('OC_App', 'pre_disable', array('app' => $app)); OC_Appconfig::setValue($app, 'enabled', 'no'); // check if app is a shipped app or not. if not delete if (!OC_App::isShipped($app)) { OC_Installer::removeApp($app); } }
protected function tearDown() { OC_Installer::removeApp(self::$appid); OC_Config::setValue('appstoreenabled', $this->appstore); parent::tearDown(); }
public function tearDown() { OC_Installer::removeApp(self::$appid); OC_Config::setValue('appstoreenabled', $this->appstore); }