Are there any problems in adding more than site_guid in saving ElggObject entities ?

Hello Elgg Communities,

I need to manage different organisations on my ElggSite (with one URL), each organisation has their own informations(ElggObject entities with specific subtype that I created). I use different values of the attribute  site_guid for each organisation when I insert new ElggObject entity.

 In the  init, system event function of my plugin, I assing the $CONFIG->site_guid an array of the adequate site_guid of the user connected in order to display only the enities of their organisation.

I don't use the group feature of Elgg because each site can create their own groups.

Are there any problems in this solution, or maybe there is another recommended way to manage many site_guid ?

Thank you very much.


Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking