__('Isrec 0'), '1' => __('Isrec 1')]; } public function getStatusList() { return ['-1' => __('Status -1'), '0' => __('Status 0'), '1' => __('Status 1'), '2' => __('Status 2'), '3' => __('Status 3'), '4' => __('Status 4')]; } public function getIsrecTextAttr($value, $data) { $value = $value ? $value : (isset($data['isrec']) ? $data['isrec'] : ''); $list = $this->getIsrecList(); return isset($list[$value]) ? $list[$value] : ''; } public function getStatusTextAttr($value, $data) { $value = $value ? $value : (isset($data['status']) ? $data['status'] : ''); $list = $this->getStatusList(); return isset($list[$value]) ? $list[$value] : ''; } }