You are here

RadioactivityLiveIncidentStorage.inc in Radioactivity 7.2

Live Incident storage class

File

includes/RadioactivityLiveIncidentStorage.inc
View source
<?php

/**
 * @file Live Incident storage class
 */
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();
    }
  }

}

Classes

Namesort descending Description
RadioactivityLiveIncidentStorage @file Live Incident storage class