TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility Class Reference

Public Member Functions

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

Public Attributes

 $original = ''
 
 $primary = ''
 
 $secondary = ''
 
 $length = 0
 
 $last = 0
 
 $current = 0
 

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 22 of file DoubleMetaPhoneUtility.php.

Member Function Documentation

◆ DoubleMetaPhone()

◆ IsVowel()

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

Is vowel?

Parameters
string$string
int$pos
Returns
bool|int

Definition at line 811 of file DoubleMetaPhoneUtility.php.

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

◆ metaphone()

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()

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

Is slavogermanic?

Parameters
string$string
Returns
bool|int

Definition at line 822 of file DoubleMetaPhoneUtility.php.

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

◆ StringAt()

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 790 of file DoubleMetaPhoneUtility.php.

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

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

Member Data Documentation

◆ $current

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

Definition at line 52 of file DoubleMetaPhoneUtility.php.

◆ $last

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

Definition at line 47 of file DoubleMetaPhoneUtility.php.

◆ $length

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

◆ $original

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

Definition at line 27 of file DoubleMetaPhoneUtility.php.

◆ $primary

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

◆ $secondary

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