function _mode($params)
 {
     $html = '';
     // No mode selector in printer version
     if (isset($params['pv']) && $params['pv'] > 0) {
         // Close table opened in method 'breadCrumbs' in 'Display' class.
         $html .= '</tr>';
         $html .= '</table>';
         echo $html;
         return;
     }
     $html .= '<td align="right">';
     $html .= '<form action="' . $params['default_url'] . '" method="POST">';
     $html .= '<span id="docman_browse_viewas">';
     $html .= $GLOBALS['Language']->getText('plugin_docman', 'browse_viewas') . ' ';
     $actual = Docman_View_Browse::getViewForCurrentUser($params['group_id']);
     $views = Docman_View_Browse::getDefaultViews();
     foreach ($views as $val => $view) {
         $html .= '<input type="image" 
         				 name="selected_view[' . $val . ']" 
         				 src="' . $this->_controller->plugin->getThemePath() . '/images/ic/view-' . $view . '.png" 
         				 title="' . $GLOBALS['Language']->getText('plugin_docman', 'browse_viewas') . ' ' . $GLOBALS['Language']->getText('plugin_docman', 'view_' . $view) . '"
         				 alt="' . $GLOBALS['Language']->getText('plugin_docman', 'view_' . $view) . '"
         				 /> ';
         //($actual == $val ? '&gt;&nbsp;' : '&nbsp;&nbsp;');
     }
     $html .= '</span>';
     $html .= '<input type="hidden" name="action" value="change_view" />';
     $html .= '<input type="hidden" name="id" value="' . $params['item']->getId() . '" />';
     $html .= '</form>';
     $html .= '</td>';
     // Close table opened in method 'breadCrumbs' in 'Display' class.
     $html .= '</tr>';
     $html .= '</table>';
     echo $html;
 }
 function visitFolder(&$item, $params = array())
 {
     return Docman_View_Browse::getViewForCurrentUser($item->getGroupId(), $params);
 }