cfmgrv4 init...3
This commit is contained in:
parent
cbd82045dd
commit
aed58b77c0
@ -175,12 +175,19 @@ class RecordController extends CloudflareController
|
|||||||
return $this->batcjob_procedure();
|
return $this->batcjob_procedure();
|
||||||
}
|
}
|
||||||
//View
|
//View
|
||||||
|
//create_process_result에서 결과값을 entitys에 저장하고 호출하기때문에 아래와 같이 처리함
|
||||||
|
|
||||||
protected function view_process(mixed $uid): void
|
protected function view_process(mixed $uid): void
|
||||||
{
|
{
|
||||||
//해당 Zone의 모든 Record를 가져오기
|
//자신정보정의
|
||||||
$this->getModel()->where($this->getModel()::PARENT, $uid);
|
$entity = $this->getModel()->getEntityByPK($uid);
|
||||||
$this->entitys = $this->getModel()->getEntitys();
|
if ($entity === null) {
|
||||||
|
throw new \Exception("Zone {$uid} 정보를 찾을수 없습니다.");
|
||||||
|
}
|
||||||
|
$this->entitys = [$entity];
|
||||||
|
// dd($this->entitys);
|
||||||
}
|
}
|
||||||
|
//create_process_result에서 같이 사용한다는 점 주의
|
||||||
protected function view_process_result(): string
|
protected function view_process_result(): string
|
||||||
{
|
{
|
||||||
helper(['form']);
|
helper(['form']);
|
||||||
|
|||||||
@ -209,17 +209,21 @@ class ZoneController extends CloudflareController
|
|||||||
return $this->batcjob_procedure();
|
return $this->batcjob_procedure();
|
||||||
}
|
}
|
||||||
//View
|
//View
|
||||||
|
//create_process_result에서 결과값을 entitys에 저장하고 호출하기때문에 아래와 같이 처리함
|
||||||
protected function view_process(mixed $uid): void
|
protected function view_process(mixed $uid): void
|
||||||
{
|
{
|
||||||
//해당 Account의 모든 Zone를 가져오기
|
//자신정보정의
|
||||||
$this->getModel()->where($this->getModel()::PARENT, $uid);
|
$entity = $this->getModel()->getEntityByPK($uid);
|
||||||
$entitys = $this->getModel()->getEntitys();
|
if ($entity === null) {
|
||||||
foreach ($entitys as $entity) {
|
throw new \Exception("Zone {$uid} 정보를 찾을수 없습니다.");
|
||||||
$this->getRecordModel()->where($this->getRecordModel()::PARENT, $entity->getPK());
|
|
||||||
$entity->records = $this->getRecordModel()->getEntitys();
|
|
||||||
}
|
}
|
||||||
$this->entitys = $entitys;
|
//Zone에 대한 Record정의
|
||||||
|
$this->getRecordModel()->where($this->getRecordModel()::PARENT, $entity->getPK());
|
||||||
|
$entity->records = $this->getRecordModel()->getEntitys();
|
||||||
|
$this->entitys = [$entity];
|
||||||
|
// dd($this->entitys);
|
||||||
}
|
}
|
||||||
|
//create_process_result에서 같이 사용한다는 점 주의
|
||||||
protected function view_process_result(): string
|
protected function view_process_result(): string
|
||||||
{
|
{
|
||||||
helper(['form']);
|
helper(['form']);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user