radioactivity_incident_storage.php in Radioactivity 7
File
storage/radioactivity_incident_storage.php
View source
<?php
class radioactivity_incident_storage {
protected $field_id;
protected $table_name;
protected $field_name;
protected $energy_column_name;
protected $timestamp_column_name;
public function __construct($field_id) {
$field_info = field_info_field_by_id($field_id);
$this->field_id = $field_id;
$this->half_life = $field_info['settings']['half_life'];
$this->cut_off = $field_info['settings']['cut_off'];
$this->incident_energy = $field_info['settings']['incident_energy'];
$this->field_name = $field_info['field_name'];
$this->table_name = "field_data_" . $this->field_name;
$this->energy_column_name = $this->field_name . '_' . RADIOACTIVITY_FIELD_ENERGY;
$this->timestamp_column_name = $this->field_name . '_' . RADIOACTIVITY_FIELD_TIMESTAMP;
}
function add_incident($entities_id, $energy = null) {
}
function process_incidents() {
}
}