Symbiote\SteamedClams\Tasks\ClamAVBaseTask
Synopsis
class ClamAVBaseTask
extends BuildTask
{
- // members
- protected ClamAV $clamAV;
- protected ClamAVScanJob $job;
- protected integer $default_limit = 0;
- // methods
- public void run()
- protected void log()
- public void log_error_handler()
- protected bool scanListChunked()
- protected bool scanList()
Hierarchy
Extends
- SilverStripe\Dev\BuildTask
Members
protected
- $clamAV — Symbiote\SteamedClams\ClamAV
- $default_limit
—
int
Limit the `File` lists for testing purposes - $job — Symbiote\SteamedClams\Jobs\ClamAVScanJob
Methods
protected
- log()
- scanList()
- scanListChunked() — Scan files "bit-by-bit" to avoid filling up and blowing low memory limits
public
- log_error_handler() — Custom error handler so that 'user_error' underneath the 'log' function just prints like everything else.
- run()