Communication Moodle and Mahara

Communication Moodle and Mahara

by Daniel Valles Martinez -
Number of replies: 1

Hi,

(first, sorry for my bad english jeje)

I'm working in a communication of Mahara and Moodle. I know that these two programs already have funcionalities for identify the users, for exemple, if you loggin with moodle you can enter to mahara without re-signing.

Well, i'm programming a basic model of resume in Moodle, and i want import the information that one user have in resume of Mahara to the Moodle, and the opposite, export the information of the user's resume in Moodle to Mahara.

These two programs have the XMLRPC to communicate and in version 2.0 there is the class Portfolio to do so (i think), but i don't know very well how it works.

I suppose that i have to create a function in Mahara, for exemple import_information (user, array_with_resume_information), that this function call the functions that Mahara use to update the resume's information of a use.

Later, in Moodle i should call the function import_information that have Mahara??? But how i do that? I have to create a instance of portfolio_plugin_mahara?? How it works the files client.php and server.php that have moodle in mnet and mahara in api/xmlrpc??

Thanks smile
Average of ratings: -
In reply to Daniel Valles Martinez

Re: Communication Moodle and Mahara

by Penny Leach -
Hi Daniel,

The portfolio API in Moodle 2.0 is about pushing data *from* Moodle to external systems (eg Mahara).

If you put to push data from Mahara to Moodle, you'll need to look at the Repository API, which is about pulling content into Moodle from an external system (the opposite of the Portfolio API).

There's more documentation about the Portfolio API here:

http://docs.moodle.org/en/Development:Portfolio_API


It sounds like you need to write a new portfolio_caller in Moodle: http://docs.moodle.org/en/Development:Adding_a_Portfolio_Button_to_a_page

to be able to export your portfolio data from the Moodle resume, and then write a handler in Mahara.

This ties in with the work we've been doing in Mahara on LEAP2A and I hope within the next 2 months I'll be adding support to Moodle. LEAP2A is a portfolio standard that could be used to describe your resume information in a way that Mahara can understand.

See http://docs.moodle.org/en/Development:LEAP2A_Portfolio_Implementation for more information about LEAP2A.

In short, if you can wait until I've added that into 2.0, you'll have a much easier time smile

Cheers & hope that helps.