public function set_name($name)
{
$name = preg_replace('~\\s+~', '_', mb_strtolower($name));
if (empty($name)) {
Incorrect_Syntax_Exception::raise('Field name can\'t be empty');
}
if ($this->name_prefix && strpos($name, $this->name_prefix) !== 0) {
$name = $this->name_prefix . $name;
}
$this->name = $name;
}