/** * Constructor method. * * @param string $url A IMDb URL (e.g. www.imdb.com/name/nm0000116/, nm0000116) * @return Imdbphp_Person */ public function __construct($url) { if (!$url) { throw new Exception(__METHOD__ . ': A IMDb URL is required.'); } else { $personId = $this->getPersonIdFromUrl($url); $this->_personId = $personId; // call the parent constructor parent::__construct(); } }
/** * Constructor method. * * @return Imdbphp_Features */ public function __construct() { // call the parent constructor parent::__construct(); }