Imdb\Title::quotes PHP Метод

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

Get the quotes for a given movie
См. также: IMDB page /quotes
public quotes ( ) : array
Результат array quotes (array[0..n] of string)
    public function quotes()
    {
        if (empty($this->moviequotes)) {
            $page = $this->getPage("Quotes");
            if (empty($page)) {
                return array();
            }
            if (preg_match_all('!<div class="sodatext">\\s*(.*?)\\s*</div>!ims', str_replace("\n", " ", $page), $matches)) {
                foreach ($matches[1] as $match) {
                    $this->moviequotes[] = str_replace('href="/name/', 'href="http://' . $this->imdbsite . '/name/', preg_replace('!<span class="linksoda".+?</span>!ims', '', $match));
                }
            }
        }
        return $this->moviequotes;
    }