apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

Class: Net_DNSBL

Source Location: /Net_DNSBL-0.5.2/DNSBL.php

Class Overview




Variables

Methods


Child classes:

Inherited Variables

Inherited Methods


Class Details

[line 37]


[ Top ]


Class Variables

$blacklists = array('sbl-xbl.spamhaus.net',
                            'bl.spamcop.net')

[line 47]

Array of blacklists.

Must have one or more elements.

  • Access: protected

Type:   array


[ Top ]



Method Detail

buildLookUpHost   [line 133]

string buildLookUpHost( string $ip, string $blacklist)

Build the host to lookup from an IP.
  • Return: Ready to use host to lookup
  • Access: protected

Parameters:

string   $ip   —  IP to use for building the lookup.
string   $blacklist   —  Blacklist to use for building the lookup.

[ Top ]

getHostForLookup   [line 114]

string getHostForLookup( string $host, string $blacklist)

Get thublice host to lookup. Lookup a host if neccessary and get the complete FQDN to lookup
  • Return: Ready to use host to lookup
  • Access: protected

Overridden in child classes as:

Net_DNSBL_SURBL::getHostForLookup()
Get Hostname to ask for

Parameters:

string   $host   —  Host OR IP to use for building the lookup.
string   $blacklist   —  Blacklist to use for building the lookup.

[ Top ]

getRBL   [line 73]

array getRBL( )

Get the blacklists.
  • Return: Currently set blacklists.
  • Access: public

[ Top ]

isListed   [line 86]

boolean isListed( string $host)

Checks if the supplied Host is listen in one or more of the RBLs
  • Return: true if the checked host is listed in some blacklist.
  • Access: public

Parameters:

string   $host   —  Host to check for being listed.

[ Top ]

reverseIp   [line 145]

string reverseIp( string $ip)

Reverse the order of an IP. 127.0.0.1 -> 1.0.0.127
  • Return: Reversed IP
  • Access: protected

Parameters:

string   $ip   —  IP to reverse.

[ Top ]

setRBL   [line 57]

bool setRBL( array $blacklists)

Set the blacklist to a desired blacklist.
  • Return: true if the operation was successful
  • Access: public

Parameters:

array   $blacklists   —  Array of blacklists to use. May contain only one element.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:59:03 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.