‪TYPO3CMS  ‪main
TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility Class Reference

Public Member Functions

string metaphone ($string, $sys_language_uid=0)
 
array DoubleMetaPhone ($string)
 
bool StringAt ($string, $start, $length, $list)
 
bool int IsVowel ($string, $pos)
 
bool int SlavoGermanic ($string)
 

Public Attributes

string $original = ''
 
string $primary = ''
 
string $secondary = ''
 
int $length = 0
 
int $last = 0
 
int $current = 0
 
Indexer $pObj
 

Detailed Description

TYPO3: Had to change name to "\TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility" from just "DoubleMetaPhone" because TYPO3 requires a user class to be prefixed so: TYPO3: If you want to use this metaphone method instead of the default in the indexer you can enable it in the extension configuration TYPO3: Of course you can write your own metaphone hook methods by taking this class and configuration as example (also see ext_localconf.php)

Definition at line 26 of file DoubleMetaPhoneUtility.php.

Member Function Documentation

◆ DoubleMetaPhone()

◆ IsVowel()

bool int TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility::IsVowel (   $string,
  $pos 
)

Is vowel?

Parameters
string$string
int$pos
Returns
‪bool|int

Definition at line 838 of file DoubleMetaPhoneUtility.php.

Referenced by TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility\DoubleMetaPhone().

◆ metaphone()

string TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility::metaphone (   $string,
  $sys_language_uid = 0 
)

Metaphone

Parameters
string$string
int$sys_language_uid
Returns
‪string

Definition at line 63 of file DoubleMetaPhoneUtility.php.

References TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility\DoubleMetaPhone().

◆ SlavoGermanic()

bool int TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility::SlavoGermanic (   $string)

Is slavogermanic?

Parameters
string$string
Returns
‪bool|int

Definition at line 849 of file DoubleMetaPhoneUtility.php.

Referenced by TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility\DoubleMetaPhone().

◆ StringAt()

bool TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility::StringAt (   $string,
  $start,
  $length,
  $list 
)

String at

Parameters
string$string
int$start
int$length
array$list
Returns
‪bool

Definition at line 817 of file DoubleMetaPhoneUtility.php.

References TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility\$length.

Referenced by TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility\DoubleMetaPhone().

Member Data Documentation

◆ $current

int TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility::$current = 0

Definition at line 50 of file DoubleMetaPhoneUtility.php.

◆ $last

int TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility::$last = 0

Definition at line 46 of file DoubleMetaPhoneUtility.php.

◆ $length

int TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility::$length = 0

◆ $original

string TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility::$original = ''

Definition at line 30 of file DoubleMetaPhoneUtility.php.

◆ $pObj

Indexer TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility::$pObj

Definition at line 52 of file DoubleMetaPhoneUtility.php.

◆ $primary

string TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility::$primary = ''

◆ $secondary

string TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility::$secondary = ''