function delete($id) { global $webdb; //print_r($this->permCheck && !permission::check($this->tableName,'d_tag'));exit; if ($this->tableName && $this->permCheck && !permission::check($this->tableName, 'd_tag')) { permission::errMsg(); return false; } return $webdb->query("delete from " . $this->tableName . " where " . $this->key . "='" . $id . "'"); }