Imdb\MdbBase::getPage PHP Method

getPage() protected method

Get a page from IMDb, which will be cached in memory for repeated use
protected getPage ( string $context = null ) : string
$context string Name of the page or some other context to build the URL with to retrieve the page
return string
    protected function getPage($context = null)
    {
        return $this->pages->get($this->buildUrl($context));
    }

Usage Example

Example #1
0
 protected function getPage($page = null)
 {
     if (!empty($this->page[$page])) {
         return $this->page[$page];
     }
     $this->page[$page] = parent::getPage($page);
     return $this->page[$page];
 }