I want to store different roles into the elgg's database so i can retrieve it later from it, what's the best way to achieve this?
I think that i should create a new type of object called role (elgg_entity_subtypes), and then create entities of that subtype (elgg_entities and elgg_objects_entity) with the data for each role i want to store. For example:
create type for role in elgg_entity_subtypes
create entities for: admin, manager, developer, analist ... in elgg_entities and elgg_objects_entity
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Matt Beckett@Beck24

Matt Beckett - 0 likes
- Iván Merín@ivan.merin

Iván Merín - 0 likes
- Team Webgalli@webgalli

Team Webgalli - 0 likes
- Nikolai Shcherbin@rivervanrain

Nikolai Shcherbin - 0 likes
- Iván Merín@ivan.merin

Iván Merín - 0 likes
You must log in to post replies.http://community.elgg.org/plugins/847275/1.0.2/roles
Don't recreate the wheel, use this and improve on it.
using 1.7 and haven't found it for this version :(
http://docs.elgg.org/wiki/Main_Page#Database_.2B_Storage
http://docs.elgg.org/wiki/Engine/DataModel
Or http://www.webgalli.com/elgg_plugins/profile/10259/elgg-site-access-manager ;)
thanks RvR but no money available