CommunityID/libs/Monkeys/Form/Element/Textarea.php

24 lines
572 B
PHP
Raw Normal View History

2019-07-17 20:08:50 +00:00
<?php
class Monkeys_Form_Element_Textarea extends Zend_Form_Element_Textarea
{
private $_decorator;
public function __construct($spec, $options = array())
{
$options = array_merge($options, array('disableLoadDefaultDecorators' =>true));
parent::__construct($spec, $options);
$this->_decorator = new Monkeys_Form_Decorator_Composite();
$this->addDecorator($this->_decorator);
}
public function setDecoratorOptions(array $options)
{
$this->_decorator->setOptions($options);
return $this;
}
}