added some sorting time to the mining ledger
This commit is contained in:
@@ -115,17 +115,17 @@ class MoonLedgerController extends Controller
|
||||
|
||||
//Cycle through each ledger entry and create a new array
|
||||
foreach($ledgers as $ledger) {
|
||||
//Get the character name from the character id
|
||||
$char = $lookup->CharacterIdToName($ledger->character_id);
|
||||
//Get the character information from the character id
|
||||
$charInfo = $lookup->GetCharacterInfo($ledger->character_id);
|
||||
//Get the corp ticker
|
||||
$corpInfo = $lookup->GetCorporationInfo($char->corporation_id);
|
||||
$corpInfo = $lookup->GetCorporationInfo($charInfo->corporation_id);
|
||||
//Get the ore name from the type id
|
||||
$ore = $lookup->ItemIdToName($ledger->type_id);
|
||||
|
||||
//Push the data onto the mining arary
|
||||
array_push($tempMining, [
|
||||
'character' => $char,
|
||||
'corp_ticker' => $corpInfo->ticker,
|
||||
'character' => $charInfo->name,
|
||||
'corpTicker' => $corpInfo->ticker,
|
||||
'ore' => $ore,
|
||||
'quantity' => $ledger->quantity,
|
||||
'updated' => $ledger->last_updated,
|
||||
|
||||
Reference in New Issue
Block a user