LuceneSettingsForm::_getFormFields PHP Method

_getFormFields() public method

Return the field names of this form.
public _getFormFields ( $booleanOnly = false ) : array
$booleanOnly boolean Return only binary switches.
return array
    function _getFormFields($booleanOnly = false)
    {
        $booleanFormFields = array('autosuggest', 'spellcheck', 'pullIndexing', 'simdocs', 'highlighting', 'facetCategoryDiscipline', 'facetCategorySubject', 'facetCategoryType', 'facetCategoryCoverage', 'facetCategoryJournalTitle', 'facetCategoryAuthors', 'facetCategoryPublicationDate', 'customRanking', 'instantSearch', 'rankingByMetric', 'sortingByMetric', 'useProxySettings');
        $otherFormFields = array('searchEndpoint', 'username', 'instId', 'autosuggestType');
        if ($booleanOnly) {
            return $booleanFormFields;
        } else {
            return array_merge($booleanFormFields, $otherFormFields);
        }
    }