web/lib/Zend/View/Helper/FormErrors.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_View
    16  * @package    Zend_View
    17  * @subpackage Helper
    17  * @subpackage Helper
    18  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    20  * @version    $Id: FormErrors.php 20096 2010-01-06 02:05:09Z bkarwin $
    20  * @version    $Id: FormErrors.php 25207 2013-01-10 11:36:54Z frosch $
    21  */
    21  */
    22 
    22 
    23 /**
    23 /**
    24  * Abstract class for extension
    24  * Abstract class for extension
    25  */
    25  */
    30  * Helper to render errors for a form element
    30  * Helper to render errors for a form element
    31  *
    31  *
    32  * @category   Zend
    32  * @category   Zend
    33  * @package    Zend_View
    33  * @package    Zend_View
    34  * @subpackage Helper
    34  * @subpackage Helper
    35  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    35  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    36  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    36  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    37  */
    37  */
    38 class Zend_View_Helper_FormErrors extends Zend_View_Helper_FormElement
    38 class Zend_View_Helper_FormErrors extends Zend_View_Helper_FormElement
    39 {
    39 {
    40     /**
    40     /**
    65             unset($options['escape']);
    65             unset($options['escape']);
    66         }
    66         }
    67 
    67 
    68         if (empty($options['class'])) {
    68         if (empty($options['class'])) {
    69             $options['class'] = 'errors';
    69             $options['class'] = 'errors';
       
    70         }
       
    71 
       
    72         if (isset($options['elementStart'])) {
       
    73             $this->setElementStart($options['elementStart']);
       
    74         }
       
    75         if (isset($options['elementEnd'])) {
       
    76             $this->setElementEnd($options['elementEnd']);
       
    77         }
       
    78         if (isset($options['elementSeparator'])) {
       
    79             $this->setElementSeparator($options['elementSeparator']);
    70         }
    80         }
    71 
    81 
    72         $start = $this->getElementStart();
    82         $start = $this->getElementStart();
    73         if (strstr($start, '%s')) {
    83         if (strstr($start, '%s')) {
    74             $attribs = $this->_htmlAttribs($options);
    84             $attribs = $this->_htmlAttribs($options);