__('Notifyway email'),'mobile' => __('Notifyway mobile')]; } public function getStatusList() { return ['normal' => __('Normal'), 'hidden' => __('Hidden')]; } public function getNotifywayTextAttr($value, $data) { $value = $value ? $value : (isset($data['notifyway']) ? $data['notifyway'] : ''); $list = $this->getNotifywayList(); return isset($list[$value]) ? $list[$value] : ''; } public function getEffectbegintimeTextAttr($value, $data) { $value = $value ? $value : (isset($data['effectbegintime']) ? $data['effectbegintime'] : ''); return is_numeric($value) ? date("Y-m-d H:i:s", $value) : $value; } public function getEffectendtimeTextAttr($value, $data) { $value = $value ? $value : (isset($data['effectendtime']) ? $data['effectendtime'] : ''); return is_numeric($value) ? date("Y-m-d H:i:s", $value) : $value; } public function getStatusTextAttr($value, $data) { $value = $value ? $value : (isset($data['status']) ? $data['status'] : ''); $list = $this->getStatusList(); return isset($list[$value]) ? $list[$value] : ''; } protected function setEffectbegintimeAttr($value) { return $value === '' ? null : ($value && !is_numeric($value) ? strtotime($value) : $value); } protected function setEffectendtimeAttr($value) { return $value === '' ? null : ($value && !is_numeric($value) ? strtotime($value) : $value); } }