File: Proxy.php

package info (click to toggle)
icingaweb2-module-graphite 1.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,000 kB
  • sloc: php: 3,546; javascript: 88; sh: 54; makefile: 15
file content (47 lines) | stat: -rw-r--r-- 974 bytes parent folder | download | duplicates (3)
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;
    }
}