Свойство | Type | Description | |
---|---|---|---|
m_key | String |
Méthode | Description | |
---|---|---|
AkismetValidator ( String key ) : System |
Initialize class members based on the input parameters
|
|
IsSpam ( AkismetComment comment ) : System.Boolean |
Check if the input comment is valid or not.
|
|
IsSpam ( string ApiKey, string domain, |
||
SubmitHam ( AkismetComment comment ) : void |
This call is intended for the marking of false positives, things that were incorrectly marked as spam.
|
|
SubmitSpam ( AkismetComment comment ) : void |
This call is for submitting comments that weren't marked as spam but should've been.
|
|
VerifyKey ( String domain ) : System.Boolean |
Check if the validator's key is valid or not.
|
Méthode | Description | |
---|---|---|
ExtractResult ( String content ) : System.Boolean |
Check the input data for valid content: "valid" string or "true" string.
|
|
PostRequest ( String url, |
Post parameters to the input url and return the response.
|
|
PreparePars ( AkismetComment comment ) : |
Prepare request parameters based on the input comment.
|
|
PreparePars ( String key, String domain ) : |
Prepare request parameters based on the input parameters.
|
public AkismetValidator ( String key ) : System | ||
key | String | The input Akismet key. |
Résultat | System |
protected ExtractResult ( String content ) : System.Boolean | ||
content | String | The input content. |
Résultat | System.Boolean |
public IsSpam ( AkismetComment comment ) : System.Boolean | ||
comment | AkismetComment | The input comment to be checked. |
Résultat | System.Boolean |
public static IsSpam ( string ApiKey, string domain, |
||
ApiKey | string | |
domain | string | |
comment | ||
Résultat | bool |
protected PostRequest ( String url, |
||
url | String | The input url (absolute). |
pars | The input parameters to send. | |
Résultat | String |
protected PreparePars ( AkismetComment comment ) : |
||
comment | AkismetComment | The input comment. |
Résultat |
protected PreparePars ( String key, String domain ) : |
||
key | String | The input key. |
domain | String | The input domain. |
Résultat |
public SubmitHam ( AkismetComment comment ) : void | ||
comment | AkismetComment | The input comment to be sent as ham. |
Résultat | void |
public SubmitSpam ( AkismetComment comment ) : void | ||
comment | AkismetComment | The input comment to be sent as spam. |
Résultat | void |
public VerifyKey ( String domain ) : System.Boolean | ||
domain | String | |
Résultat | System.Boolean |