PhpMyObject
[ class tree: PhpMyObject ] [ index: PhpMyObject ] [ all elements ]

Source for file class_film_actor.php

Documentation is available at class_film_actor.php

  1. <?php
  2. /**
  3.  * An exemple of extending a PMO_Object class
  4.  *
  5.  * This file is part of the PhpMyObject project.
  6.  * 
  7.  * For questions, help, comments, discussion, etc., please join our
  8.  * forum at {@link http://www.developpez.net/forums/forumdisplay.php?f=770}
  9.  * or our mailing list at {@link http://groups.google.com/group/pmo-dev}.
  10.  *
  11.  * PhpMyProject is free software: you can redistribute it and/or modify
  12.  * it under the terms of the GNU General Public License as published by
  13.  * the Free Software Foundation, either version 3 of the License, or
  14.  * (at your option) any later version.
  15.  *
  16.  * This program is distributed in the hope that it will be useful,
  17.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19.  * GNU General Public License for more details.
  20.  *
  21.  * You should have received a copy of the GNU General Public License
  22.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  23.  *
  24.  * @package    PhpMyObject
  25.  * @author     Nicolas Boiteux <nicolas_boiteux@yahoo.fr>
  26.  * @link       http://pmo.developpez.com/
  27.  * @since      PhoMyObject v0.14
  28.  * @version    $Revision: $
  29.  * @copyright  Copyright (C) 2007-2008 Nicolas Boiteux
  30.  * @license    GPLv3 {@link http://www.gnu.org/licenses/gpl}
  31.  * @filesource
  32.  */
  33.  
  34. /**
  35.  * provides the much needed helloworld() method to those film_actor people
  36.  * who need so much publicity
  37.  *
  38.  * The name of the class is identical to the database table name
  39.  *
  40.  * This example implements a hellworld() method for a PMO_Object based on
  41.  * the film_actor database table. This class will be intanciated instead
  42.  * of the generic one.
  43.  *
  44.  * For this to work, you must provide its name to the table_classname
  45.  * property of the PMO_MyTable/PMO_MyTable_film_actor.php file that will
  46.  * get generated by PMO on first instanciation of a PMO_Object for the
  47.  * table film_actor.
  48.  *
  49.  * @package PhpMyObject
  50.  */
  51. class film_actor extends PMO_MyObject{
  52.  
  53.    /**
  54.     * emits a huge "Hello World !" to all the World Wide Web media
  55.     */
  56.     public function helloworld(){
  57.         echo('<h1>hello world !</h1>');
  58.     }
  59.     
  60. }
  61.  
  62. ?>

Documentation generated on Wed, 15 Oct 2008 09:15:26 -0400 by phpDocumentor 1.4.1