getCriterion($criteriaType); if (PEAR::isError($critObj)) { return 'AJAX Error: failed to initialise critiria of type "'.$type.'".'; } // NBM: there appears to be no reason to take $aRequest into searchWidget... $noRequest = array(); return $critObj->searchWidget($noRequest); } function do_main() { return "Ajax Error. ajaxBooleanSearch::do_main should not be reachable."; } } $oDispatcher = new AjaxBooleanSearchDispatcher(); $oDispatcher->dispatch(); ?>