/**
  * Returns a camelized string from a lower case and underscored string by replaceing slash with
  * double-colon and upper-casing each letter preceded by an underscore.
  *
  * @param  string $lower_case_and_underscored_word  String to camelize.
  *
  * @return string Camelized string.
  */
 public static function camelize($lower_case_and_underscored_word)
 {
     $tmp = $lower_case_and_underscored_word;
     //    $tmp = sfToolkit::pregtr($tmp, array('#/(.?)#e'    => "'::'.strtoupper('\\1')",
     //                                         '/(^|_|-)+(.)/e' => "strtoupper('\\2')"));
     //
     //    return $tmp;
     return sfToolkit::camelize($tmp);
 }
 protected function camelize($text)
 {
     //    return sfToolkit::pregtr($text, array('#/(.?)#e' => "'::'.strtoupper('\\1')", '/(^|_|-)+(.)/e' => "strtoupper('\\2')"));
     return sfToolkit::camelize($text);
 }
 protected function camelize($text)
 {
     //    return preg_replace(array('#/(.?)#e', '/(^|_|-)+(.)/e'), array("'::'.strtoupper('\\1')", "strtoupper('\\2')"), $text);
     return sfToolkit::camelize($text);
 }
Example #4
0
 /**
  * Returns a camelized string from a lower case and underscored string by replaceing slash with
  * double-colon and upper-casing each letter preceded by an underscore.
  *
  * @param  string $lower_case_and_underscored_word  String to camelize.
  *
  * @return string Camelized string.
  */
 public static function camelize($lower_case_and_underscored_word)
 {
     $tmp = $lower_case_and_underscored_word;
     return sfToolkit::camelize($tmp);
 }
 protected function camelize($text)
 {
     return sfToolkit::camelize($text);
 }