by Luis de la Torre.
And one step further.
I basically filled my tree_update.php file with the next code:
require_once('../../config.php');
$htmlid = required_param('htmlid', PARAM_TEXT);
$context = get_context_instance(CONTEXT_USER, $USER->id);
$PAGE->set_context($context);
$content = new stdClass();
$renderer = $PAGE->get_renderer('block_private_files');
$content->text = $renderer->private_files_tree($htmlid);
echo $content->text;
While this is already working (i.e. when I click the refresh button I added to the private files block I get a refreshed view of the files tree displayed by that block), the tree doesn't appear perfectly: files inside folders appear in a weird way (see attached figure).
Any thoughts?