255], [['url'], 'string', 'max' => 500], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => 'Store ID', 'name' => '图标名称', 'url' => '页面路径', 'open_type' => '打开方式', 'pic_url' => '图标url', 'addtime' => 'Addtime', 'sort' => '排序,升序', 'is_delete' => 'Is Delete', 'is_hide' => '是否隐藏 0 显示 1隐藏 ', ]; } public function afterSave($insert, $changedAttributes) { $data = $insert ? json_encode($this->attributes) : json_encode($changedAttributes); CommonActionLog::storeActionLog('', $insert, $this->is_delete, $data, $this->id); } }