Hello,
We have our own reporting system that directly accesses the ILIAS database in order to obtain various platform statistics. We have found that after the migration to version 5.X, our reporting tool does not work properly, and it seems to be related to the change that is discussed at: http://www.ilias.de/docu/goto.php?target=wiki_1357_Get_Rid_of_Role_Folders
For example, up to version 4.X with the following query, we could get the administrators associated to a course:
SELECT ud.firstname,ud.lastname ,ud.email ,od2.title as Rol
FROM object_data AS od1
JOIN object_reference AS orc1 ON od1.obj_id = orc1.obj_id
/* Locate the space roles folder */
JOIN tree AS tr1 ON orc1.ref_id = tr1.child
JOIN rbac_fa AS rfa ON rfa.parent=orc1.ref_id
/*Space role data*/
JOIN object_data as od2 ON od2.obj_id=rfa.rol_id
/*User data*/
JOIN rbac_ua as rua ON rua.rol_id=od2.obj_id
JOIN usr_data as ud ON ud.usr_id=rua.usr_id
WHERE tr1.parent=<ID_COURSE> and od1.type="rolf" and od2.type="role" and od2.title regexp 's_adm|s_tut'
However, this query no longer gets the correct information in version 5.X.
It seems that with the table "rbac_fa" we can no longer obtain the information of the associated roles in a course.
Where are these data now and how can we obtain them? There are a Database Model of ILIAS 5.X?
We are urged to solve this problem, any help will be appreciated.
↧
Administration - Installation - Core: Our reporting system with version 5.X (problems with Rid of Role Folders).
↧