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

github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2019-04-17 18:23:01 +0300
committerPhie <phie@phie.ovh>2019-04-17 18:23:01 +0300
commit8c064a8933a7197396d4b65e679652e8f34d093d (patch)
treea3e2ac9d33eac7c8745d6802171287bc3bebdeed /lib/Controller/NoteController.php
parentc98bc44129bcb549a271dfe59ae384de8ef452cd (diff)
method to save and restore sort settings
Diffstat (limited to 'lib/Controller/NoteController.php')
-rwxr-xr-xlib/Controller/NoteController.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/Controller/NoteController.php b/lib/Controller/NoteController.php
index 25e57fb..c67017f 100755
--- a/lib/Controller/NoteController.php
+++ b/lib/Controller/NoteController.php
@@ -147,6 +147,21 @@
}
return substr($this->CarnetFolder->getInternalPath(),6);
}
+
+ /**
+ * @NoAdminRequired
+ */
+ public function setBrowserSettings($jsonSettings) {
+ $this->Config->setUserValue($this->userId, $this->appName,"browser_settings",$jsonSettings);
+ }
+
+ /**
+ * @NoAdminRequired
+ */
+ public function getBrowserSettings() {
+ return $this->Config->getUserValue($this->userId, $this->appName,"browser_settings");
+ }
+
private function getRecentFile(){
try {
return $this->CarnetFolder->get("quickdoc/recentdb/recentnc");