import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
23
libs/Monkeys/Form/Element/Select.php
Normal file
23
libs/Monkeys/Form/Element/Select.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class Monkeys_Form_Element_Select extends Zend_Form_Element_Select
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user