[eluser]Yorick Peterse[/eluser]
Making a lot of progress with the Yummy library, might even release an early build later tonight. So far it's able to run any given widget, as long as it's actived (which is stored in a database table). The widget table is relatively simply, it has the following structure :
Code:
-------------------------------------------------------------------------------------------------
- ID (int) | name (varchar[50]) | title(varchar[50]) | body(text) | activated(enum[true/false]) -
-------------------------------------------------------------------------------------------------
The ID/activated field goes without saying. The name is the exact name of the widget. If your widget is named "Foo" then the name should be "Foo". The same goes with the class name and the folder name, they all need to match (class names will still work as the first letter is capitalized anyway).
The body field is a text field that contains a JSON string with variables, arrays, pretty much anything. You could actually store anything in this field, it doesn't has to be JSON (but it is recommended).