|
|
@ -18,6 +18,20 @@ class TrackingEntry {
|
|
|
|
$this->location = $location;
|
|
|
|
$this->location = $location;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->iscontainerscan = $iscontainerscan;
|
|
|
|
$this->iscontainerscan = $iscontainerscan;
|
|
|
|
|
|
|
|
$this->formatDetails();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Do some find/replace on the event details to clean up some carrier formatting nonsense.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
private function formatDetails() {
|
|
|
|
|
|
|
|
$findreplace = [
|
|
|
|
|
|
|
|
"<SUP>®</SUP>" => "®"
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($findreplace as $f => $r) {
|
|
|
|
|
|
|
|
$this->details = str_replace($f, $r, $this->details);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function toString(): string {
|
|
|
|
public function toString(): string {
|
|
|
|