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

Class: Services_Trackback_SpamCheck_DNSBL

Source Location: /Services_Trackback-0.7.1/Services/Trackback/SpamCheck/DNSBL.php

Class Overview

Services_Trackback_SpamCheck
   |
   --Services_Trackback_SpamCheck_DNSBL

DNSBL Module for spam detecion using DNSBL.


Author(s):

Version:

  • Release: 0.7.1

Copyright:

  • 2005-2006 The PHP Group

Variables

Methods


Inherited Variables

Inherited Methods

Class: Services_Trackback_SpamCheck

Services_Trackback_SpamCheck::check()
Check for spam using this module.
Services_Trackback_SpamCheck::create()
Factory.
Services_Trackback_SpamCheck::getResults()
Get spam check results.
Services_Trackback_SpamCheck::reset()
Reset results.
Services_Trackback_SpamCheck::_checkSource()
Check a specific source if a trackback has to be considered spam.

Class Details

[line 57]
DNSBL Module for spam detecion using DNSBL.


[ Top ]


Class Variables

$_dnsbl =

[line 86]

The Net_DNSBL object for checking.
  • Since: 0.5.0
  • Access: protected

Type:   object(Net_DNSBL)


[ Top ]

$_options = array(
        'continuous'    => false,
        'sources'       => array(
            'bl.spamcop.net'
        ),)

[line 69]

Options for the SpamProtection.
  • Since: 0.5.0
  • Access: protected

Type:   array
Overrides:   Array


[ Top ]



Method Detail

__construct (Constructor)   [line 106]

void __construct( [array $options = null])

Constructor.

Create a new instance of the DNSBL spam protection module.

  • Since: 0.5.0
  • Access: public

Parameters:

array   $options   —  An array of options for this spam protection module. General options are 'continuous': Whether to continue checking more sources if a match has been found. 'sources': List of blacklist nameservers. Indexed.

[ Top ]

reset   [line 148]

null reset( )

Reset results.

Reset results to reuse SpamCheck.

  • Since: 0.5.0
  • Access: public

Overrides Services_Trackback_SpamCheck::reset() (Reset results.)
[ Top ]

_checkSource   [line 129]

bool _checkSource( mixed $source, Services_Trackback $trackback)

Check a specific source if a trackback has to be considered spam.
  • Return: True if trackback is spam, false, if not.
  • Since: 0.5.0
  • Access: protected

Overrides Services_Trackback_SpamCheck::_checkSource() (Check a specific source if a trackback has to be considered spam.)

Parameters:

mixed   $source   —  Element of the _sources array to check.
Services_Trackback   $trackback   —  The trackback to check.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:51:32 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.