__('Sex 0'), '1' => __('Sex 1')]; } public function getPoliticsList() { return ['0' => __('Politics 0'), '1' => __('Politics 1'), '2' => __('Politics 2')]; } public function getMarriageList() { return ['0' => __('Marriage 0'), '1' => __('Marriage 1')]; } public function getMedicalInsuranceList() { return ['0' => __('Medical_insurance 0'), '1' => __('Medical_insurance 1')]; } public function getSexTextAttr($value, $data) { $value = $value ? $value : (isset($data['sex']) ? $data['sex'] : ''); $list = $this->getSexList(); return isset($list[$value]) ? $list[$value] : ''; } public function getPoliticsTextAttr($value, $data) { $value = $value ? $value : (isset($data['politics']) ? $data['politics'] : ''); $list = $this->getPoliticsList(); return isset($list[$value]) ? $list[$value] : ''; } public function getMarriageTextAttr($value, $data) { $value = $value ? $value : (isset($data['marriage']) ? $data['marriage'] : ''); $list = $this->getMarriageList(); return isset($list[$value]) ? $list[$value] : ''; } public function getMedicalInsuranceTextAttr($value, $data) { $value = $value ? $value : (isset($data['medical_insurance']) ? $data['medical_insurance'] : ''); $list = $this->getMedicalInsuranceList(); return isset($list[$value]) ? $list[$value] : ''; } }