class RadioactivityLiveIncidentStorage in Radioactivity 7.2
@file Live Incident storage class
Hierarchy
Expanded class hierarchy of RadioactivityLiveIncidentStorage
File
- includes/
RadioactivityLiveIncidentStorage.inc, line 7 - Live Incident storage class
View source
class RadioactivityLiveIncidentStorage extends RadioactivityIncidentStorage {
/**
* Constructor
*/
public function __construct() {
parent::__construct();
}
/**
* Add incident directly to the db
*/
public function addIncident(RadioactivityIncident $incident) {
if ($incident && $incident
->floodCheck()) {
$incident
->updateEnergy();
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RadioactivityIncidentStorage:: |
public | function | Get decay profile attached to this instance | |
RadioactivityIncidentStorage:: |
public | function | Process incidents in the storage When this is run depends solely on cron timing & decay pattern granularity | 4 |
RadioactivityIncidentStorage:: |
public | function | Does this require boostrapping? | 3 |
RadioactivityLiveIncidentStorage:: |
public | function |
Add incident directly to the db Overrides RadioactivityIncidentStorage:: |
|
RadioactivityLiveIncidentStorage:: |
public | function |
Constructor Overrides RadioactivityIncidentStorage:: |