Methods

Cleans up spam of this content type

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

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 the options array for options affecting whether or not to run the cleanUp function

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

If it does not exist, it will be instantiated.

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

Parameters

$log

array

Log generated by cleanUp

$errorKey

stringarray

Error phrase key

Returns

boolean

 Properties

 

Standard approach to caching other model objects for the lifetime of the model.

$_modelCache : array