Refactored the Workshop API class
Refactored the Workshop API class

Uses the PHP magic getter to access the underlying database record. Does
not do the serialization goulash, as the passed objects should be clear
database rows.

dilawar/moodle