Forums | Mahara Community
Developers
/
Books and certifications
10 November 2009, 10:39
Hi
i try to make a script to add multiple books from a list and i would like call the function used in "My Resume" but i don't understand how the record is made.
Witch function can i use?
Thanks
Maxime
10 November 2009, 11:24
Hi Maxime,
All artefacts in Mahara are created using subclasses of the Artefact class. In the case of the book, it's in artefact/resume/lib.php , in the ArtefactTypeBook class. You may need to walk the class hierarchy to understand it.
However, there's code you can copy in the LEAP2A import in Mahara 1.2. It's in artefact/resume/import/leap/lib.php, around line 313 or so.
HTH,
Penny