private function _searchSkill($cndBase) { $result = []; $cnd = array_merge($cndBase, [$this->createLookup()]); $skills = new SkillList($cnd); if ($data = $skills->getListviewData()) { if ($this->searchMask & SEARCH_TYPE_OPEN) { foreach ($skills->iterate() as $id => $__) { $data[$id]['param1'] = $skills->getField('iconString'); } } $result = array('type' => TYPE_SKILL, 'appendix' => ' (Skill)', 'matches' => $skills->getMatches(), 'file' => SkillList::$brickFile, 'data' => $data, 'params' => []); if ($skills->getMatches() > $this->maxResults) { $result['params']['note'] = sprintf(Util::$tryNarrowingString, 'LANG.lvnote_skillsfound', $skills->getMatches(), $this->maxResults); $result['params']['_truncated'] = 1; } } return $result; }
private function _searchSkill($cndBase) { $cnd = array_merge($cndBase, [$this->createLookup()]); $skills = new SkillList($cnd); if ($data = $skills->getListviewData()) { $osInfo = [TYPE_SKILL, ' (Skill)', $skills->getMatches(), []]; $result['data'] = array_values($data); if ($this->searchMask & SEARCH_TYPE_OPEN) { foreach ($skills->iterate() as $id => $__) { $osInfo[3][$id] = $skills->getField('iconString'); } } if ($skills->getMatches() > $this->maxResults) { $result['note'] = sprintf(Util::$tryNarrowingString, 'LANG.lvnote_skillsfound', $skills->getMatches(), $this->maxResults); $result['_truncated'] = 1; } return ['skill', $result, null, $osInfo]; } return false; }