Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37670

Re: Let's create a working example of a FileManager

$
0
0
by Davo Smith.  

An example of where it would not be null:

$entryid = required_param('entryid', PARAM_INT);
$entry = $DB->get_record('myplugin_entry', array('id' => $entryid));

That is, if you have some other data (e.g. a forum post) associated with the files. My updated version of the code may make it a bit clearer:

https://github.com/davosmith/filemanager

 


Viewing all articles
Browse latest Browse all 37670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>