Spam-X
[ class tree: Spam-X ] [ index: Spam-X ] [ all elements ]

Class: BaseCommand

Source Location: /plugins/spamx/BaseCommand.class.php

Class Overview


Basic Command Abstract class


Author(s):

  • Tom Willett tomw AT pigstye DOT net

Variables

Methods


Child classes:

BlackList
Examines Comment according to Personal BLacklist
DeleteComment
Action Class which just discards comment
Header
Examines Post according to HTTP Headers
IP
Examines Comment according to Personal IP Blacklist
IPofUrl
Examines Comment according to Personal BLacklist
MailAdmin
Action Class which emails the spam post to the site admin
SLV
Sends posts to SLV (linksleeve.org) for examination
SLVreport
Sends posts to SLV (linksleeve.org)

Class Details

[line 13]
Basic Command Abstract class



Tags:

author:  Tom Willett tomw AT pigstye DOT net
abstract:  


[ Top ]


Class Variables

$num =  0

[line 20]


Type:   mixed


[ Top ]

$result =  null

[line 19]



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


constructor BaseCommand [line 27]

BaseCommand BaseCommand( )

Constructor



Tags:

access:  public


[ Top ]

method execute [line 31]

void execute( $comment)



Overridden in child classes as:

BlackList::execute()
Here we do the work
DeleteComment::execute()
Header::execute()
Here we do the work
IP::execute()
The execute method examines the IP address a comment is coming from, comparing it against a blacklist of banned IP addresses.
IPofUrl::execute()
Here we do the work
MailAdmin::execute()
SLV::execute()
Here we do the work
SLVreport::execute()
Here we do the work

Parameters:

   $comment  

[ Top ]

method number [line 43]

void number( )



[ Top ]

method result [line 36]

void result( )



[ Top ]


Documentation generated on Thu, 24 May 2012 02:07:06 -0400 by phpDocumentor 1.4.3