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

Class: Services_Trackback_SpamCheck_Regex

Source Location: /Services_Trackback-0.6.0/Services/Trackback/SpamCheck/Regex.php

Class Overview

Services_Trackback_SpamCheck
   |
   --Services_Trackback_SpamCheck_Regex

Regex Module for spam detecion using perl compatible regular expressions.


Author(s):

Version:

  • Release: @package_version@

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 58]
Regex Module for spam detecion using perl compatible regular expressions.


[ Top ]


Class Variables

$_options = array(
        'continuous'    => false,
        'sources'       => array(
            '(acne|adipex|anal|blackjack|cash|casino|cigar|closet|daystore|drugs|erection|fundslender|gambling|hire|hydrocodone|investing|lasik|loan|mattress|mortgage|naproxen|neurontin|payday|penis|pharma|phentermine|poker|porn|rheuma|roulette|sadism|sex|smoking|texas hold|tramadol|uxury|viagra|vioxx|weight loss|xanax|zantac)',
        ),'elements'=>array('title','excerpt','blog_name','url',),'delimiter'=>'@','modifier'=>'i','minmatches'=>1,)

[line 69]

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

Type:   array
Overrides:   Array


[ Top ]



Method Detail

Services_Trackback_SpamCheck_Regex (Constructor)   [line 101]

object(Services_Trackback_SpamCheck_WordList) Services_Trackback_SpamCheck_Regex( [array $options = null])

Constructor.

Create a new instance of the Regex spam protection module.

  • Return: The newly created SpamCheck object.
  • 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 servers. Indexed. 'comparefunc': A compare function callback with parameters $haystack, $needle (like 'stripos'). 'minmatches': How many words have to be found to consider spam.

[ Top ]

check   [line 113]

void check( $trackback)


Overrides Services_Trackback_SpamCheck::check() (Check for spam using this module.)

Parameters:

   $trackback   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:36:53 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.