shoppingmallv2/app/Controllers/Front/PaymentController.php
2023-08-11 18:37:22 +09:00

50 lines
1.4 KiB
PHP

<?php
namespace App\Controllers\Front;
use App\Models\PaymentModel;
use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\HTTP\ResponseInterface;
use Psr\Log\LoggerInterface;
class PaymentController extends FrontController
{
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
{
$this->_model = new PaymentModel();
$this->_viewDatas['className'] = 'Payment';
parent::initController($request, $response, $logger);
$this->_viewPath .= strtolower($this->_viewDatas['className']);
//Default 회원정보 Category
$this->_category = DEFAULTS['PAYMENT_CATEGORY'];
$this->isRole('index');
}
final public function getFields(string $action = ""): array
{
switch ($action) {
case 'insert':
return ["TID", "ORDERNO", "AMOUNT", "QUOTA", "ACCEPTNO", "ACCEPTDATE", "RESULTCODE", "created_at"];
break;
case "index":
case "excel":
case "view":
return ["ORDERNO", "AMOUNT", "QUOTA", "ACCEPTNO", "ACCEPTDATE", "RESULTCODE", "created_at"];
break;
default:
return [];
break;
}
}
final public function getFieldFilters(): array
{
return [];
}
final public function getFieldBatchFilters(): array
{
return [];
}
//추가기능
}