/** * showCategotyTree4Patient * 展示可勾选的目录树 * @param mixed $request * @param mixed $response * @access public * @return void */ public function ajaxShowCategoryTree4Patient($request, $response) { $categoryType = LabelCategory::TYPE_PATIENTFILE; $response->categories = DAL::get()->find_all_by_type('LabelCategory', LabelCategory::DELETED_NO, $categoryType); $response->categoryType = $categoryType; $model = new ModelDto($response->categories, $isShowQuestion = true); $categoryArray = $model->data4CategoryParent(); echo Json::real_encode($categoryArray); return self::DIRECT_OUTPUT; }