<?php class SearchService extends BaseSerevice { public function getSoundexSuggestions($word){ $transArray2 = $this->getTG()->getDB()->getSoundexSuggestions($word, $this); foreach ($transArray2 as $word2){ // $contId = $word['id']; $related = $word2['searchedWord']; $wordId = $word2['id']; if(!empty($related)){ $this->hasSoundex = true; $answerArray [] = ['text'=>$related, 'id'=> EnumWord::GET_TRANSLATION.":".$wordId]; } } if(is_array($transArray2) && sizeof($transArray2)>0) { if($this->getTG()->getUser()->hasRole(EnumRole::TRANSLATOR)){ $answerArray [] = $this->getTG()->keyboard->getTranslatorInlineKeyboard(); } $this->getTG()->askMultipleChoiceQuestion("کدوم کلمه منظورت بود؟", $answerArray, $this->getTG()->chat_id); } } } ?>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
invite | Folder | 0755 |
|
|
translate | Folder | 0755 |
|
|
BaseMessageService.class.php | File | 268 B | 0755 |
|
BaseService.class.php | File | 364 B | 0755 |
|
ButtonService.class.php | File | 4.15 KB | 0755 |
|
CallbackService.class.php | File | 2.45 KB | 0755 |
|
ContributionService.class.php | File | 1.76 KB | 0755 |
|
IntentService.class.php | File | 7.19 KB | 0755 |
|
SearchService.class.php | File | 811 B | 0755 |
|
TTSService.class.php | File | 769 B | 0755 |
|