You are here

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

Namesort descending Modifiers Type Description Overrides
RadioactivityIncidentStorage::getDecayProfile public function Get decay profile attached to this instance
RadioactivityIncidentStorage::processIncidents public function Process incidents in the storage When this is run depends solely on cron timing & decay pattern granularity 4
RadioactivityIncidentStorage::requiresBootstrap public function Does this require boostrapping? 3
RadioactivityLiveIncidentStorage::addIncident public function Add incident directly to the db Overrides RadioactivityIncidentStorage::addIncident
RadioactivityLiveIncidentStorage::__construct public function Constructor Overrides RadioactivityIncidentStorage::__construct