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 bar.php

Documentation is available at bar.php

  1. <?php
  2. /**
  3.  * Dutchy's Bar
  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: bar.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.  * Dutchy's Bar
  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 Bar extends DpPage
  40. {
  41.     /**
  42.      * Sets up the page at object creation time
  43.      */
  44.     public function createDpPage()
  45.     {
  46.         // Standard setup calls:
  47.         $this->title dp_text("Dutchy's Bar");
  48.         $this->body '<b>' dp_text("Dutchy's Bar"'</b><br />'
  49.             . sprintf(dp_text('<p align="justify">This is Dutchy\'s Bar where
  50. they serve cold beer. Today all beer is free, so be sure and grab your beer
  51. before it\'s gone!</p><p align="justify">The exit to the <a href="%s">south</a>
  52. leads back to the village square.</p>'),
  53.             DPSERVER_CLIENT_URL '?location=/page/square.php');
  54.         $this->setNavigationTrail(
  55.             array(DPUNIVERSE_NAVLOGO''),
  56.             array(dp_text('Showcases')DPUNIVERSE_PAGE_PATH
  57.             . 'showcases.php'));
  58.         $this->addExit(explode('#',
  59.             dp_text('s#square#out#exit#leave#leave bar')),
  60.             DPUNIVERSE_PAGE_PATH 'square.php'NULLarray('bar_map',
  61.             'square_area''rect''100,270,300,300'dp_text('leave bar')),
  62.             dp_text('leave bar'));
  63.     }
  64.  
  65.     /**
  66.      * Called at regular intervals
  67.      */
  68.     public function resetDpPage()
  69.     {
  70.         $this->makePresent(DPUNIVERSE_NPC_PATH 'barkeeper.php');
  71.     }
  72. }
  73. ?>

Documentation generated on Mon, 03 Sep 2007 22:18:30 +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.