BRICKOO  (since version 2.0)
Type Service
Constants
integer DEBUG_DETAILS = 2
This debug level shows an detailed report of an error or exception.
integer DEBUG_LOG = 0
This debug level is used to do not show any output if an error occrus or an exception is thrown.
integer DEBUG_SIMPLE = 1
This debug level is used to output an simple message of an error or exception if one occurs.
string DECORATOR_EXTENDED = " DECORATOR_EXTENDED "
This is an decorator type for creating decorators which passes the reference of the object as first argument to the decorator.
string DECORATOR_SINGLE = " DECORATOR_SINGLE "
This is an decorator type for creating decorators which do not pass the object reference as first argument.
Show all constants (8)
Description
The BRICKOO class offerts methods for acquiring objects and singletons with the ability to be decorated.
BRICKOO has methods to add, remove or retrieve decorators from or to an object or singleton at any time.

BRICKOO binds automaticly the Autoloader, Error- and ExceptionHandler to the system on Begin.

You can also assign callbacks that have to be executed on End.
Examples
Example of acquiring an object

<?php
   $myObject 
BRICKOO::GetObject('myObject');
?>

Example of acquiring an singleton

<?php
   $myObject 
BRICKOO::GetSingleton('myObject');
?>

Last change 10/16/2009




Administration