示例#1
0
 /**
  * @param string $app
  * @return bool
  */
 public static function removeApp($app)
 {
     if (self::isShipped($app)) {
         return false;
     }
     return OC_Installer::removeApp($app);
 }
示例#2
0
文件: installer.php 项目: kenwi/core
 protected function tearDown()
 {
     OC_Installer::removeApp(self::$appid);
     \OC::$server->getConfig()->setSystemValue('appstoreenabled', $this->appstore);
     parent::tearDown();
 }
示例#3
0
文件: app.php 项目: hjimmy/owncloud
 /**
  * @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);
     }
 }
示例#4
0
文件: installer.php 项目: evanjt/core
 protected function tearDown()
 {
     OC_Installer::removeApp(self::$appid);
     OC_Config::setValue('appstoreenabled', $this->appstore);
     parent::tearDown();
 }
示例#5
0
 public function tearDown()
 {
     OC_Installer::removeApp(self::$appid);
     OC_Config::setValue('appstoreenabled', $this->appstore);
 }