public function getDecorator($type = 'element')
    {
        $returnValue = null;


		if(array_key_exists($type, $this->decorators)){
			$returnValue  = $this->decorators[$type];
		}


        return $returnValue;
    }
public function getDecorator($type = 'element')
    {
        $returnValue = null;


		if(array_key_exists($type, $this->decorators)){
			$returnValue  = $this->decorators[$type];
		}


        return $returnValue;
    }
public function getDecorator ( $ type = 'element' ) { $ returnValue = null ; if ( array_key_exists ( $ type , $ this -> decorators ) ) { $ returnValue = $ this -> decorators [ $ type ] ; } return $ returnValue ; }
Get the decorator of the type defined in parameter.
The different types are element, error, group.
By default it uses the element decorator.

@access public
@author Cédric Alfonsi, <cedric.alfonsi@tudor.lu>
@param  string $type
@return tao_helpers_form_Decorator
Get the decorator of the type defined in parameter . The different types are element error group . By default it uses the element decorator .