Embera\Providers\Scribd::fakeResponse PHP Метод

fakeResponse() публичный Метод

inline {@inheritdoc}
public fakeResponse ( )
    public function fakeResponse()
    {
        preg_match('~/(doc|document)/([\\d]+)/~i', $this->url, $matches);
        return array('type' => 'rich', 'provider_name' => 'Scribd', 'provider_url' => 'https://www.scribd.com', 'html' => '<iframe class="scribd_iframe_embed" data-aspect-ratio="" frameborder="0" height="{height}" id="' . $matches['1'] . '" scrolling="no" src="https://www.scribd.com/embeds/' . $matches['1'] . '/content" width="100%"></iframe><script type="text/javascript">(function() { var scribd = document.createElement("script"); scribd.type = "text/javascript"; scribd.async = true; scribd.src = "http://www.scribd.com/javascripts/embed_code/inject.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(scribd, s); })();</script>');
    }