protected function toString($str)
{
if ($this->className) {
$str = str_replace("#", "# class=\"" . $this->className . "\"", $str);
}
if ($this->idName) {
$str = str_replace("#", "# id=\"" . $this->idName . "\"", $str);
}
if ($this->no_show_value) {
$str = preg_replace("/value=\"(.*)\"/s", "", $str);
}
return str_replace("#", "", $str);
}