__('User'), 'massager' => __('Massager')]; } public function getTypeList() { return ['app' => __('App'), 'web' => __('Web')]; } public function getStatusList() { return ['hidden' => __('Hidden'), 'normal' => __('Normal')]; } public function getModuleTypeTextAttr($value, $data) { $value = $value ? $value : (isset($data['module_type']) ? $data['module_type'] : ''); $list = $this->getModuleTypeList(); return isset($list[$value]) ? $list[$value] : ''; } public function getTypeTextAttr($value, $data) { $value = $value ? $value : (isset($data['type']) ? $data['type'] : ''); $list = $this->getTypeList(); 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] : ''; } }