47 lines
1.1 KiB
PHP
47 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Services\Equipment;
|
|
|
|
use CodeIgniter\HTTP\IncomingRequest;
|
|
use App\Services\Equipment\EquipmentService;
|
|
|
|
use App\Entities\Equipment\ServerPartEntity;
|
|
use App\Models\Equipment\ServerPartModel;
|
|
|
|
class ServerPartService extends EquipmentService
|
|
{
|
|
protected ?IncomingRequest $request = null;
|
|
public function __construct(?IncomingRequest $request = null)
|
|
{
|
|
parent::__construct($request);
|
|
}
|
|
public function getClassName(): string
|
|
{
|
|
return parent::getClassName() . DIRECTORY_SEPARATOR . "ServerPart";
|
|
}
|
|
public function getModelClass(): ServerPartModel
|
|
{
|
|
return new ServerPartModel();
|
|
}
|
|
public function getEntityClass(): ServerPartEntity
|
|
{
|
|
return new ServerPartEntity();
|
|
}
|
|
public function getFields(): array
|
|
{
|
|
return [
|
|
"type",
|
|
"serverinfo_uid",
|
|
"partinfo_uid",
|
|
];
|
|
}
|
|
public function getFilterFields(): array
|
|
{
|
|
return ["serverinfo_uid", "type", "partinfo_uid"];
|
|
}
|
|
public function getBatchJobFields(): array
|
|
{
|
|
return ["type", "partinfo_uid"];
|
|
}
|
|
}
|