some more explanation

This commit is contained in:
Christian Weiske 2010-05-06 20:39:46 +02:00
parent f310b12374
commit ec49e80dea

View File

@ -3,7 +3,7 @@ require_once 'HTML/QuickForm2/Element/InputText.php';
/** /**
* Text input element with pre-set text that vanishes when * Text input element with pre-set text that vanishes when
* the user focuses it. * the user focuses it. Setting a special class is also supported.
* *
* Example: * Example:
* before: * before:
@ -14,7 +14,11 @@ require_once 'HTML/QuickForm2/Element/InputText.php';
* Name: [John Doe ] * Name: [John Doe ]
* E-Mail: [| ] * E-Mail: [| ]
* *
* @author Christian Weiske <cweiske@php.net> * @category HTML
* @package HTML_QuickForm2
* @author Christian Weiske <cweiske@php.net>
* @license http://opensource.org/licenses/bsd-license.php New BSD License
* @link http://pear.php.net/package/HTML_QuickForm2
*/ */
class SemanticScuttle_QuickForm2_Element_BackgroundText class SemanticScuttle_QuickForm2_Element_BackgroundText
extends HTML_QuickForm2_Element_InputText extends HTML_QuickForm2_Element_InputText
@ -142,15 +146,15 @@ class SemanticScuttle_QuickForm2_Element_BackgroundText
/** /**
* Renders the element using the given renderer. * Renders the element using the given renderer.
* Automatically sets the background CSS class if the value * Automatically sets the background CSS class if the value
* is the background text. * is the background text.
* *
* @param HTML_QuickForm2_Renderer Renderer instance * @param HTML_QuickForm2_Renderer $renderer Renderer instance
* *
* @return HTML_QuickForm2_Renderer * @return HTML_QuickForm2_Renderer
*/ */
public function render(HTML_QuickForm2_Renderer $renderer) public function render(HTML_QuickForm2_Renderer $renderer)
{ {
$this->btUpdateAttributes(); $this->btUpdateAttributes();