protected function normalizeName($name) { return strtolower(preg_replace(array( '/([A-Z]+)([A-Z][a-z])/', '/([a-z\\d])([A-Z])/', ), array( '\\1_\\2', '\\1_\\2', ), $name)); }