public function search($query)
    {
        $this->logger->debug('Category:search:', [$query]);
        if (!Tools::isGoodString($query)) {
            $this->logger->error('Category::search: invalid query');
            return [];
        }
        $this->setGeneratorSearch($query, self::CATEGORY_NAMESPACE);
        return $this->getCategoryinfoResponse();
    }
public function search($query)
    {
        $this->logger->debug('Category:search:', [$query]);
        if (!Tools::isGoodString($query)) {
            $this->logger->error('Category::search: invalid query');
            return [];
        }
        $this->setGeneratorSearch($query, self::CATEGORY_NAMESPACE);
        return $this->getCategoryinfoResponse();
    }
public function search ( $ query ) { $ this -> logger -> debug ( 'Category:search:' , [ $ query ] ) ; if ( ! Tools :: isGoodString ( $ query ) ) { $ this -> logger -> error ( 'Category::search: invalid query' ) ; return [ ] ; } $ this -> setGeneratorSearch ( $ query , self :: CATEGORY_NAMESPACE ) ; return $ this -> getCategoryinfoResponse ( ) ; }
search for categories

@see https://www.mediawiki.org/wiki/API:Search
@param string $query
@return array
search for categories