private static function AttachObligatoryParams($url, array $oblParams, array $params)
    {
        foreach ($oblParams as $oblParam) {

            $value = '';
            if (!array_key_exists($oblParam, $params)) {
                $value = Request::GetData($oblParam);
            }
            else {
                $value = $params[$oblParam];
            }
            if ($value) {
                $url = str_replace('{' . $oblParam . '}', $value, $url);
            }
        }
        return $url;
    }
private static function AttachObligatoryParams($url, array $oblParams, array $params)
    {
        foreach ($oblParams as $oblParam) {

            $value = '';
            if (!array_key_exists($oblParam, $params)) {
                $value = Request::GetData($oblParam);
            }
            else {
                $value = $params[$oblParam];
            }
            if ($value) {
                $url = str_replace('{' . $oblParam . '}', $value, $url);
            }
        }
        return $url;
    }
private static function AttachObligatoryParams ( $ url , array $ oblParams , array $ params ) { foreach ( $ oblParams as $ oblParam ) { $ value = '' ; if ( ! array_key_exists ( $ oblParam , $ params ) ) { $ value = Request :: GetData ( $ oblParam ) ; } else { $ value = $ params [ $ oblParam ] ; } if ( $ value ) { $ url = str_replace ( '{' . $ oblParam . '}' , $ value , $ url ) ; } } return $ url ; }
Attaches obligatory parameters
@param string $url The url pattern as given by the associated page property
@param array $oblParams The names of the obligatory parameters
@param array $params All given parameters for appending
@return string Returns the url with obligatory paramters attached
@throws \LogicException Raises an error if an obligatory parameter is missing
Attaches obligatory parameters