Methods

Moves or deletes threads by the specified user

cleanUp(array $user, array $log, string | array $errorKey) : boolean
see \XenForo_SpamHandler_Abstract::cleanUp()

Parameters

$user

array

Spamming user

$log

array

Log of actions performed

$errorKey

stringarray

Error phrase key

Returns

booleanIf false, $errorKey should be populated with an error phrase key

Checks that the options array contains a non-empty 'action_threads' key

cleanUpConditionCheck(array $user, array $options) : boolean

Parameters

$user

array

$options

array

Returns

boolean

Gets the specified model object from the cache.

getModelFromCache(string $class) : \XenForo_Model
Inherited

If it does not exist, it will be instantiated.

inherited_from \XenForo_SpamHandler_Abstract::getModelFromCache()

Parameters

$class

string

Name of the class to load

Returns

Undoes whatever the cleanUp function did, based on the contents of the log

restore(array $log, string | array $errorKey) : boolean
see \XenForo_SpamHandler_Abstract::restore()

Parameters

$log

array

Log generated by cleanUp

$errorKey

stringarray

Error phrase key

Returns

boolean

 Properties

 

$_modelCache : array
Inherited
inherited_from \XenForo_SpamHandler_Abstract::$$_modelCache