Class XFFilter_External

Description

XFFilter_External helps the main filter by querying external sources

XFFilter_External helps the main filter by querying external sources

Located in /lb_private/class.filter.php (line 407)


	
			
Variable Summary
static array $safe_http_header
string $host
integer $port
array $result
string $scheme
Method Summary
boolean query (array $a)
array result (none 0)
boolean set (string $a, mixed $b)
Variables
static array $safe_http_header = array('http_host','http_user_agent','http_accept','http_accept_language',
'http_accept_encoding','http_accept_charset','http_keep_alive','http_connection','http_cache_control','http_pragma',
'server_name','server_addr','server_port','remote_addr','remote_port','request_method','request_time'
)
(line 411)
  • var: keys of "safe" values from $_SERVER
  • access: protected
string $host = '' (line 426)
  • var: the hostname
  • access: protected
integer $port = 0 (line 430)
  • var: the port
  • access: protected
array $result = array() (line 418)
  • var: the results of a query
  • access: protected
string $scheme = 'tcp' (line 422)
  • var: what scheme to use (currently 'tcp' only)
  • access: protected
Methods
query (line 459)

do the query (at the moment we support "akismet" for MSG only)

do the query (at the moment we support "akismet" for MSG only) mandatory keys: class,command,message optional keys: key,verbose,custom_uri,msgvarid

  • since: 1.1.0
  • access: public
boolean query (array $a)
  • array $a: input data
result (line 524)

return the results.

return the results. usually a http response with [0]=headers and [1]=body

  • since: 1.1.0
  • access: public
array result (none 0)
  • none 0
set (line 442)

set different parameters

set different parameters

  • since: 1.1.0
  • access: public
boolean set (string $a, mixed $b)
  • string $a: the key, allowed are: host, port and scheme
  • mixed $b: the value

Documentation generated on Sun, 20 Jun 2010 11:59:12 +0200 by phpDocumentor 1.4.3