Source for file static.php
Documentation is available at static.php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2003 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/2_02.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Adam Daniel <adaniel1@eesus.jnj.com> |
// | Bertrand Mansion <bmansion@mamasam.com> |
// +----------------------------------------------------------------------+
// $Id: static.php,v 1.6 2003/06/16 13:06:26 avb Exp $
require_once("HTML/QuickForm/element.php");
* HTML class for static data
* @author Wojciech Gdela <eltehaem@poczta.onet.pl>
* @param string $elementLabel (optional)Label
* @param string $text (optional)Display text
$this->_persistantFreeze = false;
* @param string $name Element name
$this->updateAttributes (array ('name'=> $name));
* Returns the element name
return $this->getAttribute ('name');
* Sets the text (uses the standard setValue call to emulate a form element.
* Returns the static text element in HTML
return $this->_getTabs () . $this->_text;
* Returns the value of field without HTML tags
} //end func getFrozenHtml
// {{{ onQuickFormEvent()
* Called by HTML_QuickForm whenever form event is made on this element
* @param string $event Name of event
* @param mixed $arg event arguments
* @param object $caller calling object
// do NOT use submitted values for static elements
$value = $this->_findValue ($caller->_constantValues );
$value = $this->_findValue ($caller->_defaultValues );
parent ::onQuickFormEvent ($event, $arg, $caller);
} // end func onQuickFormEvent
* We override this here because we don't want any values from static elements
} //end class HTML_QuickForm_static
Documentation generated on Mon, 11 Mar 2019 14:16:37 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|