camelize() public static method

Camelize
public static camelize ( type $string, type $pascalCase = false ) : type
$string type
$pascalCase type - if true = CamelCase, else camelCase
return type
コード例 #1
0
ファイル: Application.php プロジェクト: voodoophp/voodoo
 /**
  * Return a CameLized string
  *
  * @return string
  */
 public static function formatName($name)
 {
     return Helpers::camelize($name, true);
 }
コード例 #2
0
ファイル: Controller.php プロジェクト: voodoophp/voodoo
 /**
  * Set the action name
  *
  * @param string $action
  */
 protected function setActionName($action)
 {
     $this->actionName = Helpers::camelize($action, true);
     return $this;
 }