Location: PHPKode > scripts > IMDBPHP > imdbphp2-2.1.8/imdbphp2-2.1.8/test/pilot_person.inc
<?php
 #############################################################################
 # IMDBPHP                              (c) Giorgos Giagas & Itzchak Rehberg #
 # written by Giorgos Giagas                                                 #
 # extended & maintained by Itzchak Rehberg <izzysoft AT qumran DOT org>     #
 # http://www.izzysoft.de/                                                   #
 # ------------------------------------------------------------------------- #
 # Checking class pilot_person                                               #
 # ------------------------------------------------------------------------- #
 # This program is free software; you can redistribute and/or modify it      #
 # under the terms of the GNU General Public License (see doc/LICENSE)       #
 #############################################################################

 /* $Id: pilot_person.inc 477 2011-10-11 15:41:54Z izzy $ */

require_once("pilot_person.class.php");
require_once(dirname(__FILE__)."/helpers.inc");

$imdbp = new pilot_person("0000197"); // Jack Nicholson
headline("Class imdb_person (Version ".$imdbp->version.", Revision ".$imdbp->revision.")","imdb_person");
$imdbp->cachedir = "../cache";
switch ($_REQUEST["cache"]) {
  case "false":
  case "off"  :
  case "0"    : $imdbp->usecache = 0; $imdbp->storecache = 0; 
                comment("Caching turned off.");
                break;
  case "true" :
  case "on"   :
  case 1      : $imdbp->usecache = 1; $imdbp->storecache = 1;
                comment("Caching turned on.");
                break;
}

page("Name");
 setid($imdbp,"0000197");
 method($imdbp,"name");
 method($imdbp,"photo");
// method($imdbp,"movies_all");
// setid($imdbp,"0000402"); // Carrie Fisher
// method($imdbp,"movies_actress");
// setid($imdbp,"0000197");
// method($imdbp,"movies_actor");
// method($imdbp,"movies_director");
// method($imdbp,"movies_producer");
// method($imdbp,"movies_crew");
// method($imdbp,"movies_soundtrack");
// method($imdbp,"movies_thanx");
// method($imdbp,"movies_writer");
// method($imdbp,"movies_self");
// method($imdbp,"movies_archive");
endpage();

page("Bio");
 setid($imdbp,"0000008"); // Marlon Brando
 method($imdbp,"born");
 method($imdbp,"died");
 setid($imdbp,"0000197");
// method($imdbp,"birthname");
// method($imdbp,"nickname");
// method($imdbp,"height");
// method($imdbp,"spouse");
// method($imdbp,"bio");
// method($imdbp,"trivia");
// method($imdbp,"quotes");
// method($imdbp,"trademark");
// method($imdbp,"salary");
endpage();

//page("Publicity");
// method($imdbp,"pubprints");
// method($imdbp,"pubmovies");
// method($imdbp,"pubportraits");
// method($imdbp,"interviews");
// method($imdbp,"articles");
// method($imdbp,"pictorials");
// method($imdbp,"magcovers");
//endpage();
?>
Return current item: IMDBPHP