Class INPUTtag

Description

INPUTtag <INPUT> tag

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

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.

  1. function set_tag_attribute$name$value=NULL {
  2.         if (stristr('value'$name)) {
  3.             $value htmlspecialchars($valueENT_QUOTES);
  4.         }
  5.         $this->_attributes[$name$value;
  6.     }

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.

  1. function set_tag_attributes$attributes=array() ) {
  2.         if (isset($attributes['value'])) {
  3.             $attributes['value'htmlspecialchars($attributes['value']ENT_QUOTES);
  4.         }
  5.         $this->_attributes array_merge($this->_attributes$attributes);
  6.     }

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 Fri, 28 Jan 2011 08:52:43 -0500 by phpDocumentor 1.4.3