From 8c064a8933a7197396d4b65e679652e8f34d093d Mon Sep 17 00:00:00 2001 From: Phie Date: Wed, 17 Apr 2019 17:23:01 +0200 Subject: method to save and restore sort settings --- lib/Controller/NoteController.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib/Controller/NoteController.php') 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"); -- cgit v1.2.3