Warning, file /webapps/ocs-webserver/library/Zend/View/Helper/FormNote.php was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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_View
0017  * @subpackage Helper
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  * @version    $Id$
0021  */
0022 
0023 
0024 /**
0025  * Abstract class for extension
0026  */
0027 // require_once 'Zend/View/Helper/FormElement.php';
0028 
0029 
0030 /**
0031  * Helper to show an HTML note
0032  *
0033  * @category   Zend
0034  * @package    Zend_View
0035  * @subpackage Helper
0036  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0037  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0038  */
0039 class Zend_View_Helper_FormNote extends Zend_View_Helper_FormElement
0040 {
0041     /**
0042     * Helper to show a "note" based on a hidden value.
0043      *
0044      * @access public
0045      *
0046      * @param string|array $name If a string, the element name.  If an
0047      * array, all other parameters are ignored, and the array elements
0048      * are extracted in place of added parameters.
0049      *
0050      * @param array $value The note to display.  HTML is *not* escaped; the
0051      * note is displayed as-is.
0052      *
0053      * @return string The element XHTML.
0054      */
0055     public function formNote($name, $value = null)
0056     {
0057         $info = $this->_getInfo($name, $value);
0058         extract($info); // name, value, attribs, options, listsep, disable
0059         return $value;
0060     }
0061 }