Imdb\Title::plotoutline PHP Method

plotoutline() public method

Get the main Plot outline for the movie
See also: IMDB page / (TitlePage)
public plotoutline ( boolean $fallback = FALSE ) : string
$fallback boolean Fallback to storyline if we could not catch plotoutline
return string plotoutline
    public function plotoutline($fallback = FALSE)
    {
        if ($this->main_plotoutline == "") {
            $page = $this->getPage("Title");
            if (preg_match('!itemprop="description">\\s*(.*?)\\s*</div>!ims', $page, $match)) {
                $this->main_plotoutline = trim($match[1]);
            } elseif ($fallback) {
                $this->main_plotoutline = $this->storyline();
            }
        }
        $this->main_plotoutline = preg_replace('!\\s*<a href="/title/tt\\d{7}/(plotsummary|synopsis)[^>]*>See full (summary|synopsis).*$!i', '', $this->main_plotoutline);
        $this->main_plotoutline = preg_replace('#<a href="[^"]+"\\s+>Add a Plot</a>&nbsp;&raquo;#', '', $this->main_plotoutline);
        return $this->main_plotoutline;
    }