function _content($params)
 {
     //spinner
     echo '<p id="paste_' . $params['itemToPaste']->getId() . '">' . $GLOBALS['Language']->getText('plugin_docman', 'details_paste_inprogress_info');
     $docmanIcons = $this->_getDocmanIcons();
     echo $GLOBALS['Language']->getText('plugin_docman', 'details_paste_inprogress_wait', array($docmanIcons->getIcon('spinner-greenie.gif')));
     echo '</p>';
     // Flush the output buffer right now to display the spinner before the
     // paste begin.
     // For an unknown reason, ob_flush is needed, otherwise, the output is
     // stoped right after the display of service tabs!
     ob_flush();
     flush();
     // here the processing
     $actions = new Docman_Actions($this->_controller);
     $actions->doPaste($params['itemToPaste'], $params['item'], $params['rank'], $params['importMd'], $params['srcMode']);
     // Remove wait mesage and the spinner
     echo '<script type="text/javascript">$("paste_' . $params['itemToPaste']->getId() . '").hide();</script>';
     //Display paste sucessfully complete.
     echo $GLOBALS['Language']->getText('plugin_docman', 'details_paste_successful');
     $url = $this->_controller->getDefaultUrl() . 'action=show&id=' . $params['item']->getId();
     echo $GLOBALS['Language']->getText('plugin_docman', 'details_paste_complete_redirect', array($url, $url, 5));
     echo '<script type="text/javascript">setTimeout(function () {location.href="' . $url . '";}, 5000);</script>';
 }
 public function actionsManagement()
 {
     $action = new Docman_Actions($this);
     $action->process($this->action, $this->_actionParams);
 }