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

DpUniverse

USING THE DUTCHPIPE UNIVERSE OBJECT

 > Introduction
 > Methods
 > Reference to the universe object

Introduction

The universe object, constructed from the DpUniverse class in lib/dpuniverse.php, is the most important object in the system. It keeps track of all objects and simulates core concepts such as objects being able to contain other objects, timeouts, and so on.

Methods

There are a number of important methods you can call in the universe object.

See the DpUniverse class source reference page.

Reference to the universe object

You can obtain a reference to the universe object with:

get_current_dpuniverse()

For example:

dpuniverse/page/index.php

  1. public function createDpPage()
  2. {
  3.     $this->setTitle('Home');
  4.     <removed>
  5.  
  6.     /* Creates a note, moves it here: */
  7.     $note get_current_dpuniverse()->newDpObject(DPUNIVERSE_OBJ_PATH
  8.         . 'note.php');
  9.     $note->moveDpObject($this);
  10.  
  11.     <removed>
  12. }

 > DpPage   DpObject >

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

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