71 lines
2 KiB
PHP
71 lines
2 KiB
PHP
<?php
|
|
|
|
namespace App\Ramcar;
|
|
|
|
class LegacyBattery
|
|
{
|
|
static public function translate($id)
|
|
{
|
|
switch($id)
|
|
{
|
|
case '1SM/NS50/D23L':
|
|
return '1SM/D23/NS50';
|
|
case '1SM/NS50/D23R':
|
|
return '1SM/D23/NS50/R';
|
|
case '1SM/NS50XL/D23L':
|
|
return '1SM/D23/NS50';
|
|
case '2HN/NS60ARS/B24RS':
|
|
return 'B24/NS60/R';
|
|
case '2HN/NS60/B24L':
|
|
return 'B24/NS60';
|
|
case '2SM/MG50/D26L':
|
|
return '2SM/D26/N50';
|
|
case '2SM/MG50/D26R':
|
|
return '2SM/D26/N50/R';
|
|
case '2SM/N50/D26L':
|
|
return '2SM/D26/N50';
|
|
case '2SM/N50XL/D26L':
|
|
return '2SM/D26/N50';
|
|
case '3SM/MG70/D31L':
|
|
return '3SM/D31/N70';
|
|
case '3SM/MG70/D31R':
|
|
return '3SM/D31/N70/R';
|
|
case '3SM/N70/D31L':
|
|
return '3SM/D31/N70';
|
|
case '3SM/N70XL/D31L':
|
|
return '3SM/D31/N70';
|
|
case '4SN/NS40/B20L':
|
|
// return 'NS40/B20';
|
|
return 'B20/NS40';
|
|
case '4SN/NS40R/B20R':
|
|
return 'B20/NS40/R';
|
|
case 'DIN55R':
|
|
return 'DIN55/R';
|
|
case 'DIN66R':
|
|
return 'DIN66/R';
|
|
case 'GROUP34/78':
|
|
return 'G34';
|
|
case 'GROUP65':
|
|
return 'G65';
|
|
case 'N100/6SM':
|
|
case 'N120/2D':
|
|
case 'N150/4D':
|
|
case 'N200/8D':
|
|
return null;
|
|
case 'N50/2SM':
|
|
return '2SM/D26/N50';
|
|
case 'N70/3SM':
|
|
return '3SM/D31/N70';
|
|
case 'NS40':
|
|
return 'B20/NS40';
|
|
case 'NS50/1SM':
|
|
return '1SM/D23/NS50';
|
|
case 'NS60/N40/1SN':
|
|
return 'B24/NS60';
|
|
default:
|
|
return null;
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|