@@ 59-63 (lines=5) @@ | ||
56 | public function __construct($event_type, $event_data = 'state') { |
|
57 | $this->event_type = $event_type; |
|
58 | ||
59 | if ($event_data == JsonStore::BAT_STATE) { |
|
60 | $this->day_file = 'build/' . $event_type . '_day_' . JsonStore::BAT_STATE . '.json'; |
|
61 | $this->hour_file = 'build/' . $event_type . '_hour_' . JsonStore::BAT_STATE . '.json'; |
|
62 | $this->minute_file = 'build/' . $event_type . '_minute_' . JsonStore::BAT_STATE . '.json'; |
|
63 | } |
|
64 | ||
65 | if ($event_data == JsonStore::BAT_EVENT) { |
|
66 | $this->day_file = 'build/' . $event_type . '_day_' . JsonStore::BAT_EVENT . '.json'; |
|
@@ 65-69 (lines=5) @@ | ||
62 | $this->minute_file = 'build/' . $event_type . '_minute_' . JsonStore::BAT_STATE . '.json'; |
|
63 | } |
|
64 | ||
65 | if ($event_data == JsonStore::BAT_EVENT) { |
|
66 | $this->day_file = 'build/' . $event_type . '_day_' . JsonStore::BAT_EVENT . '.json'; |
|
67 | $this->hour_file = 'build/' . $event_type . '_hour_' . JsonStore::BAT_EVENT . '.json'; |
|
68 | $this->minute_file = 'build/' . $event_type . '_minute_' . JsonStore::BAT_EVENT . '.json'; |
|
69 | } |
|
70 | } |
|
71 | ||
72 | /** |