|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | block_private_files |
Variables | |
| if(isguestuser()) | $context = get_context_instance(CONTEXT_USER, $USER->id) |
| $title = get_string('privatefiles', 'block_private_files') | |
| $struser = get_string('user') | |
| $data = new stdClass() | |
| $options = array('subdirs'=>1, 'maxbytes'=>$CFG->userquota, 'maxfiles'=>-1, 'accepted_types'=>'*', 'return_types'=>FILE_INTERNAL) | |
| $mform = new block_private_files_form(null, array('data'=>$data, 'options'=>$options)) | |
| if($mform->is_cancelled()) else | if ($formdata=$mform->get_data()) |
| if (isguestuser()) $context = get_context_instance(CONTEXT_USER, $USER->id) |
| $mform = new block_private_files_form(null, array('data'=>$data, 'options'=>$options)) |
| $options = array('subdirs'=>1, 'maxbytes'=>$CFG->userquota, 'maxfiles'=>-1, 'accepted_types'=>'*', 'return_types'=>FILE_INTERNAL) |
| $struser = get_string('user') |
| $title = get_string('privatefiles', 'block_private_files') |