Your browser must have JavaScript enabled in order to view this page.
 >  >
 
Welcome Guest#214 Login/register    Go to Bottom
Go to Top

Source for file index.php

Documentation is available at index.php

  1. <?php
  2. /**
  3.  * The Home page
  4.  *
  5.  * DutchPIPE version 0.4; PHP version 5
  6.  *
  7.  * LICENSE: This source file is subject to version 1.0 of the DutchPIPE license.
  8.  * If you did not receive a copy of the DutchPIPE license, you can obtain one at
  9.  * http://dutchpipe.org/license/1_0.txt or by sending a note to
  10.  * license@dutchpipe.org, in which case you will be mailed a copy immediately.
  11.  *
  12.  * @package    DutchPIPE
  13.  * @subpackage dpuniverse_page
  14.  * @author     Lennert Stock <ls@dutchpipe.org>
  15.  * @copyright  2006, 2007 Lennert Stock
  16.  * @license    http://dutchpipe.org/license/1_0.txt  DutchPIPE License
  17.  * @version    Subversion: $Id: index.php 278 2007-08-19 22:52:25Z ls $
  18.  * @link       http://dutchpipe.org/manual/package/DutchPIPE
  19.  * @see        DpPage
  20.  */
  21.  
  22. /**
  23.  * Builts upon the standard DpPage class
  24.  */
  25. inherit(DPUNIVERSE_STD_PATH 'DpPage.php');
  26.  
  27. /**
  28.  * The Home page
  29.  *
  30.  * @package    DutchPIPE
  31.  * @subpackage dpuniverse_page
  32.  * @author     Lennert Stock <ls@dutchpipe.org>
  33.  * @copyright  2006, 2007 Lennert Stock
  34.  * @license    http://dutchpipe.org/license/1_0.txt  DutchPIPE License
  35.  * @version    Release: 0.2.1
  36.  * @link       http://dutchpipe.org/manual/package/DutchPIPE
  37.  * @see        DpPage
  38.  */
  39. final class Index extends DpPage
  40. {
  41.     /**
  42.      * Sets up the page at object creation time
  43.      */
  44.     public function createDpPage()
  45.     {
  46.         $this->title dp_text('Home');
  47.         $this->setBody(dp_text(DPUNIVERSE_PAGE_PATH 'index.html')'file');
  48.  
  49.         // Alternative verbs to go to another page, also used by wandering NPCs:
  50.         $this->addExit(dp_text('about')DPUNIVERSE_PAGE_PATH 'about.php');
  51.         $this->addExit(dp_text('showcases')DPUNIVERSE_PAGE_PATH 'showcases.php');
  52.         $this->addExit(dp_text('faq')DPUNIVERSE_PAGE_PATH 'faq.php');
  53.         $this->addExit(dp_text('copyright')DPUNIVERSE_PAGE_PATH 'copyright.php');
  54.     }
  55.  
  56.     /**
  57.      * Called at regular intervals
  58.      */
  59.     public function resetDpPage()
  60.     {
  61.         // Creates a note, moves it here:
  62.         $this->makePresent(DPUNIVERSE_OBJ_PATH 'note.php');
  63.  
  64.         // Creates mobile NPC, moves it here:
  65.         $this->makePresent(DPUNIVERSE_NPC_PATH 'mobile.php'1FALSE);
  66.     }
  67. }
  68. ?>

Documentation generated on Mon, 03 Sep 2007 22:21:51 +0200 by phpDocumentor 1.3.0RC6

Click me!
Guest#214
 
 
 
  Go to Top
 
 
Input Field OptionsClose Input Field Go to Top
 
Legal Notices | Copyright © 2006, 2007 Lennert Stock. All rights reserved. Last update: Mon Sep 03 2007, 21:50 CET.