/** * Gets the url string from parameters * @param string $dest the module|desc|action description * @param array $params associative array with the parameters */ function get($dest = null, $params = array(), $html = false, $scriptName = null) { if ($dest === null) { return $GLOBALS['COPIX']['CONFIG']->significant_url_basepath; } switch ($GLOBALS['COPIX']['CONFIG']->significant_url_mode) { case 'none': return CopixUrl::_getNone($dest, $params, $html, $scriptName); case 'prependIIS': case 'prepend': return CopixUrl::_getPrepend($dest, $params, $html, $scriptName); default: trigger_error('Unknown significant url handler', E_USER_ERROR); } }