The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
|
Data storage. - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Feature Requests (http://get-simple.info/forums/forumdisplay.php?fid=7) +--- Thread: Data storage. (/showthread.php?tid=3682) |
Data storage. - jason.dixon.email - 2012-10-14 Would it be possible to add in a simple hook or function to save and retrieve data? Creating an XML is not amazingly hard, but it seems like a task that most every application needs. Even if simply to store user settings. I would imagine a simple "save data" in the API would automatically take the data provided and place it in a folder under the same name as the registered plugin, while restore/load data would retrieve it from there. Or alternatively the API could add capability to simply add plugin configuration data to a central xml, accessed in one read for every plugin that uses it? Data storage. - shovenose - 2012-10-14 I'm not sure if this helps, but: 1. You can create a folder in the plugins folder with the same name as your plugin, if you need additional files. 2. It's best to save the data in the data folder rather than the plugins folder - you can create an XML file there with your plugin. Data storage. - shawn_a - 2012-10-14 I am already considering a data library for the next major version. http://code.google.com/p/get-simple-cms/issues/detail?id=340&sort=-modified&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary%20Modified Data storage. - jason.dixon.email - 2012-10-14 shovenose Wrote:I'm not sure if this helps, but: Oh yeah I understand that. I just figure it would be a nice feature to have, as storing data is common enough a function for plugins to be repeating the same steps. |