51 lines
1.3 KiB
PHP
51 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Services\Equipment;
|
|
|
|
use App\Entities\Equipment\ServerEntity;
|
|
use App\Models\Equipment\ServerModel;
|
|
use CodeIgniter\HTTP\IncomingRequest;
|
|
use App\Services\Equipment\EquipmentService; // Ensure this path is correct and the class exists or create the class if missing
|
|
|
|
class ServerService extends EquipmentService
|
|
{
|
|
protected ?IncomingRequest $request = null;
|
|
public function __construct(?IncomingRequest $request = null)
|
|
{
|
|
parent::__construct($request);
|
|
}
|
|
public function getClassName(): string
|
|
{
|
|
return parent::getClassName() . DIRECTORY_SEPARATOR . "Server";
|
|
}
|
|
public function getModelClass(): ServerModel
|
|
{
|
|
return new ServerModel();
|
|
}
|
|
public function getEntityClass(): ServerEntity
|
|
{
|
|
return new ServerEntity();
|
|
}
|
|
public function getFields(): array
|
|
{
|
|
return [
|
|
"clientinfo_uid",
|
|
"code",
|
|
"type",
|
|
"model",
|
|
"manufactur_at",
|
|
"price",
|
|
"status",
|
|
"description",
|
|
];
|
|
}
|
|
public function getFilterFields(): array
|
|
{
|
|
return ["clientinfo_uid", "type", 'status'];
|
|
}
|
|
public function getBatchJobFields(): array
|
|
{
|
|
return ['type', 'status'];
|
|
}
|
|
}
|