Exemple #1
0
 /**
  * @param string $app
  * @return bool
  */
 public static function removeApp($app)
 {
     if (self::isShipped($app)) {
         return false;
     }
     return OC_Installer::removeApp($app);
 }
Exemple #2
0
 protected function tearDown()
 {
     OC_Installer::removeApp(self::$appid);
     \OC::$server->getConfig()->setSystemValue('appstoreenabled', $this->appstore);
     parent::tearDown();
 }
Exemple #3
0
 /**
  * @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);
     }
 }
Exemple #4
0
 protected function tearDown()
 {
     OC_Installer::removeApp(self::$appid);
     OC_Config::setValue('appstoreenabled', $this->appstore);
     parent::tearDown();
 }
Exemple #5
0
 public function tearDown()
 {
     OC_Installer::removeApp(self::$appid);
     OC_Config::setValue('appstoreenabled', $this->appstore);
 }