HTML_QuickForm2
[ class tree: HTML_QuickForm2 ] [ index: HTML_QuickForm2 ] [ all elements ]

Class: HTML_QuickForm2_Element_Input

Source Location: /HTML_QuickForm2-0.1.0/QuickForm2/Element/Input.php

Class Overview

HTML_Common2
   |
   --HTML_QuickForm2_Node
      |
      --HTML_QuickForm2_Element
         |
         --HTML_QuickForm2_Element_Input

Base class for <input> elements


Author(s):

Version:

  • Release: 0.1.0

Variables

Methods


Child classes:

HTML_QuickForm2_Element_InputHidden
Class for <input type="hidden" /> elements
HTML_QuickForm2_Element_InputReset
Class for <input type="reset" /> elements
HTML_QuickForm2_Element_InputSubmit
Class for <input type="submit" /> elements
HTML_QuickForm2_Element_InputPassword
Class for <input type="password" /> elements
HTML_QuickForm2_Element_InputFile
Class for <input type="file" /> elements
HTML_QuickForm2_Element_InputCheckable
Base class for <input> elements having 'checked' attribute (checkboxes and radios)
HTML_QuickForm2_Element_InputText
Class for <input type="text" /> elements
HTML_QuickForm2_Element_InputImage
Class for <input type="image" /> elements
HTML_QuickForm2_Element_InputButton
Class for <input type="button" /> elements

Inherited Variables

Inherited Methods

Class: HTML_QuickForm2_Element

HTML_QuickForm2_Element::getId()
HTML_QuickForm2_Element::getName()
HTML_QuickForm2_Element::getPersistentContent()
Generates hidden form field containing the element's value
HTML_QuickForm2_Element::onAttributeChange()
HTML_QuickForm2_Element::setId()
HTML_QuickForm2_Element::setName()
HTML_QuickForm2_Element::updateValue()
Called when the element needs to update its value from form's data sources

Class: HTML_QuickForm2_Node

HTML_QuickForm2_Node::__construct()
Class constructor
HTML_QuickForm2_Node::generateId()
Generates an id for the element
HTML_QuickForm2_Node::getContainer()
Returns the element containing current
HTML_QuickForm2_Node::getDataSources()
Returns the data sources for this element
HTML_QuickForm2_Node::getId()
Returns the element's id
HTML_QuickForm2_Node::getLabel()
Returns the element's label(s)
HTML_QuickForm2_Node::getName()
Returns the element's name
HTML_QuickForm2_Node::getType()
Returns the element's type
HTML_QuickForm2_Node::getValue()
Returns the element's value
HTML_QuickForm2_Node::persistentFreeze()
Changes the element's persistent freeze behaviour
HTML_QuickForm2_Node::setContainer()
Adds the link to the element containing current
HTML_QuickForm2_Node::setId()
Sets the elements id
HTML_QuickForm2_Node::setLabel()
Sets the element's label(s)
HTML_QuickForm2_Node::setName()
Sets the element's name
HTML_QuickForm2_Node::setValue()
Sets the element's value
HTML_QuickForm2_Node::storeId()
Stores the explicitly given id to prevent duplicate id generation
HTML_QuickForm2_Node::toggleFrozen()
Changes the element's frozen status
HTML_QuickForm2_Node::updateValue()
Called when the element needs to update its value from form's data sources

Class Details

[line 60]
Base class for <input> elements


[ Top ]


Class Variables

$watchedAttributes = array('id', 'name', 'type')

[line 66]

'type' attribute should not be changeable
  • Access: protected

Type:   array
Overrides:   Array


[ Top ]



Method Detail

getFrozenHtml   [line 106]

string getFrozenHtml( )

Returns the field's value without HTML tags
  • Access: protected

Overridden in child classes as:

HTML_QuickForm2_Element_InputPassword::getFrozenHtml()
HTML_QuickForm2_Element_InputCheckable::getFrozenHtml()

[ Top ]

getType   [line 78]

void getType( )

  • Access: public

Overrides HTML_QuickForm2_Node::getType() (Returns the element's type)
[ Top ]

getValue   [line 88]

void getValue( )

  • Access: public

Overridden in child classes as:

HTML_QuickForm2_Element_InputReset::getValue()
Reset elements cannot have any submit values
HTML_QuickForm2_Element_InputSubmit::getValue()
Returns the element's value
HTML_QuickForm2_Element_InputFile::getValue()
Returns the information on uploaded file
HTML_QuickForm2_Element_InputCheckable::getValue()
HTML_QuickForm2_Element_InputImage::getValue()
Returns the element's value
HTML_QuickForm2_Element_InputButton::getValue()
Button elements cannot have any submit values

Overrides HTML_QuickForm2_Node::getValue() (Returns the element's value)
[ Top ]

onAttributeChange   [line 68]

void onAttributeChange( $name, [ $value = null])

  • Access: protected

Overrides HTML_QuickForm2_Element::onAttributeChange() (parent method not documented)

Parameters:

   $name   — 
   $value   — 

[ Top ]

setValue   [line 83]

void setValue( $value)

  • Access: public

Overridden in child classes as:

HTML_QuickForm2_Element_InputReset::setValue()
Reset elements cannot have any submit values
HTML_QuickForm2_Element_InputSubmit::setValue()
Submit's value cannot be set via this method
HTML_QuickForm2_Element_InputFile::setValue()
File upload's value cannot be set here
HTML_QuickForm2_Element_InputCheckable::setValue()
HTML_QuickForm2_Element_InputImage::setValue()
Image button's value cannot be set via this method
HTML_QuickForm2_Element_InputButton::setValue()
Button elements cannot have any submit values

Overrides HTML_QuickForm2_Node::setValue() (Sets the element's value)

Parameters:

   $value   — 

[ Top ]

__toString   [line 93]

void __toString( )

  • Access: public

Overridden in child classes as:

HTML_QuickForm2_Element_InputCheckable::__toString()
HTML_QuickForm2_Element_InputImage::__toString()
Returns the HTML representation of the element

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:00:13 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.