Backend server for Restful APIs
Is more likey a router.
When read/write/delete data, it needs security level to limit/allow who can do 'CRUD' of data.
It is stated in interface.
guest = anonymous, not logged in user, visitor. anyone = anyone where logged in or not logged in. owner = who owns the data. admin = admin level user.
Only 'route' method can use 'success()' or 'error()'.
Any methods that are not 'route' should return a value.
http://localhost/www/backend-0.2/?route=install
You can put any php script ending "_install.php" under a module folder.
Those files will be run in installation process.
Test script under module folder will be run on "all test run", "class test" and "method test".
Test script must end with with "_test.php".
To run all the tests, just access
?route=test
To test class
?route=model.class
To test class
?route=model.class.method
Base => Taxonomy => Entity => User
Base => Taxonomy => Entity => Meta
Base => Taxonomy => Entity => Meta => Config
Base => Taxonomy => Entity => Forum => Config
Base => Taxonomy => Entity => Forum => Post
Base => Taxonomy => Entity => File
Meta table holds meta datas.
It has model, model_idx, code and value fields plus idx, created and updated.
meta.model field is for a big category like "user", "forum", "file".
meta.model_idx is to associate the meta data with the object(entity/record) of the model.
meta.code is a sub-category for the meta. It would be a property of a entity like "facebook address", "google plus address" of a user.