__('Order_status 0'),'1' => __('Order_status 1')]; } public function getCommentStatusList() { return ['0' => __('Comment_status 0'),'1' => __('Comment_status 1')]; } public function getOrderStatusTextAttr($value, $data) { $value = $value ? $value : $data['order_status']; $list = $this->getOrderStatusList(); return isset($list[$value]) ? $list[$value] : ''; } public function getCommentStatusTextAttr($value, $data) { $value = $value ? $value : $data['comment_status']; $list = $this->getCommentStatusList(); return isset($list[$value]) ? $list[$value] : ''; } public function getOrderStartTimeTextAttr($value, $data) { $value = $value ? $value : $data['order_start_time']; return is_numeric($value) ? date("Y-m-d H:i:s", $value) : $value; } protected function setOrderStartTimeAttr($value) { return $value && !is_numeric($value) ? strtotime($value) : $value; } }