$params = $child->get_params();
if ($child->is_directory()) {
$node = array(
- //TODO: this is wrong, you need to fetch info from the child node!!!!
'contextid' => $params['contextid'],
'component' => $params['component'],
'filearea' => $params['filearea'],
$list[] = $node;
} else {
$node = array(
- //TODO: this is wrong, you need to fetch info from the child node!!!!
'contextid' => $params['contextid'],
'component' => $params['component'],
'filearea' => $params['filearea'],