Beispiel #1
0
 /** 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]);
 }