Hi,
I'm developing a mod for Moodle 2.4. I've looked around, tried out a few suggestions, looked at the docs and looked at some other Moodle mods and don't seem to be getting anywhere very quickly.
In my mod/swf/mod_form.php, I've got the upload file input for an *.xml file:
$filemanager_options2['accepted_types'] = '*'; // I'll change this when it's all working to accept XML, SMIL, MPEG-7, and SubRip.
$filemanager_options2['maxbytes'] = 0;
$filemanager_options2['maxfiles'] = -1;
$filemanager_options2['mainfile'] = true;
$mform->addElement('filemanager', 'xmlurl', get_string('xmlurl', 'swf'), null, $filemanager_options2);
This works fine and inserts hash numbers into the DB, e.g. 98602295.
Can anyone point me in the direction of the particular function(s) and/or objects to use to retrieve a valid URL, from these hash numbers?
e.g. http://localhost/m24/pluginfile.php/26/mod_swf/content/2/photo.jpg
Thanks in advance!