private function _searchEmote($cndBase) { $result = []; $cnd = array_merge($cndBase, [$this->createLookup(['cmd', 'self_loc' . User::$localeId, 'target_loc' . User::$localeId, 'noTarget_loc' . User::$localeId])]); $emote = new EmoteList($cnd); if ($data = $emote->getListviewData()) { $result = array('type' => TYPE_EMOTE, 'appendix' => ' (Emote)', 'matches' => $emote->getMatches(), 'file' => EmoteList::$brickFile, 'data' => $data, 'params' => []); } return $result; }
private function _searchEmote($cndBase) { $cnd = array_merge($cndBase, [$this->createLookup(['cmd', 'self_loc' . User::$localeId, 'target_loc' . User::$localeId, 'noTarget_loc' . User::$localeId])]); $emote = new EmoteList($cnd); if ($data = $emote->getListviewData()) { $osInfo = [TYPE_EMOTE, ' (Emote)', $emote->getMatches()]; $result = array('data' => array_values($data), 'name' => Util::ucFirst(Lang::game('emotes'))); return ['emote', $result, 'emote', $osInfo]; } return false; }