__('Block_type 1'),'3' => __('Block_type 3'),'4' => __('Block_type 4'),'5' => __('Block_type 5')]; } public function getTitleTypeList() { return ['1' => __('Title_type 1'),'2' => __('Title_type 2'),'3' => __('Title_type 3'),'4' => __('Title_type 4')]; } public function getNewsTypeList() { return ['1' => __('News_type 1'),'2' => __('News_type 2'),'3' => __('News_type 3')]; } public function getIsAddBookList() { return ['0' => __('Is_add_book 0'),'1' => __('Is_add_book 1')]; } public function getIsShowHotList() { return ['0' => __('Is_show_hot 0'),'1' => __('Is_show_hot 1')]; } public function getGoMethodList() { return ['1' => __('Go_method 1'),'2' => __('Go_method 2')]; } public function getBlockTypeTextAttr($value, $data) { $value = $value ? $value : $data['block_type']; $list = $this->getBlockTypeList(); return isset($list[$value]) ? $list[$value] : ''; } public function getTitleTypeTextAttr($value, $data) { $value = $value ? $value : $data['title_type']; $list = $this->getTitleTypeList(); return isset($list[$value]) ? $list[$value] : ''; } public function getNewsTypeTextAttr($value, $data) { $value = $value ? $value : $data['news_type']; $list = $this->getNewsTypeList(); return isset($list[$value]) ? $list[$value] : ''; } public function getIsAddBookTextAttr($value, $data) { $value = $value ? $value : $data['is_add_book']; $list = $this->getIsAddBookList(); return isset($list[$value]) ? $list[$value] : ''; } public function getIsShowHotTextAttr($value, $data) { $value = $value ? $value : $data['is_show_hot']; $list = $this->getIsShowHotList(); return isset($list[$value]) ? $list[$value] : ''; } public function getGoMethodTextAttr($value, $data) { $value = $value ? $value : $data['go_method']; $list = $this->getGoMethodList(); return isset($list[$value]) ? $list[$value] : ''; } }