PHP Класс SpamModel, vanilla

Наследование: extends Gdn_Pluggable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$Disabled boolean

Защищенные свойства (Protected)

Свойство Тип Описание
$_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.

Описание методов

_Instance() защищенный статический Метод

protected static _Instance ( ) : SpamModel
Результат SpamModel

disabled() публичный статический Метод

Return whether or not the spam model is disabled.
public static disabled ( boolean | null $value = null ) : boolean
$value boolean | null
Результат boolean

flagForReview() защищенный статический Метод

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.

isSpam() публичный статический Метод

Check whether or not the record is spam.
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.

Описание свойств

$Disabled публичное статическое свойство

public static bool $Disabled
Результат boolean

$_Instance защищенное статическое свойство

protected static SpamModel $_Instance
Результат SpamModel