__('Type_id 1'), '2' => __('Type_id 2')]; } public function getUrlTypeList() { return ['1' => __('Url_type 1'), '2' => __('Url_type 2')]; } public function getIsShowList() { return ['1' => __('Is_show 1'), '0' => __('Is_show 0')]; } public function getTypeIdTextAttr($value, $data) { $value = $value ? $value : (isset($data['type_id']) ? $data['type_id'] : ''); $list = $this->getTypeIdList(); return isset($list[$value]) ? $list[$value] : ''; } public function getUrlTypeTextAttr($value, $data) { $value = $value ? $value : (isset($data['url_type']) ? $data['url_type'] : ''); $list = $this->getUrlTypeList(); return isset($list[$value]) ? $list[$value] : ''; } public function getIsShowTextAttr($value, $data) { $value = $value ? $value : (isset($data['is_show']) ? $data['is_show'] : ''); $list = $this->getIsShowList(); return isset($list[$value]) ? $list[$value] : ''; } }