content_title = lang("{$this->getService()->getClassName()}.title"); $this->class_path .= $this->getService()->getClassName(); // $this->view_path = '/admin/search'; } public function getService(): BoardService { if (!$this->_service) { $this->_service = new BoardService(); } return $this->_service; } public function latest(): ResponseInterface { $this->getService()->setAction(__FUNCTION__); $this->getService()->setFormFields(); //전달값정의 $this->getService()->setFormDatas($this->request->getGet()); $formDatas = $this->getSErvice()->getFormDatas(); return $this->response->setJSON($this->getService()->getLatest( array_key_exists('category', $formDatas) && $formDatas['category'] ? $formDatas['category'] : BOARD['CATEGORY']['NOTICE'], array_key_exists('limit', $formDatas) ? $formDatas['limit'] : BOARD['LATEST_LIMIT'] )); } }