public function format(array $response)
    {
        $car = '<br />';
        $format = '';
        foreach ($response as $page) {
            $format .= '<div class="page"><span class="title">'
            . ApiTools::safeString($page->getTitle()) . '</span>'
            .$car . 'pageid: <span class="pageid">' . $page->getPageid() . '</span>'
            .$car . 'displaytitle: ' . ApiTools::safeString($page->getDisplaytitle())
            .$car . 'page_image_free: ' . $page->getPageImageFree()
            .$car . 'wikibase_item: ' . $page->getWikibaseItem()
            .$car . 'disambiguation: ' . $page->getDisambiguation()
            .$car . 'defaultsort: ' . $page->getDefaultsort()
            .'</div>';
        }
        return $format;
    }
public function format(array $response)
    {
        $car = '<br />';
        $format = '';
        foreach ($response as $page) {
            $format .= '<div class="page"><span class="title">'
            . ApiTools::safeString($page->getTitle()) . '</span>'
            .$car . 'pageid: <span class="pageid">' . $page->getPageid() . '</span>'
            .$car . 'displaytitle: ' . ApiTools::safeString($page->getDisplaytitle())
            .$car . 'page_image_free: ' . $page->getPageImageFree()
            .$car . 'wikibase_item: ' . $page->getWikibaseItem()
            .$car . 'disambiguation: ' . $page->getDisambiguation()
            .$car . 'defaultsort: ' . $page->getDefaultsort()
            .'</div>';
        }
        return $format;
    }
public function format ( array $ response ) { $ car = '<br />' ; $ format = '' ; foreach ( $ response as $ page ) { $ format .= '<div class="page"><span class="title">' . ApiTools :: safeString ( $ page -> getTitle ( ) ) . '</span>' . $ car . 'pageid: <span class="pageid">' . $ page -> getPageid ( ) . '</span>' . $ car . 'displaytitle: ' . ApiTools :: safeString ( $ page -> getDisplaytitle ( ) ) . $ car . 'page_image_free: ' . $ page -> getPageImageFree ( ) . $ car . 'wikibase_item: ' . $ page -> getWikibaseItem ( ) . $ car . 'disambiguation: ' . $ page -> getDisambiguation ( ) . $ car . 'defaultsort: ' . $ page -> getDefaultsort ( ) . '</div>' ; } return $ format ; }
format a page response as an HTML string

@param array $response
@return string
format a page response as an HTML string