프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$Disabled | boolean |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_Instance | SpamModel |
메소드 | 설명 | |
---|---|---|
disabled ( boolean | null $value = null ) : boolean | Return whether or not the spam model is disabled. | |
isSpam ( string $RecordType, array $Data, array $Options = [] ) | Check whether or not the record is spam. |
메소드 | 설명 | |
---|---|---|
_Instance ( ) : SpamModel | ||
flagForReview ( string $recordType, integer $id, object | array $data ) | Insert a SPAM Queue entry for the specified record and delete the record, if possible. |
protected static flagForReview ( string $recordType, integer $id, object | array $data ) | ||
$recordType | string | The type of record we're flagging: Discussion or Comment. |
$id | integer | ID of the record we're flagging. |
$data | object | array | Properties used for updating/overriding the record's current values. |
public static isSpam ( string $RecordType, array $Data, array $Options = [] ) | ||
$RecordType | string | By default, this should be one of the following: - Comment: A comment. - Discussion: A discussion. - User: A user registration. |
$Data | array | The record data. |
$Options | array | Options for fine-tuning this method call. - Log: Log the record if it is found to be spam. |