import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
@ -30,7 +30,7 @@ require_once 'Zend/Form/Element/Xhtml.php';
|
||||
* @subpackage Element
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Image.php 8680 2008-03-07 22:25:35Z matthew $
|
||||
* @version $Id: Image.php 14637 2009-04-04 13:53:25Z mcleod@spaceweb.nl $
|
||||
*/
|
||||
class Zend_Form_Element_Image extends Zend_Form_Element_Xhtml
|
||||
{
|
||||
@ -65,7 +65,8 @@ class Zend_Form_Element_Image extends Zend_Form_Element_Xhtml
|
||||
|
||||
$decorators = $this->getDecorators();
|
||||
if (empty($decorators)) {
|
||||
$this->addDecorator('Image')
|
||||
$this->addDecorator('Tooltip')
|
||||
->addDecorator('Image')
|
||||
->addDecorator('Errors')
|
||||
->addDecorator('HtmlTag', array('tag' => 'dd'))
|
||||
->addDecorator('Label', array('tag' => 'dt'));
|
||||
@ -126,4 +127,5 @@ class Zend_Form_Element_Image extends Zend_Form_Element_Xhtml
|
||||
$imageValue = $this->getImageValue();
|
||||
return ((null !== $imageValue) && ($this->getValue() == $imageValue));
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user