Ejemplo n.º 1
0
 /**
  * Generates the necessary URL parameters for the download/view page.
  *
  * @param Horde_Mime_Part $mime_part  The MIME part to view.
  * @param integer $actionID           The actionID to perform.
  * @param array $params               Additional parameters to pass.
  *
  * @return array  The array of parameters.
  */
 protected function _urlViewParams($mime_part, $actionID, $params)
 {
     /* Add the necessary local parameters. */
     $params = array_merge($params, array('actionID' => $actionID, 'id' => isset($params['id']) ? $params['id'] : $mime_part->getMIMEId()));
     if ($this->_indices) {
         $params['muid'] = strval($this->getIndicesOb());
     }
     return IMP_Contents_View::addToken($params);
 }