public function format(array $response)
    {
        $this->logger->debug('Meda:format');
        $car = '<br />';
        $format = '';
        foreach ($response as $media) {
            $format .= '<div class="media">'
            . '<img'
            . ' src="' . Tools::getFromArray($media, 'thumburl') . '"'
            . ' width="' . Tools::getFromArray($media, 'thumbwidth') . '"'
            . ' height="' . Tools::getFromArray($media, 'thumbheight') . '"'
            . ' title="'.Tools::safeString(print_r($media, true)).'">'
            . $car . '<span class="pageid">' . Tools::getFromArray($media, 'pageid') . '</span>'
            . $car . '<span class="title">'
            . Tools::safeString(Tools::getFromArray($media, 'title'))
            . '</span>'
            . '</div>';
        }
        return $format;
    }
public function format(array $response)
    {
        $this->logger->debug('Meda:format');
        $car = '<br />';
        $format = '';
        foreach ($response as $media) {
            $format .= '<div class="media">'
            . '<img'
            . ' src="' . Tools::getFromArray($media, 'thumburl') . '"'
            . ' width="' . Tools::getFromArray($media, 'thumbwidth') . '"'
            . ' height="' . Tools::getFromArray($media, 'thumbheight') . '"'
            . ' title="'.Tools::safeString(print_r($media, true)).'">'
            . $car . '<span class="pageid">' . Tools::getFromArray($media, 'pageid') . '</span>'
            . $car . '<span class="title">'
            . Tools::safeString(Tools::getFromArray($media, 'title'))
            . '</span>'
            . '</div>';
        }
        return $format;
    }
public function format ( array $ response ) { $ this -> logger -> debug ( 'Meda:format' ) ; $ car = '<br />' ; $ format = '' ; foreach ( $ response as $ media ) { $ format .= '<div class="media">' . '<img' . ' src="' . Tools :: getFromArray ( $ media , 'thumburl' ) . '"' . ' width="' . Tools :: getFromArray ( $ media , 'thumbwidth' ) . '"' . ' height="' . Tools :: getFromArray ( $ media , 'thumbheight' ) . '"' . ' title="' . Tools :: safeString ( print_r ( $ media , true ) ) . '">' . $ car . '<span class="pageid">' . Tools :: getFromArray ( $ media , 'pageid' ) . '</span>' . $ car . '<span class="title">' . Tools :: safeString ( Tools :: getFromArray ( $ media , 'title' ) ) . '</span>' . '</div>' ; } return $ format ; }
format a media file response as a simple string

@param array $response
@return string
format a media file response as a simple string