classname: htmlobject_form


extends: htmlobject_base

 Form

@package htmlobjects
@author Alexander Kuballa [akuballa@users.sourceforge.net]
@copyright Copyright (c) 2008 - 2010, Alexander Kuballa
@license BSD License (see LICENSE.TXT)
@version 1.0

filename: htmlobject.form.class.php

Attributes

top
attribute: action
access: public
default:
empty

URI (RFC 2396) to process form data

@access public
@var string
top
attribute: enctype
access: public
default:
multipart/form-data

MIME-Typ (RFC 2045) of form data

@access public
@var string
top
attribute: method
access: public
default:
get

Post/Get

@access public
@var enum [post|get]
top
attribute: name
access: public
default:
empty

Name of form

@access public
@var string
top
attribute: target
access: public
default:
empty

Name of form response window

@access public
@var string


Methods

top
function: add
params:
$element
$key = null

 Add object or array of objects
 
 @access public
 @param object | string | array $element
 @param string $key key for elements array
top
function: get_elements
params:
$name = null

 Get object or an array of objects
 
 @access public
 @return null|array of objects
top
function: get_string

 Get html element as string
 
 @access public
 @return string
top
function: __attribs

 Init attribs
 
 @access private
 @return string