/** * edit * * @param string $boardId board id * @return \Xpressengine\Presenter\RendererInterface */ public function edit($boardId) { $config = $this->configHandler->get($boardId); $listOptions = $this->configHandler->listColumns($boardId); $listColumns = $config->get('listColumns'); // 현재 선택된건 제외 시키고 보여줌 $listOptions = array_diff($listOptions, $listColumns); $formColumns = $this->configHandler->formColumns($boardId); $boardOrders = app('xe.board.order')->gets(); $skinSection = (new SkinSection())->setting(Board::getId(), $boardId); $commentSection = (new CommentSection())->setting($boardId); $dynamicFieldSection = (new DynamicFieldSection($config->get('documentGroup')))->setting(XeDB::connection(), $config->get('revision')); $toggleMenuSection = (new ToggleMenuSection())->setting(Board::getId(), $boardId); $perms = $this->permissionHandler->getPerms($boardId); return $this->presenter->make('edit', ['config' => $config, 'boardId' => $boardId, 'listOptions' => $listOptions, 'listColumns' => $listColumns, 'formColumns' => $formColumns, 'boardOrders' => $boardOrders, 'skinSection' => $skinSection, 'commentSection' => $commentSection, 'dynamicFieldSection' => $dynamicFieldSection, 'toggleMenuSection' => $toggleMenuSection, 'perms' => $perms]); }