save(['weigh' => $row['id']]); }); } public function getStatusList() { return ['normal' => __('Normal'), 'hidden' => __('Hidden')]; } public function getStatusTextAttr($value, $data) { $value = $value ? $value : $data['status']; $list = $this->getStatusList(); return isset($list[$value]) ? $list[$value] : ''; } public function getUrlAttr($value, $data) { $diyname = $data['diyname'] ? $data['diyname'] : $data['id']; return addon_url('blog/category/index', [':id' => $data['id'], ':diyname' => $diyname]); } }