Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/lib/Controller/ApiController.php')
-rw-r--r--apps/files/lib/Controller/ApiController.php142
1 files changed, 2 insertions, 140 deletions
diff --git a/apps/files/lib/Controller/ApiController.php b/apps/files/lib/Controller/ApiController.php
index fd63d545151..9443b9776ae 100644
--- a/apps/files/lib/Controller/ApiController.php
+++ b/apps/files/lib/Controller/ApiController.php
@@ -200,30 +200,6 @@ class ApiController extends Controller {
}
/**
- * Returns a list of favorites modifed folder.
- *
- * @NoAdminRequired
- *
- * @return DataResponse
- */
- public function getFavoritesFolder() {
- $nodes = $this->userFolder->searchByTag('_$!<Favorite>!$_', $this->userSession->getUser()->getUID());
-
- $favorites = [];
- $i = 0;
- foreach ($nodes as &$node) {
-
- $favorites[$i]['id'] = $node->getId();
- $favorites[$i]['name'] = $node->getName();
- $favorites[$i]['path'] = $node->getInternalPath();
- $favorites[$i]['mtime'] = $node->getMTime();
- $i++;
- }
-
- return new DataResponse(['favoriteFolders' => $favorites]);
- }
-
- /**
* Return a list of share types for outgoing shares
*
* @param Node $node file node
@@ -238,7 +214,8 @@ class ApiController extends Controller {
\OCP\Share::SHARE_TYPE_GROUP,
\OCP\Share::SHARE_TYPE_LINK,
\OCP\Share::SHARE_TYPE_REMOTE,
- \OCP\Share::SHARE_TYPE_EMAIL
+ \OCP\Share::SHARE_TYPE_EMAIL,
+ \OCP\Share::SHARE_TYPE_ROOM
];
foreach ($requestedShareTypes as $requestedShareType) {
// one of each type is enough to find out about the types
@@ -315,120 +292,5 @@ class ApiController extends Controller {
return $response;
}
- /**
- * quickaccess-sorting-strategy
- *
- * @NoAdminRequired
- *
- * @param string $strategy
- * @return Response
- */
- public function setSortingStrategy($strategy) {
- $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_sorting_strategy', (String)$strategy);
- return new Response();
- }
-
- /**
- * Get reverse-state for quickaccess-list
- *
- * @NoAdminRequired
- *
- * @return String
- */
- public function getSortingStrategy() {
- return $this->config->getUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_sorting_strategy', 'alphabet');
- }
-
- /**
- * Toggle for reverse quickaccess-list
- *
- * @NoAdminRequired
- *
- * @param bool $reverse
- * @return Response
- */
- public function setReverseQuickaccess($reverse) {
- $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_reverse_list', (int)$reverse);
- return new Response();
- }
-
- /**
- * Get reverse-state for quickaccess-list
- *
- * @NoAdminRequired
- *
- * @return bool
- */
- public function getReverseQuickaccess() {
- if ($this->config->getUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_reverse_list', false)) {
- return true;
- }
- return false;
- }
-
- /**
- * Set state for show sorting menu
- *
- * @NoAdminRequired
- *
- * @param bool $show
- * @return Response
- */
- public function setShowQuickaccessSettings($show) {
- $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_show_settings', (int)$show);
- return new Response();
- }
-
- /**
- * Get state for show sorting menu
- *
- * @NoAdminRequired
- *
- * @return bool
- */
- public function getShowQuickaccessSettings() {
- if ($this->config->getUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_show_settings', false)) {
- return true;
- }
- return false;
- }
-
- /**
- * Set sorting-order for custom sorting
- *
- * @NoAdminRequired
- *
- * @param String $order
- * @return Response
- */
- public function setSortingOrder($order) {
- $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_custom_sorting_order', (String)$order);
- return new Response();
- }
-
- /**
- * Get sorting-order for custom sorting
- *
- * @NoAdminRequired
- *
- * @return String
- */
- public function getSortingOrder() {
- return $this->config->getUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_custom_sorting_order', "");
- }
-
- /**
- * Get sorting-order for custom sorting
- *
- * @NoAdminRequired
- *
- * @param String
- * @return String
- */
- public function getNodeType($folderpath) {
- $node = $this->userFolder->get($folderpath);
- return $node->getType();
- }
-
}