Data Storage Methods used?
-
From what I have gathered pfsense is reading and writing all data to xml files for permanent storage rather than a database …. what I cant seem to find is code linking to the xml files. For example Firewall_rules_edit.php there are no links to a xml file in the source.
-
It uses the CoreGUI framework.
http://devwiki.pfsense.org/CoreGUISteve
-
Follow the trail in config.inc and config.lib.inc, you'll find that it's using either xmlparse.inc or xmlreader.inc (both work, there is a choice to use either one).
It's all done seamlessly, if you put data into a $config['foo'] variable and then write_config() it will get into the config. Certain tag names are considered arrays, so a little care is needed but really most developers don't have to know/care about the data storage backend stuff because we're handling all that for them.
-
Thanks for the info…