public function addDecorator($decorator)
    {
        if (is_string($decorator)) {
            $class = "HTMLPurifier_DefinitionCache_Decorator_$decorator";
            $decorator = new $class;
        }
        $this->decorators[$decorator->name] = $decorator;
    }
public function addDecorator($decorator)
    {
        if (is_string($decorator)) {
            $class = "HTMLPurifier_DefinitionCache_Decorator_$decorator";
            $decorator = new $class;
        }
        $this->decorators[$decorator->name] = $decorator;
    }
public function addDecorator ( $ decorator ) { if ( is_string ( $ decorator ) ) { $ class = "HTMLPurifier_DefinitionCache_Decorator_$decorator" ; $ decorator = new $ class ; } $ this -> decorators [ $ decorator -> name ] = $ decorator ; }
Registers a decorator to add to all new cache objects
@param HTMLPurifier_DefinitionCache_Decorator|string $decorator An instance or the name of a decorator
Registers a decorator to add to all new cache objects