idx int64 0 60.3k | question stringlengths 92 4.62k | target stringlengths 7 635 |
|---|---|---|
37,000 | public function getIndexQueueConfigurationIsEnabled ( $ configurationName , $ defaultIfEmpty = false ) { $ path = 'plugin.tx_solr.index.queue.' . $ configurationName ; $ result = $ this -> getValueByPathOrDefaultValue ( $ path , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | This method is used to check if an index queue configuration is enabled or not |
37,001 | public function getEnabledIndexQueueConfigurationNames ( $ defaultIfEmpty = [ ] ) { $ tablesToIndex = [ ] ; $ path = 'plugin.tx_solr.index.queue.' ; $ indexQueueConfiguration = $ this -> getObjectByPathOrDefault ( $ path , [ ] ) ; foreach ( $ indexQueueConfiguration as $ configurationName => $ indexingEnabled ) { if ( ... | Retrieves an array of enabled index queue configurations . |
37,002 | public function getIndexQueueConfigurationRecursiveUpdateFields ( $ configurationName , $ defaultIfEmpty = [ ] ) { $ path = 'plugin.tx_solr.index.queue.' . $ configurationName . '.recursiveUpdateFields' ; $ recursiveUpdateFieldsString = $ this -> getValueByPathOrDefaultValue ( $ path , '' ) ; if ( trim ( $ recursiveUpd... | Retrieves an array of additional fields that will trigger an recursive update of pages when some of the fields on that page are modified . |
37,003 | public function getInitialPagesAdditionalWhereClause ( $ configurationName ) { $ path = 'plugin.tx_solr.index.queue.' . $ configurationName . '.initialPagesAdditionalWhereClause' ; $ initialPagesAdditionalWhereClause = $ this -> getValueByPathOrDefaultValue ( $ path , '' ) ; if ( trim ( $ initialPagesAdditionalWhereCla... | Retrieves and initialPagesAdditionalWhereClause where clause when configured or an empty string . |
37,004 | public function getIndexQueueAdditionalWhereClauseByConfigurationName ( $ configurationName ) { $ path = 'plugin.tx_solr.index.queue.' . $ configurationName . '.additionalWhereClause' ; $ additionalWhere = $ this -> getValueByPathOrDefaultValue ( $ path , '' ) ; if ( trim ( $ additionalWhere ) === '' ) { return '' ; } ... | Retrieves and additional where clause when configured or an empty string . |
37,005 | public function getIndexQueueConfigurationNamesByTableName ( $ tableName , $ defaultIfEmpty = [ ] ) { $ path = 'plugin.tx_solr.index.queue.' ; $ configuration = $ this -> getObjectByPathOrDefault ( $ path , [ ] ) ; $ possibleConfigurations = [ ] ; foreach ( $ configuration as $ configurationName => $ indexingEnabled ) ... | This method can be used to retrieve all index queue configuration names where a certain table is used . It can be configured with the property table or is using the configuration key a fallback for the table name . |
37,006 | public function getIndexQueueInitializerClassByConfigurationName ( $ configurationName , $ defaultIfEmpty = Record :: class ) { $ path = 'plugin.tx_solr.index.queue.' . $ configurationName . '.initialization' ; $ className = $ this -> getValueByPathOrDefaultValue ( $ path , $ defaultIfEmpty ) ; return $ className ; } | This method is used to retrieve the className of a queue initializer for a certain indexing configuration of returns the default initializer class when noting is configured . |
37,007 | public function getLoggingDebugOutput ( $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.logging.debugOutput' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | When this is enabled the output of the devlog will be printed as debug output . |
37,008 | public function getLoggingQueryFilters ( $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.logging.query.filters' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Returns if query filters should be written to the log . |
37,009 | public function getLoggingQueryQueryString ( $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.logging.query.queryString' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Returns if the querystring should be logged or not . |
37,010 | public function getLoggingQuerySearchWords ( $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.logging.query.searchWords' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Returns if the searchWords should be logged or not . |
37,011 | public function getLoggingQueryRawGet ( $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.logging.query.rawGet' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Returns if the rawGet requests should be logged or not . |
37,012 | public function getLoggingQueryRawPost ( $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.logging.query.rawPost' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Returns if the rawPost requests should be logged or not . |
37,013 | public function getLoggingQueryRawDelete ( $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.logging.query.rawDelete' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Returns if the rawDelete requests should be logged or not . |
37,014 | public function getLoggingExceptions ( $ defaultIfEmpty = true ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.logging.exceptions' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Returns if exceptions should be logged or not . |
37,015 | public function getLoggingIndexing ( $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.logging.indexing' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Returns if indexing operations should be logged or not . |
37,016 | public function getLoggingIndexingQueue ( $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.logging.indexing.queue' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Returns if indexing queue operations should be logged or not . |
37,017 | public function getLoggingIndexingQueueOperationsByConfigurationNameWithFallBack ( $ indexQueueConfiguration , $ defaultIfEmpty = false ) { if ( $ this -> getLoggingIndexing ( ) ) { return true ; } if ( $ this -> getLoggingIndexingQueue ( ) ) { return true ; } $ path = 'plugin.tx_solr.logging.indexing.queue.' . $ index... | This method can be used to check if the logging during indexing should be done . It takes the specific configuration by indexQueueConfiguration into account or is using the fallback when the logging is enabled on queue or indexing level . |
37,018 | public function getLoggingIndexingPageIndexed ( $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.logging.indexing.pageIndexed' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Returns if a log message should be written when a page was indexed . |
37,019 | public function getLoggingIndexingMissingTypo3SearchMarkers ( $ defaultIfEmpty = true ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.logging.indexing.missingTypo3SearchMarkers' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Returns if a log message should be written when the TYPO3 search markers are missing in the page . |
37,020 | public function getLoggingIndexingIndexQueueInitialization ( $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.logging.indexing.indexQueueInitialization' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Returns if the initialization of an indexqueue should be logged . |
37,021 | public function getEnabledDebugMode ( $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.enableDebugMode' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Indicates if the debug mode is enabled or not . |
37,022 | public function getSolrTimeout ( $ defaultIfEmpty = 0 , $ scope = 'read' ) { $ scopePath = 'plugin.tx_solr.solr.' . $ scope . '.timeout' ; $ fallbackPath = 'plugin.tx_solr.solr.timeout' ; $ result = ( int ) $ this -> getValueByPathOrDefaultValue ( $ scopePath , - 1 ) ; if ( $ result !== - 1 ) { return $ result ; } retu... | Returns the defaultTimeout used for requests to the Solr server |
37,023 | public function getSolrScheme ( $ defaultIfEmpty = 'http' , $ scope = 'read' ) { $ scopePath = 'plugin.tx_solr.solr.' . $ scope . '.scheme' ; $ fallbackPath = 'plugin.tx_solr.solr.scheme' ; return $ this -> getValueByPathWithFallbackOrDefaultValueAndApplyStdWrap ( $ scopePath , $ fallbackPath , $ defaultIfEmpty ) ; } | Returns the scheme used for requests to the Solr server |
37,024 | public function getSolrHost ( $ defaultIfEmpty = 'localhost' , $ scope = 'read' ) { $ scopePath = 'plugin.tx_solr.solr.' . $ scope . '.host' ; $ fallbackPath = 'plugin.tx_solr.solr.host' ; return $ this -> getValueByPathWithFallbackOrDefaultValueAndApplyStdWrap ( $ scopePath , $ fallbackPath , $ defaultIfEmpty ) ; } | Returns the hostname used for requests to the Solr server |
37,025 | public function getSolrPort ( $ defaultIfEmpty = 8983 , $ scope = 'read' ) { $ scopePath = 'plugin.tx_solr.solr.' . $ scope . '.port' ; $ fallbackPath = 'plugin.tx_solr.solr.port' ; return ( int ) $ this -> getValueByPathWithFallbackOrDefaultValueAndApplyStdWrap ( $ scopePath , $ fallbackPath , $ defaultIfEmpty ) ; } | Returns the port used for requests to the Solr server |
37,026 | public function getSolrPath ( $ defaultIfEmpty = '/solr/core_en/' , $ scope = 'read' ) { $ scopePath = 'plugin.tx_solr.solr.' . $ scope . '.path' ; $ fallbackPath = 'plugin.tx_solr.solr.path' ; $ solrPath = $ this -> getValueByPathWithFallbackOrDefaultValueAndApplyStdWrap ( $ scopePath , $ fallbackPath , $ defaultIfEmp... | Returns the path used for requests to the Solr server |
37,027 | public function getSolrUsername ( $ defaultIfEmpty = '' , $ scope = 'read' ) { $ scopePath = 'plugin.tx_solr.solr.' . $ scope . '.username' ; $ fallbackPath = 'plugin.tx_solr.solr.username' ; return $ this -> getValueByPathWithFallbackOrDefaultValueAndApplyStdWrap ( $ scopePath , $ fallbackPath , $ defaultIfEmpty ) ; } | Returns the username used for requests to the Solr server |
37,028 | public function getSolrPassword ( $ defaultIfEmpty = '' , $ scope = 'read' ) { $ scopePath = 'plugin.tx_solr.solr.' . $ scope . '.password' ; $ fallbackPath = 'plugin.tx_solr.solr.password' ; return $ this -> getValueByPathWithFallbackOrDefaultValueAndApplyStdWrap ( $ scopePath , $ fallbackPath , $ defaultIfEmpty ) ; } | Returns the password used for requests to the Solr server |
37,029 | public function getSearchElevation ( $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.elevation' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Indicates if elevation should be used or not |
37,030 | public function getSearchElevationMarkElevatedResults ( $ defaultIfEmpty = true ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.elevation.markElevatedResults' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Indicates if elevated results should be marked |
37,031 | public function getSearchElevationForceElevation ( $ defaultIfEmpty = true ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.elevation.forceElevation' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Indicates if elevation should be forced |
37,032 | public function getSearchVariants ( $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.variants' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Indicates if collapsing on a certain field should be used to build variants or not . |
37,033 | public function getSearchVariantsExpand ( $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.variants.expand' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Indicates if expanding of collapsed items it activated . |
37,034 | public function getSearchInitializeWithEmptyQuery ( $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.initializeWithEmptyQuery' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Returns the configuration if the search should be initialized with an empty query . |
37,035 | public function getSearchLastSearches ( $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.lastSearches' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Returns if the last searches should be displayed or not . |
37,036 | public function getSearchShowResultsOfInitialEmptyQuery ( $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.showResultsOfInitialEmptyQuery' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Indicates if the results of an initial empty query should be shown or not . |
37,037 | public function getSearchShowResultsOfInitialQuery ( $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.showResultsOfInitialQuery' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Indicates if the results of an initial search query should be shown . |
37,038 | public function getSearchSorting ( $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.sorting' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Indicates if sorting was enabled or not . |
37,039 | public function getSearchSortingDefaultOrderBySortOptionName ( $ sortOptionName = '' , $ defaultIfEmpty = 'asc' ) { $ sortOrderSpecificPath = 'plugin.tx_solr.search.sorting.options.' . $ sortOptionName . '.defaultOrder' ; $ specificSortOrder = $ this -> getValueByPathOrDefaultValue ( $ sortOrderSpecificPath , null ) ; ... | Retrieves the sorting default order for a sort option . |
37,040 | public function getSearchTrustedFieldsArray ( $ defaultIfEmpty = [ 'url' ] ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.trustedFields' , '' ) ; if ( trim ( $ result ) === '' ) { return $ defaultIfEmpty ; } return GeneralUtility :: trimExplode ( ',' , $ result ) ; } | Returns the trusted fields configured for the search that do not need to be escaped . |
37,041 | public function getSearchKeepExistingParametersForNewSearches ( $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.keepExistingParametersForNewSearches' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Indicates if the plugin arguments should be kept in the search form for a second submission . |
37,042 | public function getPhraseSearchIsEnabled ( bool $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.query.phrase' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | This method is used to check if a phrase search is enabled or not |
37,043 | public function getBigramPhraseSearchIsEnabled ( bool $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.query.bigramPhrase' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | This method is used to check if a bigram phrase search is enabled or not |
37,044 | public function getTrigramPhraseSearchIsEnabled ( bool $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.query.trigramPhrase' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | This method is used to check if a trigram phrase search is enabled or not |
37,045 | public function getSearchQueryReturnFieldsAsArray ( $ defaultIfEmpty = [ ] ) { $ returnFields = $ this -> getValueByPath ( 'plugin.tx_solr.search.query.returnFields' ) ; if ( is_null ( $ returnFields ) ) { return $ defaultIfEmpty ; } return GeneralUtility :: trimExplode ( ',' , $ returnFields ) ; } | Returns the configured returnFields as array . |
37,046 | public function getSearchTargetPage ( ) { $ targetPage = ( int ) $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.targetPage' , 0 ) ; if ( $ targetPage === 0 ) { $ targetPage = $ this -> contextPageId ; } return $ targetPage ; } | Returns the configured target page for the search . By default the contextPageId will be used |
37,047 | public function getSearchResultsSiteHighlighting ( $ defaultIfEmpty = true ) { $ isSiteHightlightingEnabled = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.results.siteHighlighting' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ isSiteHightlightingEnabled ) ; } | Method to check if the site highlighting is enabled . When the siteHighlighting is enabled the sword_list parameter is added to the results link . |
37,048 | public function getSearchResultsHighlighting ( $ defaultIfEmpty = false ) { $ isHighlightingEnabled = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.results.resultsHighlighting' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ isHighlightingEnabled ) ; } | Can be used to check if the highlighting is enabled |
37,049 | public function getSearchResultsHighlightingFieldsAsArray ( $ defaultIfEmpty = [ ] ) { $ highlightingFields = $ this -> getSearchResultsHighlightingFields ( '' ) ; if ( $ highlightingFields === '' ) { return $ defaultIfEmpty ; } return GeneralUtility :: trimExplode ( ',' , $ highlightingFields , true ) ; } | Returns the result highlighting fields as array . |
37,050 | public function getSearchResultsPerPageSwitchOptionsAsArray ( $ defaultIfEmpty = [ ] ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.results.resultsPerPageSwitchOptions' , '' ) ; if ( trim ( $ result ) === '' ) { return $ defaultIfEmpty ; } return GeneralUtility :: intExplode ( ',' , $ re... | Returns the available options for the per page switch . |
37,051 | public function getSearchSpellchecking ( $ defaultIfEmpty = false ) { $ isFacetingEnabled = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.spellchecking' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ isFacetingEnabled ) ; } | Indicates if spellchecking is enabled or not . |
37,052 | public function getSearchSpellcheckingSearchUsingSpellCheckerSuggestion ( $ defaultIfEmpty = false ) { $ result = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.spellchecking.searchUsingSpellCheckerSuggestion' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ result ) ; } | Indicates if a second search should be fired from the spellchecking suggestion if no results could be found . |
37,053 | public function getSearchFaceting ( $ defaultIfEmpty = false ) { $ isFacetingEnabled = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.faceting' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ isFacetingEnabled ) ; } | Indicates if faceting is enabled or not . |
37,054 | public function getSearchFacetingShowEmptyFacetsByName ( $ facetName = '' , $ defaultIfEmpty = false ) { $ facetSpecificPath = 'plugin.tx_solr.search.faceting.facets.' . $ facetName . '.showEvenWhenEmpty' ; $ specificShowWhenEmpty = $ this -> getValueByPathOrDefaultValue ( $ facetSpecificPath , null ) ; if ( $ specific... | Retrieves the showEvenWhenEmpty for a facet by facet name . If nothing specific is configured the global showEmptyFacets with be returned . |
37,055 | public function getSearchFacetingFacetLinkUrlParametersUseForFacetResetLinkUrl ( $ defaultIfEmpty = true ) { $ useForFacetResetLinkUrl = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.faceting.facetLinkUrlParameters.useForFacetResetLinkUrl' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ useForFace... | Returns if the facetLinkUrlsParameters should be included in the reset link . |
37,056 | public function getSearchFacetingFacetLinkUrlParametersAsArray ( $ defaultIfEmpty = [ ] ) { $ linkUrlParameters = $ this -> getSearchFacetingFacetLinkUrlParameters ( ) ; if ( $ linkUrlParameters === '' ) { return $ defaultIfEmpty ; } return GeneralUtility :: explodeUrl2Array ( $ linkUrlParameters ) ; } | Returns the link url parameters that should be added to a facet as array . |
37,057 | public function getSearchFacetingCountAllFacetsForSelection ( $ defaultIfEmpty = false ) { $ countAllFacetsForSelection = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.faceting.countAllFacetsForSelection' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ countAllFacetsForSelection ) ; } | Returns if the facet count should be calculated based on the facet selection when plugin . tx_solr . search . faceting . keepAllFacetsOnSelection has been enabled |
37,058 | public function getStatistics ( $ defaultIfEmpty = false ) { $ isStatisticsEnabled = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.statistics' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ isStatisticsEnabled ) ; } | Indicates if statistics is enabled or not . |
37,059 | public function getStatisticsAddDebugData ( $ defaultIfEmpty = false ) { $ statisticsAddDebugDataEnabled = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.statistics.addDebugData' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ statisticsAddDebugDataEnabled ) ; } | Indicates if additional debug Data should be added to the statistics |
37,060 | public function getSuggest ( $ defaultIfEmpty = false ) { $ isSuggestionEnabled = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.suggest' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ isSuggestionEnabled ) ; } | Indicates if suggestion is enabled or not . |
37,061 | public function getSuggestForceHttps ( $ defaultIfEmpty = false ) { $ isHttpsForced = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.suggest.forceHttps' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ isHttpsForced ) ; } | Indicates if https should be used for the suggest form . |
37,062 | public function getSuggestShowTopResults ( $ defaultIfEmpty = true ) { $ showTopResults = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.suggest.showTopResults' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ showTopResults ) ; } | Indicates if the topResults should be shown or not |
37,063 | public function getSuggestAdditionalTopResultsFields ( $ defaultIfEmpty = [ ] ) { $ additionalTopResultsFields = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.suggest.additionalTopResultsFields' , '' ) ; if ( $ additionalTopResultsFields === '' ) { return $ defaultIfEmpty ; } return GeneralUtility :: trimExp... | Returns additional fields for the top results |
37,064 | public function getViewTemplateByFileKey ( $ fileKey , $ defaultIfEmpty = '' ) { $ templateFileName = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.view.templateFiles.' . $ fileKey , $ defaultIfEmpty ) ; return ( string ) $ templateFileName ; } | Returns the configured template for a specific template fileKey . |
37,065 | public function getSearchIgnoreGlobalQParameter ( $ defaultIfEmpty = false ) { $ enableQParameter = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.ignoreGlobalQParameter' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ enableQParameter ) ; } | Returns true if the global url parameter q that indicates the query should be used . |
37,066 | public function getSearchAdditionalPersistentArgumentNames ( $ defaultIfEmpty = [ ] ) { $ additionalPersistentArgumentNames = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.additionalPersistentArgumentNames' , '' ) ; if ( $ additionalPersistentArgumentNames === '' ) { return $ defaultIfEmpty ; } return... | Returns the argument names that should be added to the persistent arguments as array . |
37,067 | public function getSearchGrouping ( $ defaultIfEmpty = false ) { $ groupingEnabled = $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.grouping' , $ defaultIfEmpty ) ; return $ this -> getBool ( $ groupingEnabled ) ; } | Method to check if grouping was enabled with typoscript . |
37,068 | public function getSearchGroupingHighestGroupResultsLimit ( $ defaultIfEmpty = 1 ) { $ groupingConfiguration = $ this -> getObjectByPathOrDefault ( 'plugin.tx_solr.search.grouping.' , [ ] ) ; $ highestLimit = $ defaultIfEmpty ; if ( ! empty ( $ groupingConfiguration [ 'numberOfResultsPerGroup' ] ) ) { $ highestLimit = ... | Returns the highestValue of the numberOfResultsPerGroup configuration that is globally configured and for each group . |
37,069 | public function getSearchGroupingResultLimit ( $ groupName , $ defaultIfEmpty = 1 ) { $ specificPath = 'plugin.tx_solr.search.grouping.groups.' . $ groupName . 'numberOfResultsPerGroup' ; $ specificResultsPerGroup = $ this -> getValueByPathOrDefaultValue ( $ specificPath , null ) ; if ( $ specificResultsPerGroup !== nu... | Returns the valid numberOfResultsPerGroup value for a group . |
37,070 | public function process ( SearchResultSet $ resultSet ) { $ response = $ resultSet -> getResponse ( ) ; if ( ! is_array ( $ response -> response -> docs ) ) { return $ resultSet ; } if ( ! $ this -> typoScriptConfiguration -> getSearchVariants ( ) ) { return $ resultSet ; } $ variantsField = $ this -> typoScriptConfigu... | This method is used to add documents to the expanded documents of the SearchResult when collapsing is configured . |
37,071 | protected function buildVariantDocumentAndAssignToParentResult ( ResponseAdapter $ response , $ variantAccessKey , SearchResult $ resultDocument ) { foreach ( $ response -> { 'expanded' } -> { $ variantAccessKey } -> { 'docs' } as $ variantDocumentArray ) { $ fields = get_object_vars ( $ variantDocumentArray ) ; $ vari... | Build the SearchResult of the variant and assigns it to the parent result document . |
37,072 | public function getSearchComponents ( ) { $ searchComponents = [ ] ; foreach ( self :: $ searchComponents as $ componentName => $ componentClass ) { $ searchComponents [ $ componentName ] = $ this -> getSearchComponent ( $ componentName ) ; } return $ searchComponents ; } | Returns all currently registered search components . |
37,073 | public function getSearchComponent ( $ componentName ) { if ( ! array_key_exists ( $ componentName , self :: $ searchComponents ) ) { throw new \ InvalidArgumentException ( 'No search component registered named ' . $ componentName , 1343398440 ) ; } $ searchComponent = GeneralUtility :: makeInstance ( self :: $ searchC... | Instanciates a registered search component |
37,074 | public function buildFromTypeAndUid ( $ type , $ uid ) { $ systemHash = $ this -> getSystemHash ( ) ; $ variantId = $ systemHash . '/' . $ type . '/' . $ uid ; $ variantId = $ this -> applyHook ( $ variantId , $ systemHash , $ type , $ uid ) ; return $ variantId ; } | This method is used to build a variantId . |
37,075 | protected function applyHook ( $ variantId , $ systemHash , $ type , $ uid ) { if ( ! is_array ( $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'EXTCONF' ] [ 'solr' ] [ 'modifyVariantId' ] ) ) { return $ variantId ; } foreach ( $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'EXTCONF' ] [ 'solr' ] [ 'modifyVariantId' ] as $ classReference ) { $ ... | Applies configured postProcessing hooks to build a custom variantId . |
37,076 | protected function getSystemHash ( ) { if ( ! isset ( $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'SYS' ] [ 'sitename' ] ) ) { throw new \ InvalidArgumentException ( "No sitename set in TYPO3_CONF_VARS|SYS|sitename" ) ; } $ siteName = $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'SYS' ] [ 'sitename' ] ; $ systemKey = 'tx_solr' . $ siteName... | Returns a system unique hash . |
37,077 | public function getSiteByPageId ( $ pageId , $ mountPointIdentifier = '' ) { $ rootPageId = $ this -> rootPageResolver -> getRootPageId ( $ pageId , false , $ mountPointIdentifier ) ; return $ this -> getSiteByRootPageId ( $ rootPageId ) ; } | Gets the Site for a specific page Id . |
37,078 | public function getSiteByRootPageId ( $ rootPageId ) { $ cacheId = 'SiteRepository' . '_' . 'getSiteByPageId' . '_' . $ rootPageId ; $ methodResult = $ this -> runtimeCache -> get ( $ cacheId ) ; if ( ! empty ( $ methodResult ) ) { return $ methodResult ; } $ methodResult = $ this -> buildSite ( $ rootPageId ) ; $ this... | Gets the Site for a specific root page Id . |
37,079 | public function getAvailableSites ( $ stopOnInvalidSite = false ) { $ sites = [ ] ; $ cacheId = 'SiteRepository' . '_' . 'getAvailableSites' ; $ methodResult = $ this -> runtimeCache -> get ( $ cacheId ) ; if ( ! empty ( $ methodResult ) ) { return $ methodResult ; } $ servers = $ this -> getSolrServersFromRegistry ( )... | Gets all available TYPO3 sites with Solr configured . |
37,080 | protected function buildSite ( $ rootPageId ) { $ rootPageRecord = ( array ) BackendUtility :: getRecord ( 'pages' , $ rootPageId ) ; $ this -> validateRootPageRecord ( $ rootPageId , $ rootPageRecord ) ; $ solrConfiguration = Util :: getSolrConfigurationFromPageId ( $ rootPageId ) ; $ domain = $ this -> getDomainFromC... | Creates an instance of the Site object . |
37,081 | protected function getDefaultLanguage ( $ rootPageId ) { $ siteDefaultLanguage = 0 ; $ configuration = Util :: getConfigurationFromPageId ( $ rootPageId , 'config' ) ; $ siteDefaultLanguage = $ configuration -> getValueByPathOrDefaultValue ( 'sys_language_uid' , $ siteDefaultLanguage ) ; $ siteDefaultLanguage = $ confi... | Retrieves the default language by the rootPageId of a site . |
37,082 | public function indexAction ( ) { if ( ! $ this -> canQueueSelectedSite ( ) ) { $ this -> view -> assign ( 'can_not_proceed' , true ) ; return ; } $ statistics = $ this -> indexQueue -> getStatisticsBySite ( $ this -> selectedSite ) ; $ this -> view -> assign ( 'indexQueueInitializationSelector' , $ this -> getIndexQue... | Lists the available indexing configurations |
37,083 | protected function canQueueSelectedSite ( ) { if ( $ this -> selectedSite === null ) { return false ; } $ enabledIndexQueueConfigurationNames = $ this -> selectedSite -> getSolrConfiguration ( ) -> getEnabledIndexQueueConfigurationNames ( ) ; if ( empty ( $ enabledIndexQueueConfigurationNames ) ) { return false ; } ret... | Checks if selected site can be queued . |
37,084 | public function initializeIndexQueueAction ( ) { $ initializedIndexingConfigurations = [ ] ; $ indexingConfigurationsToInitialize = GeneralUtility :: _POST ( 'tx_solr-index-queue-initialization' ) ; if ( ( ! empty ( $ indexingConfigurationsToInitialize ) ) && ( is_array ( $ indexingConfigurationsToInitialize ) ) ) { $ ... | Initializes the Index Queue for selected indexing configurations |
37,085 | public function resetLogErrorsAction ( ) { $ resetResult = $ this -> indexQueue -> resetAllErrors ( ) ; $ label = 'solr.backend.index_queue_module.flashmessage.success.reset_errors' ; $ severity = FlashMessage :: OK ; if ( ! $ resetResult ) { $ label = 'solr.backend.index_queue_module.flashmessage.error.reset_errors' ;... | Removes all errors in the index queue list . So that the items can be indexed again . |
37,086 | public function requeueDocumentAction ( string $ type , int $ uid ) { $ label = 'solr.backend.index_queue_module.flashmessage.error.single_item_not_requeued' ; $ severity = FlashMessage :: ERROR ; $ updateCount = $ this -> indexQueue -> updateItem ( $ type , $ uid , time ( ) ) ; if ( $ updateCount > 0 ) { $ label = 'so... | ReQueues a single item in the indexQueue . |
37,087 | public function showErrorAction ( int $ indexQueueItemId ) { if ( is_null ( $ indexQueueItemId ) ) { $ label = 'solr.backend.index_queue_module.flashmessage.error.no_queue_item_for_queue_error' ; $ severity = FlashMessage :: ERROR ; $ this -> addIndexQueueFlashMessage ( $ label , $ severity ) ; return ; } $ item = $ th... | Shows the error message for one queue item . |
37,088 | public function doIndexingRunAction ( ) { $ indexService = GeneralUtility :: makeInstance ( IndexService :: class , $ this -> selectedSite ) ; $ indexWithoutErrors = $ indexService -> indexItems ( 10 ) ; $ label = 'solr.backend.index_queue_module.flashmessage.success.index_manual' ; $ severity = FlashMessage :: OK ; if... | Indexes a few documents with the index service . |
37,089 | protected function addIndexQueueFlashMessage ( $ label , $ severity ) { $ this -> addFlashMessage ( LocalizationUtility :: translate ( $ label , 'Solr' ) , LocalizationUtility :: translate ( 'solr.backend.index_queue_module.flashmessage.title' , 'Solr' ) , $ severity ) ; } | Adds a flash message for the index queue module . |
37,090 | public function shutdown ( ) { $ this -> dispatcher -> shutdown ( ) ; ob_end_clean ( ) ; $ this -> response -> sendHeaders ( ) ; echo $ this -> response -> getContent ( ) ; exit ; } | Completes the Index Queue page indexer request and returns the response with the collected results . |
37,091 | public function pageUnavailableAndExit ( $ reason = '' , $ header = '' ) { if ( ! defined ( 'EXT_SOLR_INDEXING_CONTEXT' ) ) { parent :: pageUnavailableAndExit ( $ reason , $ header ) ; } throw new DocumentPreparationException ( 'Solr Document can not be prepared. The Reason: ' . $ reason , 1517584040 ) ; } | Page unavailable handler for use in frontend plugins from extensions . |
37,092 | public function pageNotFoundAndExit ( $ reason = '' , $ header = '' ) { if ( ! defined ( 'EXT_SOLR_INDEXING_CONTEXT' ) ) { parent :: pageNotFoundAndExit ( $ reason , $ header ) ; } throw new DocumentPreparationException ( 'Solr Document can not be prepared. The Reason: ' . $ reason , 1517584045 ) ; } | Page - not - found handler for use in frontend plugins from extensions . |
37,093 | public function push ( RootlineElement $ rootlineElement ) { $ lastElementIndex = max ( 0 , ( count ( $ this -> rootlineElements ) - 1 ) ) ; if ( ! empty ( $ this -> rootlineElements [ $ lastElementIndex ] ) ) { if ( $ this -> rootlineElements [ $ lastElementIndex ] -> getType ( ) == RootlineElement :: ELEMENT_TYPE_CON... | Adds an Access Rootline Element to the end of the rootline . |
37,094 | public static function getAccessRootlineByPageId ( $ pageId , $ mountPointParameter = '' ) { $ accessRootline = GeneralUtility :: makeInstance ( Rootline :: class ) ; $ pageSelector = GeneralUtility :: makeInstance ( PageRepository :: class ) ; $ pageSelector -> init ( false ) ; $ rootline = $ pageSelector -> getRootLi... | Gets the Access Rootline for a specific page Id . |
37,095 | public function getGroups ( ) { $ groups = [ ] ; foreach ( $ this -> rootlineElements as $ rootlineElement ) { $ rootlineElementGroups = $ rootlineElement -> getGroups ( ) ; $ groups = array_merge ( $ groups , $ rootlineElementGroups ) ; } $ groups = $ this -> cleanGroupArray ( $ groups ) ; return $ groups ; } | Gets a the groups in the Access Rootline . |
37,096 | public function isoToTimestamp ( $ isoTime ) { $ dateTime = \ DateTime :: createFromFormat ( self :: SOLR_ISO_DATETIME_FORMAT , $ isoTime ) ; return $ dateTime ? ( int ) $ dateTime -> format ( 'U' ) : 0 ; } | Converts a date from ISO 8601 format to unix timestamp . |
37,097 | public function utcIsoToTimestamp ( $ isoTime ) { $ utcTimeZone = new \ DateTimeZone ( 'UTC' ) ; $ dateTime = \ DateTime :: createFromFormat ( self :: SOLR_ISO_DATETIME_FORMAT , $ isoTime , $ utcTimeZone ) ; return $ dateTime ? ( int ) $ dateTime -> format ( 'U' ) : 0 ; } | Converts a date from ISO 8601 format in UTC timezone to unix timestamp . |
37,098 | protected function getFormattedDate ( $ input , $ inputFormat , $ outputFormat , DateTimeZone $ timezone ) { $ formattedDate = DateTime :: createFromFormat ( $ inputFormat , $ input , $ timezone ) ; if ( $ formattedDate ) { return $ formattedDate -> format ( $ outputFormat ) ; } return $ input ; } | Applies the formatting using DateTime . |
37,099 | public function findOneLanguageTitleByLanguageId ( int $ languageId ) : string { $ queryBuilder = $ this -> getQueryBuilder ( ) ; $ result = $ queryBuilder -> select ( 'title' ) -> from ( $ this -> table ) -> where ( $ queryBuilder -> expr ( ) -> eq ( 'uid' , $ languageId ) ) -> execute ( ) -> fetch ( ) ; if ( $ result... | Finds the language name for a given language ID . |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.