classname: htmlobject_response




 Response

@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.response.class.php

Attributes

top
attribute: params
access: public
default:
array()

Params

@access public
@var array
top
attribute: parent
access: public
default:
array()

Params

@access private
@var array


Methods

top
function: __construct
params:
$html
$id = 'response'

 Constructor
 
 @param htmlobject $html
 @param string $id
 @access public
top
function: add
params:
$key
$values

Add params

@access public
@param string $key
@param string | array $values
top
function: cancel

Is form canceled ?

@access public
@return true when form is canceled
top
function: get_array
params:
$key = null
$action = null

Params to array

@access public
@param string $tag name of action param
@param string $action action
@return array(key => value)
top
function: get_form
params:
$tag = null
$action = null
$submit = true

Params to htmlobject_formbuilder

@access public
@param string $tag name of action param
@param string $action action
@param bool $submit add submit buttons
@return htmlobject_formbuilder
top
function: get_params_string
params:
$params
$firstchar = '?'
$encode = true

Get params as string

@access public
@param array $params
@param enum $firstchar [?|&]
@param bool $encode urlencode
@return string
top
function: get_string
params:
$tag = null
$action = null
$firstchar = '&'
$encode = true

Params to string

@access public
@param string $tag name of action param
@param string $action action
@param enum $firstchar [?|&]
@param bool $encode urlencode
@return string
top
function: get_url
params:
$tag
$action
$param = null
$msg = null

Get url

@access public
@param string $tag name of additional param
@param string $action action
@param string $param name of message param
@param array $msg message
@return string
top
function: redirect
params:
$url

Header redirect

tries php header redirect,
on fail js redirect,
on fail meta redirect

@access public
@param string $url
top
function: submit

Is form submitted ?

@access public
@return true when form is submitted
top
function: response

Clone Response

@access public
@return true when form is submitted
top
function: parent
params:
$hmlobject_response = null

Clone Response

@access public
@return true when form is submitted