PHP Class PrivateBin\Persistence\PurgeLimiter

Handles purge limiting, so purging is not triggered too frequently.
Inheritance: extends AbstractPersistence
显示文件 Open project: privatebin/privatebin Class Usage Examples

Public Methods

Method Description
canPurge ( ) : boolean check if the purge can be performed
setConfiguration ( Configuration $conf ) : void set configuration options of the traffic limiter
setLimit ( integer $limit ) : void set the time limit in seconds

Method Details

canPurge() public static method

check if the purge can be performed
public static canPurge ( ) : boolean
return boolean

setConfiguration() public static method

set configuration options of the traffic limiter
public static setConfiguration ( Configuration $conf ) : void
$conf PrivateBin\Configuration
return void

setLimit() public static method

set the time limit in seconds
public static setLimit ( integer $limit ) : void
$limit integer
return void