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