private function _searchZone($cndBase) { $result = []; $cnd = array_merge($cndBase, [$this->createLookup()]); $zones = new ZoneList($cnd); if ($data = $zones->getListviewData()) { if ($this->searchMask & SEARCH_TYPE_REGULAR) { $this->extendGlobalData($zones->getJSGlobals()); } $result = array('type' => TYPE_ZONE, 'appendix' => ' (Zone)', 'matches' => $zones->getMatches(), 'file' => ZoneList::$brickFile, 'data' => $data, 'params' => []); if ($zones->getMatches() > $this->maxResults) { $result['params']['note'] = sprintf(Util::$tryNarrowingString, 'LANG.lvnote_zonesfound', $zones->getMatches(), $this->maxResults); $result['params']['_truncated'] = 1; } } return $result; }
private function _searchZone($cndBase) { $cnd = array_merge($cndBase, [$this->createLookup()]); $zones = new ZoneList($cnd); if ($data = $zones->getListviewData()) { if ($this->searchMask & SEARCH_TYPE_REGULAR) { $this->extendGlobalData($zones->getJSGlobals()); } $osInfo = [TYPE_ZONE, ' (Zone)', $zones->getMatches()]; $result['data'] = array_values($data); if ($zones->getMatches() > $this->maxResults) { $result['note'] = sprintf(Util::$tryNarrowingString, 'LANG.lvnote_zonesfound', $zones->getMatches(), $this->maxResults); $result['_truncated'] = 1; } return ['zone', $result, null, $osInfo]; } return false; }