public function search($query)
    {
        $this->logger->debug('Page:search');
        if (!Tools::isGoodString($query)) {
            $this->logger->error('Page::search: invalid query');
            return [];
        }
        $this->setGeneratorSearch($query, self::PAGE_NAMESPACE);
        $this->setParam('prop', 'pageprops');
        $this->send();
        return Tools::flatten($this->getResponse(['query', 'pages']));
    }
public function search($query)
    {
        $this->logger->debug('Page:search');
        if (!Tools::isGoodString($query)) {
            $this->logger->error('Page::search: invalid query');
            return [];
        }
        $this->setGeneratorSearch($query, self::PAGE_NAMESPACE);
        $this->setParam('prop', 'pageprops');
        $this->send();
        return Tools::flatten($this->getResponse(['query', 'pages']));
    }
public function search ( $ query ) { $ this -> logger -> debug ( 'Page:search' ) ; if ( ! Tools :: isGoodString ( $ query ) ) { $ this -> logger -> error ( 'Page::search: invalid query' ) ; return [ ] ; } $ this -> setGeneratorSearch ( $ query , self :: PAGE_NAMESPACE ) ; $ this -> setParam ( 'prop' , 'pageprops' ) ; $ this -> send ( ) ; return Tools :: flatten ( $ this -> getResponse ( [ 'query' , 'pages' ] ) ) ; }
search for Pages

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