vBulletin 5.6.5 API

vB_Utility_Filescanner
in package
Uses vB_Utility_Trait_NoSerialize

vB_Utility_Filescanner

Table of Contents

$enabled  : mixed
$errors  : mixed
__construct()  : mixed
__serialize()  : mixed
__sleep()  : mixed
__unserialize()  : mixed
__wakeup()  : mixed
clearErrors()  : mixed
fetchErrors()  : mixed
isEnabled()  : mixed
checkDependencies()  : bool
Check for dependencies during startup. Note that this will be called on every every upload (if product/implementation is enabled), and thus may slow down upload requests if the checks are slow/resource-intensive.
initialize()  : mixed
Do any initialization or post-checkDependencies() checks here. This will only run if checkDependencies() returned true.
scanFile()  : bool
Scan a file for malware

Properties

Methods

__construct()

public final __construct(mixed $vboptions) : mixed
Parameters
$vboptions : mixed
Return values
mixed

__serialize()

public __serialize() : mixed
Return values
mixed

__sleep()

public __sleep() : mixed
Return values
mixed

__unserialize()

public __unserialize(mixed $serialized) : mixed
Parameters
$serialized : mixed
Return values
mixed

__wakeup()

public __wakeup() : mixed
Return values
mixed

clearErrors()

public final clearErrors() : mixed
Return values
mixed

fetchErrors()

public final fetchErrors() : mixed
Return values
mixed

isEnabled()

public final isEnabled() : mixed
Return values
mixed

checkDependencies()

Check for dependencies during startup. Note that this will be called on every every upload (if product/implementation is enabled), and thus may slow down upload requests if the checks are slow/resource-intensive.

protected checkDependencies(array<string|int, mixed> $vboptions) : bool

Result of this function will initially control $this->enabled, but enabled value can be overriden in the extending class's initialize() function.

Parameters
$vboptions : array<string|int, mixed>

Array of vBulletin options passed from the constructor

Return values
bool

-- True if all (detectable) dependencies were found/installed.

initialize()

Do any initialization or post-checkDependencies() checks here. This will only run if checkDependencies() returned true.

protected initialize(array<string|int, mixed> $vboptions) : mixed
Parameters
$vboptions : array<string|int, mixed>

Array of vBulletin options passed from the constructor

Return values
mixed

scanFile()

Scan a file for malware

protected abstract scanFile(string $filename) : bool
Parameters
$filename : string

-- Filename to scan

Return values
bool

-- True if scan passed.

Search results