Akismet API call
- Author
- Nyro
Definition at line 12 of file akismet.class.php.
◆ afterInit()
Call just after the configuration initialisation
Definition at line 40 of file object.class.php.
◆ beforeInit()
Call just before the configuration initialisation
Definition at line 35 of file object.class.php.
◆ getAttr()
Get an attribute
- Parameters
-
string | $name | Attribute name |
- Returns
- mixed|null The attribute or null if not set
Definition at line 48 of file object.class.php.
◆ getCfg()
Get the configuration object
- Returns
- config
Definition at line 67 of file object.class.php.
◆ getQueryString()
Create the query string regarding the current configuration
- Returns
- string
Definition at line 158 of file akismet.class.php.
◆ isSpam()
isSpam |
( |
array |
$vars = array() | ) |
|
Check if the current configured comment is Spam
- Parameters
-
array | $vars | Array for setting comment variables using the setCommentVar function |
- Returns
- bool True if it's spam, false if it's OK
Definition at line 20 of file akismet.class.php.
◆ sendRequest()
sendRequest |
( |
|
$host, |
|
|
|
$path, |
|
|
|
$request |
|
) |
| |
|
protected |
Send the request against the submitted parameters
- Parameters
-
string | $host | |
string | $path | |
string | $request | |
- Returns
- array
Definition at line 133 of file akismet.class.php.
◆ setAttr()
setAttr |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
|
inherited |
Set an attribute
- Parameters
-
string | $name | Attribute name |
mixed | $value | Attribute value |
Definition at line 58 of file object.class.php.
◆ setAuthor()
◆ setAuthorEmail()
◆ setAuthorUrl()
◆ setCommentVar()
setCommentVar |
( |
|
$key, |
|
|
|
$val |
|
) |
| |
◆ setContent()
◆ submitHam()
submitHam |
( |
array |
$vars = array() | ) |
|
Submit a comment as ham
- Parameters
-
array | $vars | Array for setting comment variables using the setCommentVar function |
Definition at line 55 of file akismet.class.php.
◆ submitSpam()
submitSpam |
( |
array |
$vars = array() | ) |
|
Submit a comment as spam
- Parameters
-
array | $vars | Array for setting comment variables using the setCommentVar function |
Definition at line 40 of file akismet.class.php.
◆ verifyKey()
◆ $cfg
The documentation for this class was generated from the following file: