コード例 #1
0
ファイル: EncryptAll.php プロジェクト: rchicoli/owncloud-core
 /**
  * Reset the single user mode and re-enable the trashbin app
  */
 protected function resetSingleUserAndTrashbin()
 {
     $this->config->setSystemValue('singleuser', $this->wasSingleUserModeEnabled);
     if ($this->wasTrashbinEnabled) {
         $this->appManager->enableApp('files_trashbin');
     }
 }
コード例 #2
0
ファイル: encryptall.php プロジェクト: unrealbato/core
 public function __destruct()
 {
     $this->config->setSystemValue('singleuser', $this->wasSingleUserModeEnabled);
     if ($this->wasTrashbinEnabled) {
         $this->appManager->enableApp('files_trashbin');
     }
 }
コード例 #3
0
ファイル: manager.php プロジェクト: stweil/owncloud-core
 public function testEnableApp()
 {
     $this->expectClearCache();
     $this->manager->enableApp('test');
     $this->assertEquals('yes', $this->appConfig->getValue('test', 'enabled', 'no'));
 }
コード例 #4
0
ファイル: apps.php プロジェクト: enoch85/owncloud-testserver
 /**
  * @param array $parameters
  * @return OC_OCS_Result
  */
 public function enable($parameters)
 {
     $app = $parameters['appid'];
     $this->appManager->enableApp($app);
     return new OC_OCS_Result(null, 100);
 }