BRICKOO::AddDecorator  (since version 2.0)
Syntax
boolean AddDecorator (  object $parentObject , string $decoratorName [, array $arguments = null [, string $decoratorType = " DECORATOR_EXTENDED " ]] )
Parameters
parentObject
The object to bind the decorator to.
decoratorName
The decorator (object) name to retrieve an reference and bind to the object.
arguments
The arguments to pass to the decorator constructor method.
decoratorType
The decorator type to use for binding.
Description
Adds an decorator to the given object.
For the decorator type you should take a look into BRICKOO
Return
boolean Returns true on success, false on fail.
Examples
<?php

   BRICKOO
::AddDecorator($object'myDecorator', array('name'30),  BRICKOO::DECORATOR_SINGLE);

?>

Last change 10/12/2009




Administration