PHP Class AkismetPlugin, addons

Inheritance: extends Gdn_Plugin
Show file Open project: vanilla/addons

Public Methods

Method Description
akismet ( ) : Akismet Get an Akismet instance.
base_checkSpam_handler ( $Sender, $Args ) Hook into Vanilla to run checks.
checkAkismet ( $RecordType, $Data ) : boolean Query the Akismet service.
settingsController_akismet_create ( SettingsController $Sender ) Settings page.
setup ( ) Run once on enable.
structure ( ) Database update.
userID ( ) : mixed Get the ID of the Akismet user.

Protected Methods

Method Description
validateKey ( $key ) : boolean Do we have a valid key?

Private Methods

Method Description
buildAkismet ( string $key, string $server = false ) : Akismet Build an Akismet object.

Method Details

akismet() public static method

Get an Akismet instance.
public static akismet ( ) : Akismet
return Akismet

base_checkSpam_handler() public method

Hook into Vanilla to run checks.
public base_checkSpam_handler ( $Sender, $Args )
$Sender
$Args

checkAkismet() public method

Query the Akismet service.
public checkAkismet ( $RecordType, $Data ) : boolean
$RecordType
$Data
return boolean

settingsController_akismet_create() public method

Settings page.
public settingsController_akismet_create ( SettingsController $Sender )
$Sender SettingsController

setup() public method

Run once on enable.
public setup ( )

structure() public method

Database update.
public structure ( )

userID() public method

Get the ID of the Akismet user.
public userID ( ) : mixed
return mixed

validateKey() protected method

Do we have a valid key?
protected validateKey ( $key ) : boolean
return boolean