File indexing completed on 2024-12-22 05:36:42

0001 <?php
0002 /**
0003  * Zend Framework
0004  *
0005  * LICENSE
0006  *
0007  * This source file is subject to the new BSD license that is bundled
0008  * with this package in the file LICENSE.txt.
0009  * It is also available through the world-wide-web at this URL:
0010  * http://framework.zend.com/license/new-bsd
0011  * If you did not receive a copy of the license and are unable to
0012  * obtain it through the world-wide-web, please send an email
0013  * to license@zend.com so we can send you a copy immediately.
0014  *
0015  * @category   Zend
0016  * @package    Zend_Form
0017  * @subpackage Element
0018  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0019  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0020  */
0021 
0022 /** Zend_Form_Element_Xhtml */
0023 // require_once 'Zend/Form/Element/Xhtml.php';
0024 
0025 /**
0026  * Element to show an HTML note
0027  *
0028  * @category   Zend
0029  * @package    Zend_Form
0030  * @subpackage Element
0031  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0032  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0033  * @version    $Id$
0034  */
0035 class Zend_Form_Element_Note extends Zend_Form_Element_Xhtml
0036 {
0037     /**
0038      * Default form view helper to use for rendering
0039      *
0040      * @var string
0041      */
0042     public $helper = 'formNote';
0043     
0044     /**
0045      * Ignore flag (used when retrieving values at form level)
0046      *
0047      * @var bool
0048      */
0049     protected $_ignore = true;
0050     
0051     /**
0052      * Validate element value (pseudo)
0053      *
0054      * There is no need to reset the value
0055      *
0056      * @param  mixed $value Is always ignored
0057      * @param  mixed $context Is always ignored
0058      * @return boolean Returns always TRUE
0059      */
0060     public function isValid($value, $context = null)
0061     {
0062         return true;
0063     }
0064 }