/**
  * gets the prepended URL
  * @param string  $dest the module|dest|action string
  * @param array   $params an associative array with the parameters
  * @param boolean $htmlif the string has to be for html
  * @return string the prepended url
  */
 function _getPrepend($dest, $params = array(), $html = false, $scriptName = null)
 {
     if ($scriptName === null) {
         $scriptName = $GLOBALS['COPIX']['CONFIG']->significant_url_script_name;
     }
     $dest = CopixUrl::_getDest($dest);
     $urlObject = false;
     if (CopixUrl::_existsModuleHandler($dest['module'])) {
         $significantUrlHandler = CopixUrl::_createModuleHandler($dest['module']);
         $urlObject = $significantUrlHandler->get($dest, $params, 'prepend');
     }
     if ($urlObject === false) {
         $urlObject->path = $dest;
         $urlObject->vars = $params;
     }
     foreach ((array) $urlObject->path as $key => $value) {
         $urlObject->path[$key] = urlencode(strtr($value, array('-' => '--', ' ' => '-')));
     }
     $toReturn = $GLOBALS['COPIX']['CONFIG']->significant_url_basepath . $scriptName . '/' . implode('/', $urlObject->path);
     if (isset($urlObject->vars) && count($params) > 0) {
         $toReturn .= '?' . CopixUrl::_collapseParams($urlObject->vars, $html);
     }
     return $toReturn;
 }