/** * * @param type $data * @return \NoticeboardInput */ protected function actionGetByNoticeId($data) { $inputModel = new NoticeboardInput('GetByNoticeId'); $inputModel->setAttributes($data); $inputModel->format = $this->arrayPull($data, 'format', 'json'); $this->isValid = $inputModel->validate(); return $inputModel; }