function set_type($str) { if (false === ($raw = Attr_type::get_raw_for_rich($str))) { return false; } $this->rich_type = $str; $this->raw_type = $raw; }