dbmsv4 init...5

This commit is contained in:
최준흠 2026-03-02 15:17:32 +09:00
parent 839a44c657
commit 7fb1408259
2 changed files with 9 additions and 9 deletions

View File

@ -53,7 +53,7 @@ abstract class AbstractCRUDController extends AbstractWebController
); );
} }
final public function create(): string|RedirectResponse public function create(): string|RedirectResponse
{ {
try { try {
$action = __FUNCTION__; $action = __FUNCTION__;
@ -81,7 +81,7 @@ abstract class AbstractCRUDController extends AbstractWebController
return $this->action_render_process($action, $this->getViewDatas(), $this->request->getVar('ActionTemplate')); return $this->action_render_process($action, $this->getViewDatas(), $this->request->getVar('ActionTemplate'));
} }
final public function modify_form($uid): string|RedirectResponse public function modify_form($uid): string|RedirectResponse
{ {
try { try {
if (!$uid) { if (!$uid) {
@ -111,7 +111,7 @@ abstract class AbstractCRUDController extends AbstractWebController
$redirect_url ?? '/' . implode('/', [...$this->getActionPaths(), 'view']) . '/' . $entity->getPK() $redirect_url ?? '/' . implode('/', [...$this->getActionPaths(), 'view']) . '/' . $entity->getPK()
); );
} }
final public function modify($uid): string|RedirectResponse public function modify($uid): string|RedirectResponse
{ {
try { try {
if (!$uid) { if (!$uid) {
@ -136,7 +136,7 @@ abstract class AbstractCRUDController extends AbstractWebController
{ {
return $this->action_redirect_process('info', "{$this->getTitle()}에서 {$entity->getTitle()} 삭제가 완료되었습니다.", $redirect_url); return $this->action_redirect_process('info', "{$this->getTitle()}에서 {$entity->getTitle()} 삭제가 완료되었습니다.", $redirect_url);
} }
final public function delete($uid): RedirectResponse public function delete($uid): RedirectResponse
{ {
try { try {
if (!$uid) { if (!$uid) {
@ -160,7 +160,7 @@ abstract class AbstractCRUDController extends AbstractWebController
{ {
return $this->action_render_process($action, $this->getViewDatas(), $this->request->getVar('ActionTemplate')); return $this->action_render_process($action, $this->getViewDatas(), $this->request->getVar('ActionTemplate'));
} }
final public function view($uid): string|RedirectResponse public function view($uid): string|RedirectResponse
{ {
try { try {
if (!$uid) { if (!$uid) {

View File

@ -47,7 +47,7 @@ abstract class CommonController extends AbstractCRUDController
count($uids) count($uids)
)); ));
} }
final public function batchjob(): string|RedirectResponse public function batchjob(): string|RedirectResponse
{ {
try { try {
$action = __FUNCTION__; $action = __FUNCTION__;
@ -87,7 +87,7 @@ abstract class CommonController extends AbstractCRUDController
{ {
return $this->service->batchjob_delete($uids); return $this->service->batchjob_delete($uids);
} }
final public function batchjob_delete(): string|RedirectResponse public function batchjob_delete(): string|RedirectResponse
{ {
try { try {
$uids = $this->batchjob_delete_pre_process($this->request->getPost()); $uids = $this->batchjob_delete_pre_process($this->request->getPost());
@ -212,7 +212,7 @@ abstract class CommonController extends AbstractCRUDController
$this->addViewDatas('formDatas', $this->request->getVar() ?? []); $this->addViewDatas('formDatas', $this->request->getVar() ?? []);
} }
final public function index(): string public function index(): string
{ {
$action = __FUNCTION__; $action = __FUNCTION__;
$this->action_init_process($action); $this->action_init_process($action);
@ -278,7 +278,7 @@ abstract class CommonController extends AbstractCRUDController
} }
return $this->response->download($full_path, null)->setFileName($file_name); return $this->response->download($full_path, null)->setFileName($file_name);
} }
final public function download(string $output_type, mixed $uid = false): DownloadResponse|RedirectResponse|string public function download(string $output_type, mixed $uid = false): DownloadResponse|RedirectResponse|string
{ {
try { try {
$action = __FUNCTION__; $action = __FUNCTION__;