Time for action – using Xataface to modify core Moodle data
Now that we have worked a little on modifying the display settings in Xataface, we should briefly discuss and experiment with actually making changes to a Moodle table via the Xataface interface. Remember, we are going to be making changes to data that is used by Moodle, so don't practice on a live site. The experimental site we have set up is the perfect environment to get some hands on experience in order to get used to the tools and processes and to also give you some time to think about how, and if, you want to use them. We'll start by enabling the history function within Xataface and then walk through editing some fields in the Moodle mdl_user
table. Follow these steps:
First, to enable the history function, open the
conf.ini
file located in yourXataface
root directory, titledcims
in our case, and add the following two lines below the[_auth]
heading and before the[_allowed_tables]
heading:[history] enabled = 1
Save the file...