DoubleMetaPhoneUtility
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)
Table of Contents
Properties
- $current : int
- $last : int
- $length : int
- $original : string
- $pObj : Indexer
- $primary : string
- $secondary : string
Methods
- DoubleMetaPhone() : array<string|int, mixed>
- Double metaphone
- IsVowel() : bool|int
- Is vowel?
- metaphone() : string
- Metaphone
- SlavoGermanic() : bool|int
- Is slavogermanic?
- StringAt() : bool
- String at
Properties
$current
public
int
$current
= 0
$last
public
int
$last
= 0
$length
public
int
$length
= 0
$original
public
string
$original
= ''
$pObj
public
Indexer
$pObj
$primary
public
string
$primary
= ''
$secondary
public
string
$secondary
= ''
Methods
DoubleMetaPhone()
Double metaphone
public
DoubleMetaPhone(string $string) : array<string|int, mixed>
Parameters
- $string : string
Return values
array<string|int, mixed>IsVowel()
Is vowel?
public
IsVowel(string $string, int $pos) : bool|int
Parameters
- $string : string
- $pos : int
Return values
bool|intmetaphone()
Metaphone
public
metaphone(string $string[, int $sys_language_uid = 0 ]) : string
Parameters
- $string : string
- $sys_language_uid : int = 0
Return values
stringSlavoGermanic()
Is slavogermanic?
public
SlavoGermanic(string $string) : bool|int
Parameters
- $string : string
Return values
bool|intStringAt()
String at
public
StringAt(string $string, int $start, int $length, array<string|int, mixed> $list) : bool
Parameters
- $string : string
- $start : int
- $length : int
- $list : array<string|int, mixed>