TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\IndexedSearch\Utility\IndexedSearchUtility Class Reference
Inheritance diagram for TYPO3\CMS\IndexedSearch\Utility\IndexedSearchUtility:
tx_indexedsearch_util

Static Public Member Functions

static isTableUsed ($tableName)
 
static md5inthash ($stringToHash)
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Class with common methods used across various classes in the indexed search. Impementation is provided by various people from the TYPO3 community.

This class is final because it contains only static methods.

Author
Dmitry Dulepov dmitr.nosp@m.y@ty.nosp@m.po3.c.nosp@m.om

Definition at line 24 of file IndexedSearchUtility.php.

Member Function Documentation

◆ isTableUsed()

static TYPO3\CMS\IndexedSearch\Utility\IndexedSearchUtility::isTableUsed (   $tableName)
static

Check if the tables provided are configured for usage. This becomes necessary for extensions that provide additional database functionality like indexed_search_mysql.

Parameters
string$tableNameTable name to check
Returns
boolean True if the given table is used

Definition at line 34 of file IndexedSearchUtility.php.

References $GLOBALS.

Referenced by TYPO3\CMS\IndexedSearch\Indexer\init(), and TYPO3\CMS\IndexedSearch\Controller\SearchFormController\initialize().

◆ md5inthash()

static TYPO3\CMS\IndexedSearch\Utility\IndexedSearchUtility::md5inthash (   $stringToHash)
static

md5 integer hash Using 7 instead of 8 just because that makes the integers lower than 32 bit (28 bit) and so they do not interfere with UNSIGNED integers or PHP-versions which has varying output from the hexdec function.

Parameters
string$stringToHashString to hash
Returns
integer Integer intepretation of the md5 hash of input string.

Definition at line 46 of file IndexedSearchUtility.php.

Referenced by TYPO3\CMS\IndexedSearch\Indexer\analyzeBody(), TYPO3\CMS\IndexedSearch\Indexer\analyzeHeaderinfo(), TYPO3\CMS\IndexedSearch\Indexer\indexRegularDocument(), TYPO3\CMS\IndexedSearch\Indexer\indexTypo3PageContent(), TYPO3\CMS\IndexedSearch\Indexer\metaphone(), and TYPO3\CMS\IndexedSearch\Controller\SearchFormController\searchDistinct().