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
public function createDpPage()
{
$this->setTitle('Home');
<removed>
/* Creates a note, moves it here: */
. 'note.php');
$note->moveDpObject($this);
<removed>
}