... | ... | @@ -4,46 +4,61 @@ Moodle 2.6 instructions |
|
|
|
|
|
1. Install [Moodle **2.6**](http://download.moodle.org/)
|
|
|
|
|
|
|
|
|
2. Download and install the [Web Service Get Contexts local plugin](https://moodle.org/plugins/view.php?plugin=local_getcontexts)
|
|
|
|
|
|
2.1 Extract the _getcontexts/_ folder into Moodle's _local/_ folder
|
|
|
|
|
|
2.2 Reload Moodle and click _Upgrade Moodle database now_ in the _Plugins check_ screen
|
|
|
|
|
|
|
|
|
|
|
|
3. Create the [Parent role](https://docs.moodle.org/26/en/Parent_role#Creating_a_new_role) and note down the Parent role ID (the ending part of the URL is _&roleid=10_ where the ID here is 10, when you are on the page _Viewing the definition of role 'Parent'_)
|
|
|
|
|
|
|
|
|
|
|
|
4. Follow the "Allow an external system to control Moodle" steps (Administration > Site administration > Plugins > Web services > Overview)
|
|
|
|
|
|
4.1 Enable web services: check the box and save (go back to Overview and check the status is _Yes_)
|
|
|
|
|
|
4.2 Enable protocols: click Enable on the line XML-RPC protocol and save (go back to Overview and check the status is _xmlrpc_)
|
|
|
|
|
|
4.3 Create a specific user:
|
|
|
|
|
|
4.3.1 Enter a Username
|
|
|
|
|
|
4.3.2 Choose an authentication method: _Web services authentication_
|
|
|
|
|
|
4.3.3 Enter a Password
|
|
|
|
|
|
4.3.4 Enter a First name, Surname & Email address
|
|
|
|
|
|
4.3.5 Click Create user
|
|
|
|
|
|
4.3.6 Go back to Overview
|
|
|
|
|
|
4.4 Create a Web Service role (Administration > Site administration > Users > Permissions > Define roles)
|
|
|
|
|
|
4.4.1 Add a new role
|
|
|
|
|
|
4.4.2 Use role or archetype: _No role_, click Continue
|
|
|
|
|
|
4.4.3 Enter the role name
|
|
|
|
|
|
4.4.4 Context types where this role may be assigned: check _System_
|
|
|
|
|
|
4.4.5 Select _Manager_, _Teacher_, _Student_ & _Parent_ for Allow role assignments
|
|
|
|
|
|
4.4.6 Check _Allow_ for the following capabilities (you can search for them via ``CTRL + F``):
|
|
|
|
|
|
<pre>
|
|
|
enrol/manual:enrol
|
|
|
|
|
|
mod/forum:viewdiscussion
|
|
|
mod/forum:viewqandawithoutposting
|
|
|
|
|
|
moodle/calendar:manageentries
|
|
|
|
|
|
moodle/category:viewhiddencategories
|
|
|
moodle/category:manage
|
|
|
|
|
|
moodle/cohort:manage
|
|
|
moodle/cohort:view
|
|
|
moodle/cohort:assign
|
|
|
|
|
|
moodle/course:managegroups
|
|
|
moodle/course:useremail
|
|
|
moodle/course:viewparticipants
|
... | ... | @@ -59,69 +74,94 @@ moodle/course:changefullname |
|
|
moodle/course:changeshortname
|
|
|
moodle/course:changeidnumber
|
|
|
moodle/course:changesummary
|
|
|
|
|
|
moodle/notes:manage
|
|
|
moodle/notes:view
|
|
|
|
|
|
moodle/role:assign
|
|
|
|
|
|
moodle/user:create
|
|
|
moodle/user:viewdetails
|
|
|
moodle/user:viewhiddendetails
|
|
|
moodle/user:update
|
|
|
moodle/user:delete
|
|
|
|
|
|
moodle/site:accessallgroups
|
|
|
moodle/site:sendmessage
|
|
|
|
|
|
moodle/backup:backupcourse
|
|
|
moodle/backup:backuptargetimport
|
|
|
|
|
|
moodle/restore:restorecourse
|
|
|
moodle/restore:restoretargetimport
|
|
|
|
|
|
moodle/grade:edit
|
|
|
moodle/grade:manage
|
|
|
moodle/grade:manageletters
|
|
|
mod/assign:grade
|
|
|
|
|
|
webservice/xmlrpc:use
|
|
|
</pre>
|
|
|
|
|
|
4.4.7 Create role
|
|
|
|
|
|
4.5 Assign Web Service role (Administration > Site administration > Users > Permissions > Assign system roles)
|
|
|
|
|
|
4.5.1 Click the Web Service role
|
|
|
|
|
|
4.5.2 Select the Web Service user in Potential users and click Add
|
|
|
|
|
|
4.5.3 Go back to Overview
|
|
|
|
|
|
4.6 Select a service
|
|
|
|
|
|
4.6.1 Click Add in External services
|
|
|
|
|
|
4.6.2 Name the External service
|
|
|
|
|
|
4.6.3 Check _Enabled and Authorised users only_
|
|
|
|
|
|
4.6.4 Click Add service and go back to Overview
|
|
|
|
|
|
4.7 Add functions
|
|
|
|
|
|
4.7.1 Click _Functions_ link of the external service and then Add funtions
|
|
|
|
|
|
4.7.2 Select all the functions except the deprecated ones and then click _Add functions_
|
|
|
|
|
|
4.7.3 Go back to Overview
|
|
|
|
|
|
4.8 Select a specific user
|
|
|
|
|
|
4.8.1 Click _Authorised users_ link of the external service
|
|
|
|
|
|
4.8.2 Select the Web Service user in _Not authorised users_ and click Add
|
|
|
|
|
|
4.8.3 Go back to Overview
|
|
|
|
|
|
4.9 Create a token (Administration > Site administration > Plugins > Web services > Manage tokens)
|
|
|
|
|
|
4.9.1 Click Add
|
|
|
|
|
|
4.9.2 Select the Web service user and the Web service created earlier
|
|
|
|
|
|
4.9.3 Click Save changes
|
|
|
|
|
|
4.9.4 Copy the token (ex.: ``020cfbcfbbb9bc43200f4bd1aec3afb4``)
|
|
|
|
|
|
|
|
|
|
|
|
5. Configure RosarioSIS
|
|
|
|
|
|
5.1 Set ``MOODLE_INTEGRATOR`` to true in the _config.inc.php_ file
|
|
|
|
|
|
5.2 Login to RosarioSIS and go to School Setup > School Configuration
|
|
|
|
|
|
5.3 Enter the token and the Moodle URL
|
|
|
|
|
|
5.4 Enter the Parent role ID (cf. step 3)
|
|
|
|
|
|
5.5 Click Save
|
|
|
|
|
|
5.6 Go to Students > Student Fields > General Info
|
|
|
|
|
|
5.7 Click the *+* icon, enter _email_ as the Field Name, select _Text_ for Data Type and click Save
|
|
|
|
|
|
5.8 Point on the email link in the Student Fields list and not down the field ID (the ending part of the URL is ``&id=2`` where the ID here is 2)
|
|
|
|
|
|
5.9 Go back to School Configuration and enter the RosarioSIS Student email field ID
|
|
|
|
|
|
|
|
|
*If you encounter an error related to the Moodle integrator, please activate the debug mode (Administration > Site administration > Development > Debugging).* |
|
|
\ No newline at end of file |
|
|
**If you encounter an error related to the Moodle integrator, please activate the debug mode (Administration > Site administration > Development > Debugging).** |
|
|
\ No newline at end of file |