Docs For Class INPUTtag

## Class INPUTtag

Description

INPUTtag <INPUT> tag

The <input> tag defines the start of an input field where the user can enter data.

- author: Walter A. Boring IV <waboring@newsblob.com>

Located in /tag_classes/ALLTAGS.inc (line 677)

    Container
       |
       --XMLTagClass
          |
          --HTMLTagClass
             |
             --INPUTtag

Variable Summary
mixed $_tag
Method Summary
none set_tag_attribute (string $name, [mixed $value = NULL])
none set_tag_attributes ([array $attributes = array()])
void _set_flags ()
Variables
mixed $_tag = "input" (line 678)
Methods
set_tag_attribute (line 697)

add a single attribute (name="value")

We override this to prevent the value from being injected javascript.

    function set_tag_attribute( $name, $value=NULL ) {
            if (stristr('value', $name)) {
                $value = htmlspecialchars($value, ENT_QUOTES);
            }
            $this->_attributes[$name] = $value;
        }

none set_tag_attribute (string $name, [mixed $value = NULL])

- string $name: attribute name
- mixed $value: the value.

Redefinition of:

XMLTagClass::set_tag_attribute()
  add a single attribute (name="value")

set_tag_attributes (line 717)

add multiple attributes (name="value")

We override this to prevent the value from being injected javascript.

    function set_tag_attributes( $attributes=array() ) {
            if (isset($attributes['value'])) {
                $attributes['value'] = htmlspecialchars($attributes['value'], ENT_QUOTES);
            }
            $this->_attributes = array_merge($this->_attributes, $attributes);
        }

none set_tag_attributes ([array $attributes = array()])

- array $attributes: Associative array of name="value" pairs of tag atributes. ie array("border"=>"0", "class"=>"hover");

Redefinition of:

XMLTagClass::set_tag_attributes()
  add multiple attributes (name="value")

_set_flags (line 679)
void _set_flags ()

Redefinition of:

XMLTagClass::_set_flags()
  This method is used to set the bitmask flags for this tag. It tells the class how to render the tag.

#### Inherited Methods

Inherited From HTMLTagClass

> HTMLTagClass::HTMLTagClass()
> HTMLTagClass::render()
> HTMLTagClass::set_class()
> HTMLTagClass::set_id()
> HTMLTagClass::set_style()

Inherited From XMLTagClass

> XMLTagClass::XMLTagClass()
> XMLTagClass::get_tag()
> XMLTagClass::get_tag_attribute()
> XMLTagClass::get_tag_name()
> XMLTagClass::render()
> XMLTagClass::reset_attributes()
> XMLTagClass::set_cdata_flag()
> XMLTagClass::set_collapse()
> XMLTagClass::set_newline_after_closetag()
> XMLTagClass::set_newline_after_opentag()
> XMLTagClass::set_tag_attribute()
> XMLTagClass::set_tag_attributes()
> XMLTagClass::set_tag_name()
> XMLTagClass::_set_flags()

Inherited From Container

> Container::Container()
> Container::add()
> Container::add_reference()
> Container::count_content()
> Container::get_element()
> Container::get_indent_flag()
> Container::push()
> Container::push_reference()
> Container::render()
> Container::reset_content()
> Container::set_collapse()
> Container::set_indent_flag()

Documentation generated on Thu, 1 Sep 2005 17:05:22 -0700 by phpDocumentor 1.3.0RC3