protected function StylesDefault::_toCamelCase in Styles 7.2
Converts a string in the form with_underscores to withUnderscores
Parameters
string $str:
Return value
string
1 call to StylesDefault::_toCamelCase()
- StylesDefault::magicSet in includes/
Styles.inc - Given an array of k/v pairs calls set$key
File
- includes/
Styles.inc, line 53 - Styles.inc Base class for Styles.
Class
- StylesDefault
- @file Styles.inc Base class for Styles.
Code
protected function _toCamelCase($str) {
$parts = explode("_", $str);
$out = array_shift($parts);
foreach ($parts as $part) {
$out .= ucfirst($part);
}
return $out;
}