diff options
author | Phie <phie@phie.ovh> | 2019-04-17 18:23:01 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2019-04-17 18:23:01 +0300 |
commit | 8c064a8933a7197396d4b65e679652e8f34d093d (patch) | |
tree | a3e2ac9d33eac7c8745d6802171287bc3bebdeed /lib/Controller/NoteController.php | |
parent | c98bc44129bcb549a271dfe59ae384de8ef452cd (diff) |
method to save and restore sort settings
Diffstat (limited to 'lib/Controller/NoteController.php')
-rwxr-xr-x | lib/Controller/NoteController.php | 15 |
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"); |