Guys I am developing a method (JAVA) where I create a chat room just by entering values in the database and moodle to make use Hibernate persistence en
What is being done:
1st I have to insert some values in the table "mdl_chat" prenchendo fields (id, course, name, intro, introformat, timemodified and chattime). This table stores information more specific this module (chat) as name, course, hours of chat and etc..
2nd one should fill the table "mdl_course_modules" with (id, course, module, instance, section, added) This table is a bit more generic as it is stored all modules (forums, wikis, questionnaires, etc.), more the main objective of it is information on what topic, and this course module is stored.
3rd and finally I persist the table "mdl_context" with (id, contextlevel, instanceid, path, depth) the focus of this table is basically tells moodle determonado the path to a module:
What is missing:
I have done tests to see what tables are filled in the bank to be inserted into a module in moodle and cheguri the 3 tables mentioned, when I run my script all the information go to the bank through methods "setNomeDoCampo (parameter)" in the same way that go when some activity is added manually (activate by clicking dition and then click Add an activity or resource) but moodle does not list on the screen of the module course activities (chat) that was persisted with my code obviously only lists created manually .
I wish someone would help me with this problem iserir one chat using sql commands.
I thank the help