예제 #1
0
파일: Dispatcher.php 프로젝트: epixa/Epixa
 /**
  * Formats a string from a URI into a PHP-friendly name.
  *
  * By default, replaces words separated by the word separator character(s)
  * with camelCaps. If $isAction is false, it also preserves replaces words
  * separated by the path separation character with a backslash, making
  * the following word Title cased. All non-alphanumeric characters are
  * removed.
  *
  * @param  string  $unformatted
  * @param  boolean $isAction Defaults to false
  * @return string
  */
 protected function _formatName($unformatted, $isAction = false)
 {
     $implodedSegments = parent::_formatName($unformatted, $isAction);
     return str_replace('_', '\\', $implodedSegments);
 }