dbmsv2/app/Controllers/Admin/Equipment/ServerPartController.php
2025-09-02 20:31:40 +09:00

41 lines
1.3 KiB
PHP

<?php
namespace App\Controllers\Admin\Equipment;
use App\Entities\Equipment\ServerPartEntity;
use App\Helpers\Equipment\ServerPartHelper;
use App\Services\Equipment\ServerPartService;
use CodeIgniter\HTTP\RedirectResponse;
use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\HTTP\ResponseInterface;
use Psr\Log\LoggerInterface;
class ServerPartController extends EquipmentController
{
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
{
parent::initController($request, $response, $logger);
$this->content_title = lang("{$this->getService()->getClassName()}.title");
$this->class_path .= $this->getService()->getClassName();
$this->uri_path .= strtolower($this->getService()->getClassName('/')) . '/';
// $this->view_path .= strtolower($this->getService()->getClassName()) . DIRECTORY_SEPARATOR;
$this->serverinfopartinfo_cnt_options = array_combine(range(1, 10), range(1, 10));
}
public function getService(): ServerPartService
{
if (!$this->_service) {
$this->_service = new ServerPartService();
}
return $this->_service;
}
public function getHelper(): ServerPartHelper
{
if (!$this->_helper) {
$this->_helper = new ServerPartHelper();
}
return $this->_helper;
}
//Index,FieldForm관련
}