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

Class: DpPage

SOURCE LOCATION:  /dpuniverse/std/DpPage.php

Class Overview

A DutchPIPE enabled web page

Creates the following DutchPIPE properties:

  • boolean isPage - Set to TRUE
  • boolean|integer isMovingArea - Set to FALSE, can be type 1 or 2
  • boolean isStandalone - Set to TRUE if this is a "standalone" page

DpProperties
   |
   --DpObject
      |
      --DpPage
LOCATED IN:  /dpuniverse/std/DpPage.php [line 44]
AUTHOR(S):   Lennert Stock <ls@dutchpipe.org>
LINK:  http://dutchpipe.org/manual/package/DutchPIPE
VERSION:  Release: 0.2.1
LICENSE:  DutchPIPE License
COPYRIGHT:  2006, 2007 Lennert Stock
METHODS:

Direct Descendants

Child Class Description
Login The Login/register/Logout page
Index The Home page
Store The Shop's Store
About The About DutchPIPE page
Alley2 A dark alley
Alley In Front Of A House
Bar Dutchy's Bar
Copyright The Legal Notices page
FAQ The FAQ page
Freemovement The Free Movement Demo page
House Inside The House
Shop A Small Shop
Showcases The Showcases page
Square A Village Square

Inherits

Inherited Methods

INHERITED FROM:  DpObject
void   DpObject::addAction()   Adds an action to the object
void   DpObject::addId()   Adds one or more ids for this object
void   DpObject::addItem()   Adds an examinable 'item' to this object
void   DpObject::addMapAreaAction()   Adds an action to a map area so it becomes clickable there
void   DpObject::addValidClientCall()   Makes the given method callable from the DutchPIPE client
void   DpObject::createDpObject()   Sets this object up at the time it is created
void   DpObject::event()   Reports an event
void   DpObject::eventDpObject()   Reports an event
array   DpObject::getActionData()   Gets data of one, multiple or all actions
void   DpObject::getActionsMenu()   Tells the current user the HTML with the action menu for this object
string   DpObject::getAppearance()   Gets the HTML "appearance" of this object
string   DpObject::getAppearanceInventory()   Gets the HTML "appearance" of all objects in this object's inventory
string   DpObject::getAppearanceTitle()   Gets the graphical appearance in HTML for this object
string   DpObject::getBody()   Gets the HTML content of this object
int|float   DpObject::getCredits()   Gets the amount of credits in the inventory of this object
mixed   DpObject::getEnvironment()   Gets the object reference to the environment of this object
int|float   DpObject::getHeapAmount()   Gets the amount of a given heap object
array   DpObject::getIds()   Gets the array of ids for this object, or an empty array for no ids
array   DpObject::getInventory()   Gets an array with object references to all objects in our inventory
array   DpObject::getItem()   Gets an array with data about an item
mixed   DpObject::getItemDescription()   Gets the description of a given item
array   DpObject::getItems()   Gets an array with all item data added to this object
mixed   DpObject::getMapArea()   Gets data of one, multiple or all imagemap areas
array   DpObject::getMapAreaActions()   Gets all map area actions for all areas or for a given area
string   DpObject::getMapAreaHtml()   Gets HTML for all imagemaps or the given imagemap for inclusion in page
string   DpObject::getNavigationTrailHtml()   Gets a HTML navigation trail for this object
array   DpObject::getTargettedActions()   Gets actions which can be performed on this object, for action menu
string   DpObject::getTitle()   Gets the object's title with optional prefixes such as 'a' and 'the'
mixed   DpObject::getTitleImgHeight()   Gets the height in pixels of the title image
mixed   DpObject::getTitleImgWidth()   Gets the width in pixels of the title image
void   DpObject::handleCleanUp()   Called by the universe object, checks if this object can be removed.
boolean   DpObject::isDraggable()   Can we be dragged on the screen by the given user?
boolean   DpObject::isId()   Checks if the given id is a valid id for this object
boolean   DpObject::isPresent()   Checks if an object is present in this object's inventory
boolean   DpObject::isValidClientCall()   May the given method be called in this object from the DutchPIPE client?
void   DpObject::makePresent()   Makes sure an object is present in this object's inventory
int   DpObject::moveDpObject()   Moves this object into the inventory of another object
boolean   DpObject::performActionSubject()   Tries if a user action can be performed on this object
void   DpObject::removeAction()   Removes the given action.
void   DpObject::removeDpObject()   Removes this object from the universe
void   DpObject::removeId()   Removes one or more ids for this object
void   DpObject::removeMapAreaAction()   Removes a map area action
void   DpObject::removeValidClientCall()   Removes the given method from callable methods from the DutchPIPE client
void   DpObject::reportMove()   Reports graphical movement of this object to other objects
void   DpObject::resetDpObject()   Resets this object
void   DpObject::setBody()   Sets the HTML content of this object
boolean   DpObject::setCredits()   Sets the amount of credits in the inventory of this object
boolean   DpObject::setHeapAmount()   Sets a heap object of a given amount in this object
void   DpObject::setIds()   Sets an array of names used to refer to this object
void   DpObject::setMapArea()   Creates a new imagemap area which can be used by actions
void   DpObject::setTimeout()   Calls the given method after the given number of seconds
void   DpObject::setTitle()   Sets the title for this object, "beer", used for object labels, etc.
void   DpObject::tell()   Tells data (message, window, location, ...) to this object
void   DpObject::__destruct()   Called by PHP when this object is destroyed, handles events

INHERITED FROM:  DpProperties
void   DpProperties::coinherit()   "Coinherit" a class located at the given pathname
mixed   DpProperties::getDpProperty()   Directly retrieve the value of an existing DutchPIPE property
boolean   DpProperties::isDpProperty()   Determines if a property is defined in this object
void   DpProperties::removeDpProperties()   Removes properties and coinherits
void   DpProperties::setDpProperty()   Directly set the value of an existing DutchPIPE property
void   DpProperties::__call()   Handles set and get methods for properties using PHP member overloading
mixed   DpProperties::__get()   Gets the value of a DutchPIPE property using PHP member overloading
boolean   DpProperties::__isset()   Determines if a property is defined in this object using PHP member overloading
void   DpProperties::__set()   Sets the value of a DutchPIPE property using PHP member overloading
void   DpProperties::__unset()   Unsets the given DutchPIPE property using PHP member overloading

Methods Summary

void   addExit()   Adds an "exit" out of this page
void   closeInputArea()   Closes the input area, called from client-side JavaScript
void   createDpObject()   Creates this page
void   createDpPage()   Creates this page
void   eventDpObject()   Reports an event
void   eventDpPage()   Reports an event
array   getExitAliases()   Gets all aliases for exits
string   getExitDestination()   Gets URL of "exit" out of this page
string   getExitMapArea()   Gets URL of "exit" out of this page
string   getExitMethod()   Gets URL of "exit" out of this page
array   getExits()   Gets all "exits" out of this page
void   getInputAreaOptions()   Tells the current user the HTML with the input area options menu
array   getNavigationTrail()   Gets data for the navigation trail for this page, if any
string   getNavigationTrailHtml()   Gets HTML with a navigation trail for this page
void   openInputArea()   Enables the input area called from client-side JavaScript
void   removeExit()   Removes the given "exit" from the page
void   resetDpObject()   Resets this page
void   resetDpPage()   Resets this object
void   setExits()   Sets all "exits" out of this page at once
void   setNavigationTrail()   Sets data to later generate a HTML navigation trail for this page
void   tell()   Sends a message to all objects in this page, "makes sound or movement"
boolean   useExit()   Makes the active object exit this page and go to a new URL

Methods

addExit  [line 158]
void addExit( array $direction , string $destination , [ $method = NULL] , [ $mapArea = NULL] , [ $mapAreaActionTitle = NULL]   )

Adds an "exit" out of this page

Exits are links that can be typed on the command line or used by computer controlled character to wander around the site. Adding compass directions like 'nw' will also add the full 'northwest' action, and vice versa, if not defined.


PARAMETERS: array   $direction  Multiple directions, "bar", "north"
string   $destination  URL
   $method 
   $mapArea 
   $mapAreaActionTitle 
SEE:  DpPage::removeExit(), DpPage::setExits()
closeInputArea  [line 607]
void closeInputArea( )

Closes the input area, called from client-side JavaScript
createDpObject  [line 71]
void createDpObject( )

Creates this page

Calls the method 'createDpPage' in this page.


REDEFINITION OF:   DpObject::createDpObject(): Sets this object up at the time it is created
createDpPage  [line 92]
void createDpPage( )

Creates this page

SEE:  DpPage::createDpObject()
REDEFINED AS:   Login::createDpPage(): Sets up the page at object creation time
Index::createDpPage(): Sets up the page at object creation time
Store::createDpPage(): Sets up the page at object creation time
About::createDpPage(): Sets up the page at object creation time
Alley2::createDpPage(): Sets up the page at object creation time
Alley::createDpPage(): Sets up the page at object creation time
Bar::createDpPage(): Sets up the page at object creation time
Copyright::createDpPage(): Sets up the page at object creation time
FAQ::createDpPage(): Sets up the page at object creation time
Freemovement::createDpPage(): Sets up the page at object creation time
House::createDpPage(): Sets up the page at object creation time
Shop::createDpPage(): Sets up the page at object creation time
Showcases::createDpPage(): Sets up the page at object creation time
Square::createDpPage(): Sets up the page at object creation time
eventDpObject  [line 126]
void eventDpObject( object $name , mixed $args   )

Reports an event

Called when certain events occur, given with $name.

Calls the method 'eventDpPage' in this page.


PARAMETERS: object   $name  Name of event
mixed   $args  One or more arguments, depends on event
SINCE:  DutchPIPE 0.2.0
REDEFINITION OF:   DpObject::eventDpObject(): Reports an event
eventDpPage  [line 141]
void eventDpPage( object $name , mixed $args   )

Reports an event

Called when certain events occur, given with $name.


PARAMETERS: object   $name  Name of event
mixed   $args  One or more arguments, depends on event
SINCE:  DutchPIPE 0.2.0
REDEFINED AS:   Shop::eventDpPage()
getExitAliases  [line 339]
array getExitAliases( )

Gets all aliases for exits

RETURNS:  array  Alias/direction pairs
getExitDestination  [line 276]
string getExitDestination( string $direction   )

Gets URL of "exit" out of this page

Exits are links that can be typed on the command line or used by computer controlled character to wander around the site.


PARAMETERS: string   $direction  Command to use link, "home", "bar"
RETURNS:  string  URL
getExitMapArea  [line 312]
string getExitMapArea( string $direction   )

Gets URL of "exit" out of this page

Exits are links that can be typed on the command line or used by computer controlled character to wander around the site.


PARAMETERS: string   $direction  Command to use link, "home", "bar"
RETURNS:  string  URL
getExitMethod  [line 294]
string getExitMethod( string $direction   )

Gets URL of "exit" out of this page

Exits are links that can be typed on the command line or used by computer controlled character to wander around the site.


PARAMETERS: string   $direction  Command to use link, "home", "bar"
RETURNS:  string  URL
getExits  [line 329]
array getExits( )

Gets all "exits" out of this page

Exits are links that can be typed on the command line or used by computer controlled character to wander around the site.


RETURNS:  array  Direction/destination pairs
getInputAreaOptions  [line 530]
void getInputAreaOptions( )

Tells the current user the HTML with the input area options menu
getNavigationTrail  [line 472]
array getNavigationTrail( )

Gets data for the navigation trail for this page, if any

RETURNS:  array  navigation trail elements
getNavigationTrailHtml  [line 482]
string getNavigationTrailHtml( )

Gets HTML with a navigation trail for this page

RETURNS:  string  HTML for navigation trail
REDEFINITION OF:   DpObject::getNavigationTrailHtml(): Gets a HTML navigation trail for this object
openInputArea  [line 589]
void openInputArea( )

Enables the input area called from client-side JavaScript
removeExit  [line 228]
void removeExit( string $direction   )

Removes the given "exit" from the page

PARAMETERS: string   $direction  Command to use link, "home", "bar"
SEE:  DpPage::addExit(), DpPage::setExits()
resetDpObject  [line 101]
void resetDpObject( )

Resets this page

Calls the method 'resetDpPage' in this page.


REDEFINITION OF:   DpObject::resetDpObject(): Resets this object
resetDpPage  [line 111]
void resetDpPage( )

Resets this object

SEE:  DpPage::resetDpObject()
REDEFINED AS:   Index::resetDpPage(): Called at regular intervals
Store::resetDpPage(): Called at regular intervals
About::resetDpPage(): Called at regular intervals
Alley2::resetDpPage(): Called at regular intervals
Alley::resetDpPage(): Called at regular intervals
Bar::resetDpPage(): Called at regular intervals
Freemovement::resetDpPage(): Called at regular intervals
House::resetDpPage(): Called at regular intervals
Shop::resetDpPage(): Called at regular intervals
Square::resetDpPage(): Called at regular intervals
setExits  [line 254]
void setExits( array $exits   )

Sets all "exits" out of this page at once

Exits are links that can be typed on the command line or used by computer controlled character to wander around the site.


PARAMETERS: array   $exits  Direction/destination pairs
SEE:  DpPage::addExit(), DpPage::removeExit()
setNavigationTrail  [line 448]
void setNavigationTrail( mixed $navitem   )

Sets data to later generate a HTML navigation trail for this page

Each item is either a string with the element's title for the last tiem in the navigation trail, or an array with each key such a title, and each value the destination path within dpuniverse.


PARAMETERS: mixed   $navitem  string or string/destination pairs
tell  [line 377]
void tell( string $data , [object &$from = NULL] , object &$from2   )

Sends a message to all objects in this page, "makes sound or movement"

Calls the tell method in all objects in this page with the message. One or more extra arguments can be given to specify objects which should be skipped. For example:

$user->tell('You smile happily.
'); $user->getEnvironment()->tell(ucfirst( $user->getTitle(DPUNIVERSE_TITLE_TYPE_DEFINITE)) . ' smiles happily.
', $user);


PARAMETERS: string   $data  message string
object   &$from  First object to skip
object   &$from2  Second object to skip, etc.
REDEFINITION OF:   DpObject::tell(): Tells data (message, window, location, ...) to this object
useExit  [line 351]
boolean useExit( string $verb , [string $noun = '']   )

Makes the active object exit this page and go to a new URL

PARAMETERS: string   $verb  The name or verb part of the action, "home"
string   $noun  The given id, noun or remainder, usually empty
RETURNS:  boolean  FALSE in case of failure, TRUE for success

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

Click me!
Guest#9263
 
 
 
  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.