BRICKOO::HasDecorator (since version 2.0)
Syntax
boolean HasDecorator ( object $object , string $decoratorName [, string $decoratorType = null ] )
Parameters
object
The object to check if it has the decorator.
decoratorName
The decorator name to check if is available.
decoratorType
The decorator object type that the decorator has to have.
If not given, BRICKOO::TYPE_OBJECT is used.
If not given, BRICKOO::TYPE_OBJECT is used.
Description
Checks if the object has an decorator of the given type.
Return
boolean Returns true if is available, false on unavailable.
See also
Last change 10/13/2009