Class: HTMLNormalInput

Source Location: /system/helpers/HTMLInputElement.php

Class Overview [line 507]

HTMLInputElement
   |
   --HTMLNormalInput

The base class for each of the HTML input elements. functionality which is common to all input types and the declarations of functions which need to be implemented individually.

Author(s):

Version:

Copyright:

Variables

Constants

Methods


Inherited Methods

Class: HTMLInputElement

HTMLInputElement::__construct()
The only constructor for the HTMLInputElement abstract class. be called through all of the sub classesin order to set all properties accordingly.
HTMLInputElement::buildLabel()
This function is used in order to build the label if required for the HTML element.
HTMLInputElement::getAttribute()
The getter for each of the attributes of the form element.
HTMLInputElement::getAttributes()
This function is used in order to list all of the attributes which are associated with the corresponding input element.
HTMLInputElement::getCSSClass()
The getter for the CSS class for the form element.
HTMLInputElement::getForm()
The getter for the form name of an input element.
HTMLInputElement::getId()
The getter for the field element's id
HTMLInputElement::getInputType()
The getter for the name and id attribute of the input element
HTMLInputElement::getLabel()
The getter for the label being created with the form element.
HTMLInputElement::getLabelCSSClass()
The getter for the CSS class for the form element.
HTMLInputElement::getName()
The getter for the name and id attribute of the input element
HTMLInputElement::getRemember()
This function is used in order to return whether or not the 'remember' flag has been enabled.
HTMLInputElement::getValue()
The getter for the value of the input field.
HTMLInputElement::getValues()
The getter for the set of default values for an input element.
HTMLInputElement::initializeValue()
This function is run by the form in order to re-initialize the value for a particular input field if a post was completed for that particular form.
HTMLInputElement::setAttribute()
The setter for each of the attributes of the form element.
HTMLInputElement::setCSSClass()
The setter for the CSS class
HTMLInputElement::setForm()
This is the setter for the form name of an element. propagate any changes to the unique identifier.
HTMLInputElement::setInputType()
The setter for the name and id attribute of the input element.
HTMLInputElement::setLabel()
The setter for the label which can be created along with the rest of the form element.
HTMLInputElement::setLabelCSSClass()
The setter for the label's CSS class
HTMLInputElement::setName()
The setter for the name and id attribute of the input element.
HTMLInputElement::setRemember()
This function is used in order to set or unset the 'remember' flag which is used in the post-submission processing of a form.
HTMLInputElement::setValue()
The setter for the default value of the input field.
HTMLInputElement::setValues()
This abstract function is used in order to set the default list of values for particular input types.
HTMLInputElement::toHTML()
This function is used in order to convert the class which was created into the raw HTML form.
HTMLInputElement::toHTMLArray()
This abstract function is used in order to convert the object's HTML
HTMLInputElement::updateId()
This function is used internally to update the field element's id if the form or name elements are changed.


Class Details

The base class for each of the HTML input elements. functionality which is common to all input types and the declarations of functions which need to be implemented individually.

The base class for each of the HTML input elements. This will provide core functionality which is common to all input types and the declarations of functions which need to be implemented individually.

[ Top ]


Class Variables


Class Methods

__construct

HTMLNormalInput __construct( string $name, string $type, [string $value = ''], [string $form = ''])

[line 518]

This constructor overrides the default constructor for the HTMLNormalInput class in order to make sure that the password field doesn't automatically remember the value which was submitted.

This constructor overrides the default constructor for the HTMLNormalInput class in order to make sure that the password field doesn't automatically remember the value which was submitted.

Tags:

  • access - public

Overrides HTMLInputElement::__construct() (The only constructor for the HTMLInputElement abstract class. be called through all of the sub classesin order to set all properties accordingly.)

Parameters:

  • string $name - - The name and ID for the form element
  • string $type - - The type of field which will be used
  • string $value - - The default value for the input field
  • string $form - - The name of the form that the input element is in

[ Top ]

setValues

void setValues( $values $values, [boolen $append = FALSE])

[line 571]

This abstract function is used in order to set the default list of values for particular input types.

This abstract function is used in order to set the default list of values for particular input types.

Tags:

  • access - public

Overrides HTMLInputElement::setValues() (This abstract function is used in order to set the default list of values for particular input types.)

Parameters:

  • boolen $append - - Whether the value should be appended to the list or not
  • $values $values - - List of values which the input field may use

[ Top ]

toHTMLArray

array toHTMLArray( string $formMD5)

[line 540]

This function is used in order to convert the object's HTML

This function is used in order to convert the object's HTML information into an array which will then be used later on. The array will contain either ONE (1) or TWO (2) elements:

  • FormBuilder::HTML - the HTML relating to the actual input field
  • FormBuilder::LABEL - the label associated with the input field

Tags:

  • return - - The array containing all of the information
  • access - public

Overrides HTMLInputElement::toHTMLArray() (This abstract function is used in order to convert the object's HTML)

Parameters:

  • string $formMD5 - - The unique MD5 for the form

[ Top ]


Class Constants


Documentation generated on Sat, 30 Oct 2010 09:50:13 -0400 by phpDocumentor 1.4.3