public function getWithNsQuery($ns, array $data, $mark = true)
    {
        if ($this->hasQuery($ns)) {
            $query = $this->getQuery($ns);
            $url = null;

            if ($mark === true) {
                $url = '?';
            }

            $url .= http_build_query(array($ns => array_merge($query, $data)));
            $url = str_replace('%25s', '%s', $url);

            return $url;
        } else {
            return null;
        }
    }
public function getWithNsQuery($ns, array $data, $mark = true)
    {
        if ($this->hasQuery($ns)) {
            $query = $this->getQuery($ns);
            $url = null;

            if ($mark === true) {
                $url = '?';
            }

            $url .= http_build_query(array($ns => array_merge($query, $data)));
            $url = str_replace('%25s', '%s', $url);

            return $url;
        } else {
            return null;
        }
    }
public function getWithNsQuery ( $ ns , array $ data , $ mark = true ) { if ( $ this -> hasQuery ( $ ns ) ) { $ query = $ this -> getQuery ( $ ns ) ; $ url = null ; if ( $ mark === true ) { $ url = '?' ; } $ url .= http_build_query ( array ( $ ns => array_merge ( $ query , $ data ) ) ) ; $ url = str_replace ( '%25s' , '%s' , $ url ) ; return $ url ; } else { return null ; } }
Merges and returns current query data with defined data and returns as query string

@param string $ns Target namespace (Group)
@param array $data Data to be merged
@param boolean $mark Whether to prepend question mark
@return string
Merges and returns current query data with defined data and returns as query string