init_fields_restrict($mode); return $obj; } return false; } private static function get_sphinx_classname($type,$mode) { if(class_exists('searcher_sphinx_'.$type.'_'.$mode)){ return 'searcher_sphinx_'.$type.'_'.$mode; } if(class_exists('searcher_sphinx_'.$type)){ return 'searcher_sphinx_'.$type; } } private static function get_native_classname($type,$mode) { if($type == 'authperso'){ if($mode === 'query'){ return 'searcher_authorities_authpersos_query'; } return 'searcher_authorities_authpersos'; } //typo dans le source déjà en place... if($type == 'authorities' && $mode == ''){ $type = 'autorities'; }else if($type!='records'){ $type = 'authorities_'.$type; } if(class_exists('searcher_'.$type.'_'.$mode)){ return 'searcher_'.$type.'_'.$mode; } if(class_exists('searcher_'.$type)){ return 'searcher_'.$type; } } }