web/lib/Zend/Form/Element/Button.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_Form
    16  * @package    Zend_Form
    17  * @subpackage Element
    17  * @subpackage Element
    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  */
    20  */
    21 
    21 
    22 /** Zend_Form_Element_Submit */
    22 /** Zend_Form_Element_Submit */
    23 require_once 'Zend/Form/Element/Submit.php';
    23 require_once 'Zend/Form/Element/Submit.php';
    26  * Button form element
    26  * Button form element
    27  *
    27  *
    28  * @category   Zend
    28  * @category   Zend
    29  * @package    Zend_Form
    29  * @package    Zend_Form
    30  * @subpackage Element
    30  * @subpackage Element
    31  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    31  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    32  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    32  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    33  * @version    $Id: Button.php 20096 2010-01-06 02:05:09Z bkarwin $
    33  * @version    $Id: Button.php 25189 2013-01-08 08:32:43Z frosch $
    34  */
    34  */
    35 class Zend_Form_Element_Button extends Zend_Form_Element_Submit
    35 class Zend_Form_Element_Button extends Zend_Form_Element_Submit
    36 {
    36 {
    37     /**
    37     /**
    38      * Use formButton view helper by default
    38      * Use formButton view helper by default
    39      * @var string
    39      * @var string
    40      */
    40      */
    41     public $helper = 'formButton';
    41     public $helper = 'formButton';
       
    42 
       
    43     /**
       
    44      * Validate element value (pseudo)
       
    45      *
       
    46      * There is no need to reset the value
       
    47      *
       
    48      * @param  mixed $value Is always ignored
       
    49      * @param  mixed $context Is always ignored
       
    50      * @return boolean Returns always TRUE
       
    51      */
       
    52     public function isValid($value, $context = null)
       
    53     {
       
    54         return true;
       
    55     }
    42 }
    56 }