PHP 클래스 SpamModel, vanilla

상속: extends Gdn_Pluggable
파일 보기 프로젝트 열기: vanilla/vanilla 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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.

메소드 상세

_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