function useDefault($filterFormPart) { return !$filterFormPart->getRequestedObject(); //if you want to page through the default search results, try the following //(will give the default unless the user really enters some search value) //$filterId = $filterFormPart->getFilterId(1); //$param = $filterFormPart->getFilterValue1(1); //return !$filterFormPart->getRequestedObject() // || $filterId == 'All stringfields' && !$param && $param !== '0'; } |