You are here

abstract class RadioactivityIncidentStorage in Radioactivity 7.2

@file Base class for incident storages

Hierarchy

Expanded class hierarchy of RadioactivityIncidentStorage

File

includes/RadioactivityIncidentStorage.inc, line 7
Base class for incident storages

View source
abstract class RadioactivityIncidentStorage {
  public function __construct() {
  }

  /**
   * Add incident to the storage system
   * @entity_energy Energies by entity id
   */
  public function addIncident(RadioactivityIncident $incident) {

    // does nothing
  }

  /**
   * Process incidents in the storage
   * When this is run depends solely on cron timing & decay pattern granularity
   */
  public function processIncidents() {

    // nothing to do
  }

  /**
   * Get decay profile attached to this instance
   */
  public function getDecayProfile() {
    return radioactivity_decay_profile_load($this->settings['profile']);
  }

  /**
   * Does this require boostrapping?
   */
  public function requiresBootstrap() {
    return TRUE;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
RadioactivityIncidentStorage::addIncident public function Add incident to the storage system @entity_energy Energies by entity id 5
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
RadioactivityIncidentStorage::__construct public function 5