/** Load an Pilot page into the corresponding property (variable)
  * @method private openpage
  * @param string wt internal name of the page
  * @param optional string type whether its a "movie" (default) or a "person"
  */
 function openpage($wt, $type = "pilot")
 {
     parent::openpage($wt, $type);
     if ($this->page[$wt] == "cannot open page") {
         return;
     }
     if ($this->page[$wt] == '{"error":"please provide a valid api key or contact api@moviepilot.de"}') {
         $this->debug_scalar('ERROR: invalid API key');
         trigger_error('Please provide a valid api key or contact api@moviepilot.de.', E_USER_WARNING);
         return;
     }
     $this->page[$wt] = json_decode($this->page[$wt]);
 }
Example #2
0
 /** Initialize class
  * @constructor imdb_person
  * @param string id IMDBID to use for data retrieval
  */
 function __construct($id)
 {
     parent::__construct($id);
     $this->revision = preg_replace('|^.*?(\\d+).*$|', '$1', '$Revision: 484 $');
     $this->setid($id);
 }
Example #3
0
 /** Initialize class
  * @param string id IMDBID to use for data retrieval
  * @param mdb_config $config OPTIONAL override default config
  */
 function __construct($id, mdb_config $config = null)
 {
     parent::__construct($config);
     $this->revision = preg_replace('|^.*?(\\d+).*$|', '$1', '$Revision$');
     $this->setid($id);
 }