cfmgrv4 init...3
This commit is contained in:
parent
04dfec55eb
commit
537f563f2b
@ -81,26 +81,7 @@ class FirewallController extends CloudflareController
|
|||||||
}
|
}
|
||||||
//View
|
//View
|
||||||
//create_process_result에서 결과값을 entitys에 저장하고 호출하기때문에 아래와 같이 처리함
|
//create_process_result에서 결과값을 entitys에 저장하고 호출하기때문에 아래와 같이 처리함
|
||||||
protected function view_process(mixed $uid): void
|
|
||||||
{
|
|
||||||
//자신정보정의
|
|
||||||
$entity = $this->getModel()->getEntityByPK($uid);
|
|
||||||
if ($entity === null) {
|
|
||||||
throw new \Exception("Zone {$uid} 정보를 찾을수 없습니다.");
|
|
||||||
}
|
|
||||||
$this->entitys = [$entity];
|
|
||||||
// dd($this->entitys);
|
|
||||||
}
|
|
||||||
//create_process_result에서 같이 사용한다는 점 주의
|
//create_process_result에서 같이 사용한다는 점 주의
|
||||||
protected function view_process_result(): string
|
|
||||||
{
|
|
||||||
helper(['form']);
|
|
||||||
$this->forms = ['attributes' => ['method' => "post",], 'hiddens' => []];
|
|
||||||
return view(
|
|
||||||
strtolower($this->view_path . $this->class_path . "/view"),
|
|
||||||
data: ['viewDatas' => $this->getViewDatas()]
|
|
||||||
);
|
|
||||||
}
|
|
||||||
public function view(string $uid): RedirectResponse|string
|
public function view(string $uid): RedirectResponse|string
|
||||||
{
|
{
|
||||||
$this->init(__FUNCTION__);
|
$this->init(__FUNCTION__);
|
||||||
|
|||||||
@ -136,7 +136,12 @@ class RecordController extends CloudflareController
|
|||||||
protected function create_process_result(): RedirectResponse|string
|
protected function create_process_result(): RedirectResponse|string
|
||||||
{
|
{
|
||||||
$this->init(__FUNCTION__);
|
$this->init(__FUNCTION__);
|
||||||
return $this->view_process_result();
|
helper(['form']);
|
||||||
|
$this->forms = ['attributes' => ['method' => "post",], 'hiddens' => []];
|
||||||
|
return view(
|
||||||
|
strtolower($this->view_path . $this->class_path . "/create_result"),
|
||||||
|
data: ['viewDatas' => $this->getViewDatas()]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
public function create(): RedirectResponse|string
|
public function create(): RedirectResponse|string
|
||||||
{
|
{
|
||||||
@ -176,26 +181,6 @@ class RecordController extends CloudflareController
|
|||||||
}
|
}
|
||||||
//View
|
//View
|
||||||
//create_process_result에서 결과값을 entitys에 저장하고 호출하기때문에 아래와 같이 처리함
|
//create_process_result에서 결과값을 entitys에 저장하고 호출하기때문에 아래와 같이 처리함
|
||||||
protected function view_process(mixed $uid): void
|
|
||||||
{
|
|
||||||
//자신정보정의
|
|
||||||
$entity = $this->getModel()->getEntityByPK($uid);
|
|
||||||
if ($entity === null) {
|
|
||||||
throw new \Exception("Zone {$uid} 정보를 찾을수 없습니다.");
|
|
||||||
}
|
|
||||||
$this->entitys = [$entity];
|
|
||||||
// dd($this->entitys);
|
|
||||||
}
|
|
||||||
//create_process_result에서 같이 사용한다는 점 주의
|
|
||||||
protected function view_process_result(): string
|
|
||||||
{
|
|
||||||
helper(['form']);
|
|
||||||
$this->forms = ['attributes' => ['method' => "post",], 'hiddens' => []];
|
|
||||||
return view(
|
|
||||||
strtolower($this->view_path . $this->class_path . "/view"),
|
|
||||||
data: ['viewDatas' => $this->getViewDatas()]
|
|
||||||
);
|
|
||||||
}
|
|
||||||
public function view(string $uid): RedirectResponse|string
|
public function view(string $uid): RedirectResponse|string
|
||||||
{
|
{
|
||||||
$this->init(__FUNCTION__);
|
$this->init(__FUNCTION__);
|
||||||
|
|||||||
@ -176,7 +176,12 @@ class ZoneController extends CloudflareController
|
|||||||
protected function create_process_result(): RedirectResponse|string
|
protected function create_process_result(): RedirectResponse|string
|
||||||
{
|
{
|
||||||
$this->init(__FUNCTION__);
|
$this->init(__FUNCTION__);
|
||||||
return $this->view_process_result();
|
helper(['form']);
|
||||||
|
$this->forms = ['attributes' => ['method' => "post",], 'hiddens' => []];
|
||||||
|
return view(
|
||||||
|
strtolower($this->view_path . $this->class_path . "/create_result"),
|
||||||
|
data: ['viewDatas' => $this->getViewDatas()]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
public function create(): RedirectResponse|string
|
public function create(): RedirectResponse|string
|
||||||
{
|
{
|
||||||
@ -210,29 +215,7 @@ class ZoneController extends CloudflareController
|
|||||||
}
|
}
|
||||||
//View
|
//View
|
||||||
//create_process_result에서 결과값을 entitys에 저장하고 호출하기때문에 아래와 같이 처리함
|
//create_process_result에서 결과값을 entitys에 저장하고 호출하기때문에 아래와 같이 처리함
|
||||||
protected function view_process(mixed $uid): void
|
|
||||||
{
|
|
||||||
//자신정보정의
|
|
||||||
$entity = $this->getModel()->getEntityByPK($uid);
|
|
||||||
if ($entity === null) {
|
|
||||||
throw new \Exception("Zone {$uid} 정보를 찾을수 없습니다.");
|
|
||||||
}
|
|
||||||
//Zone에 대한 Record정의
|
|
||||||
$this->getRecordModel()->where($this->getRecordModel()::PARENT, $entity->getPK());
|
|
||||||
$entity->records = $this->getRecordModel()->getEntitys();
|
|
||||||
$this->entitys = [$entity];
|
|
||||||
// dd($this->entitys);
|
|
||||||
}
|
|
||||||
//create_process_result에서 같이 사용한다는 점 주의
|
//create_process_result에서 같이 사용한다는 점 주의
|
||||||
protected function view_process_result(): string
|
|
||||||
{
|
|
||||||
helper(['form']);
|
|
||||||
$this->forms = ['attributes' => ['method' => "post",], 'hiddens' => []];
|
|
||||||
return view(
|
|
||||||
strtolower($this->view_path . $this->class_path . "/view"),
|
|
||||||
data: ['viewDatas' => $this->getViewDatas()]
|
|
||||||
);
|
|
||||||
}
|
|
||||||
public function view(string $uid): RedirectResponse|string
|
public function view(string $uid): RedirectResponse|string
|
||||||
{
|
{
|
||||||
$this->init(__FUNCTION__);
|
$this->init(__FUNCTION__);
|
||||||
|
|||||||
@ -202,7 +202,7 @@ abstract class MVController extends CommonController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//일괄처리작업
|
//일괄처리작업
|
||||||
final protected function batcjob_procedure(): RedirectResponse|string
|
final protected function batcjob_procedure(): RedirectResponse
|
||||||
{
|
{
|
||||||
//Transaction Start
|
//Transaction Start
|
||||||
$this->getModel()->transStart();
|
$this->getModel()->transStart();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user