public function getHttpQueryString(array $moreQuery = null): string
    {
        $queries = [];

        if (!(is_null($this->page) || 1 == $this->page)) {
            $queries[$this->getParam()] = $this->page;
        }

        if (!empty($moreQuery)) {
            $queries = array_merge($queries, $moreQuery);
        }

        return !empty($queries) ? '?' . http_build_query($queries) : '';
    }
public function getHttpQueryString(array $moreQuery = null): string
    {
        $queries = [];

        if (!(is_null($this->page) || 1 == $this->page)) {
            $queries[$this->getParam()] = $this->page;
        }

        if (!empty($moreQuery)) {
            $queries = array_merge($queries, $moreQuery);
        }

        return !empty($queries) ? '?' . http_build_query($queries) : '';
    }
public function getHttpQueryString ( array $ moreQuery = null ) : string { $ queries = [ ] ; if ( ! ( is_null ( $ this -> page ) || 1 == $ this -> page ) ) { $ queries [ $ this -> getParam ( ) ] = $ this -> page ; } if ( ! empty ( $ moreQuery ) ) { $ queries = array_merge ( $ queries , $ moreQuery ) ; } return ! empty ( $ queries ) ? '?' . http_build_query ( $ queries ) : '' ; }
Get query string part of URL for navigation between pages.

@param array $moreQuery Additional query string parameters

@return string Query string part of URL
Get query string part of URL for navigation between pages .