/** * Internal function - creates htmls structure suitable for YUI tree. * * @param assign_files $tree * @param array $dir * @return string */ protected function htmllize_tree(assign_files $tree, $dir) { global $CFG; $yuiconfig = array(); $yuiconfig['type'] = 'html'; if (empty($dir['subdirs']) and empty($dir['files'])) { return ''; } $result = '