1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
<?php
namespace Icinga\Module\Graphite\Web\Form\Decorator;
use Zend_Form_Decorator_Abstract;
use Zend_Form_Decorator_Interface;
/**
* Wrap a decorator and use it only for rendering
*/
class Proxy extends Zend_Form_Decorator_Abstract
{
/**
* The actual decorator being proxied
*
* @var Zend_Form_Decorator_Interface
*/
protected $actualDecorator;
public function render($content)
{
return $this->actualDecorator->render($content);
}
/**
* Get {@link actualDecorator}
*
* @return Zend_Form_Decorator_Interface
*/
public function getActualDecorator()
{
return $this->actualDecorator;
}
/**
* Set {@link actualDecorator}
*
* @param Zend_Form_Decorator_Interface $actualDecorator
*
* @return $this
*/
public function setActualDecorator($actualDecorator)
{
$this->actualDecorator = $actualDecorator;
return $this;
}
}
|