classname: htmlobject_request
Http Request Handler
@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.request.class.php
Attributes
Attributes
topattribute: filter
access: public
default:
access: public
default:
array()
regex pattern for http request (crosssitescripting)
@access public
@var array
$request = new htmlobject_request();
$request->filter = array(
array ( 'pattern' => '~\r\n~', 'replace' => '\n'),
);
Methods
topfunction: get
params:
topparams:
$arg $raw = false
Get http request as cleaned string Returns empty when request not set @access public @param string $arg @param bool $raw enable return null @return string | array | null
function: set_filter
params:
topparams:
$arg = array()
Set filter for request handling (XSS)
@access public
@param array $arg
@return string
$request = new htmlobject_request();
$request->set_filter(array(
array ( 'pattern' => '~\r\n~', 'replace' => '\n'),
);
function: string_to_index
params:
topparams:
$arg
Transform string to array index string @access public @param string $arg @return string
function: unindex_array
params:
topparams:
$name
Remove unindexed array @access public @param string $arg @return string
function: __get_request_array
params:
topparams:
$arg
Get values from http request as array @access protected @param string $arg @return array
function: __filter_request
params:
params:
$arg
Performes preg_replace @access protected @param string $arg @return string
- htmlobject
- htmlobject_a
- htmlobject_base
- htmlobject_box
- htmlobject_button
- htmlobject_div
- htmlobject_form
- htmlobject_formbuilder
- htmlobject_iframe
- htmlobject_img
- htmlobject_input
- htmlobject_option
- htmlobject_request
- htmlobject_response
- htmlobject_select
- htmlobject_table
- htmlobject_tablebuilder
- htmlobject_tabmenu
- htmlobject_td
- htmlobject_template
- htmlobject_textarea
- htmlobject_tr