Overview

Packages

  • admin
  • classes
    • media
  • CodeIgniter
    • Libraries
  • core
  • functions
  • JSMin
  • None
  • OpenID
  • PHP
  • PHPMailer
  • plugins
    • admin
    • development
    • feed
    • mail
    • media
    • misc
    • seo
    • spam
    • uploader
    • users
    • zenpage
    • zenphoto
      • news
  • Services
    • JSON

Classes

  • reCaptcha
  • zpCaptcha
  • zpSimpleSpam
  • zpTrivialSpam
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class zpTrivialSpam

This implements the standard SpamFilter class for the none spam filter.

Note that this filter will always pass comments from users with "manage" rights on the commented object.

Package: plugins\spam
Author: Stephen Billard (sbillard)
Located at zp-extensions/trivialSpam.php
Methods summary
public SpamFilter
# __construct( )

The SpamFilter class instantiation function.

The SpamFilter class instantiation function.

Returns

SpamFilter
public
# displayName( )
public array
# getOptionsSupported( )

The admin options interface called from admin Options tab returns an array of the option names the theme supports the array is indexed by the option name. The value for each option is an array: 'type' => 0 says for admin to use a standard textbox for the option 'type' => 1 says for admin to use a standard checkbox for the option 'type' => OPTION_TYPE_CUSTOM will cause admin to call handleOption to generate the HTML for the option 'desc' => text to be displayed for the option description.

The admin options interface called from admin Options tab returns an array of the option names the theme supports the array is indexed by the option name. The value for each option is an array: 'type' => 0 says for admin to use a standard textbox for the option 'type' => 1 says for admin to use a standard checkbox for the option 'type' => OPTION_TYPE_CUSTOM will cause admin to call handleOption to generate the HTML for the option 'desc' => text to be displayed for the option description.

Returns

array
public
# handleOption( string $option, mixed $currentValue )

Handles custom formatting of options for Admin

Handles custom formatting of options for Admin

Parameters

$option
the option name of the option to be processed
$currentValue
the current value of the option (the "before" value)
public integer
# filterMessage( string $author, string $email, string $website, string $body, string $receiver, string $ip )

The function for processing a message to see if it might be SPAM returns: 0 if the message is SPAM 1 if the message might be SPAM (it will be marked for moderation) 2 if the message is not SPAM

The function for processing a message to see if it might be SPAM returns: 0 if the message is SPAM 1 if the message might be SPAM (it will be marked for moderation) 2 if the message is not SPAM

Parameters

$author
Author field from the posting
$email
Email field from the posting
$website
Website field from the posting
$body
The text of the comment
$receiver
The object on which the post was made
$ip
the IP address of the comment poster

Returns

integer
Properties summary
public string $name
# 'trivialSpam'
Zenphoto doc API documentation generated by ApiGen