protected static function renderIcon(IterableInterface $iterator)
{
if ($iterator->getIcon() == 'folder') {
$html = '<ins
style="background:url(/media/icons/folder.gif) no-repeat scroll 0 0;"
class="jstree-icon"> </ins>';
} else {
$html = '<ins
style="background:url(' . $iterator->getIcon() . ') no-repeat scroll 0 0;"
class="jstree-icon"> </ins>';
}
return $html;
}