dbms/app/Helpers/Customer/ServicePartHelper.php
2025-05-20 18:50:49 +09:00

23 lines
623 B
PHP

<?php
namespace App\Helpers\Customer;
use App\Models\Customer\ServicePartModel;
use CodeIgniter\HTTP\IncomingRequest;
class ServicePartHelper extends CustomerHelper
{
protected ?IncomingRequest $request = null;
public function __construct(?IncomingRequest $request = null)
{
parent::__construct($request);
$this->setTitleField(field: ServicePartModel::TITLE);
}
public function getListRowColor(mixed $entity, string $field = 'status', string $value = 'use'): string
{
return "";
// return $entity->isMatched($field, $value) ? "" : 'class="table-danger"';
}
}