PHP 클래스 Neos\Kickstarter\Utility\Inflector

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

공개 메소드들

메소드 설명
humanizeCamelCase ( string $camelCased, boolean $lowercase = false ) : string Convert a model class name like "BlogAuthor" or a field name like "blogAuthor" to a humanized version like "Blog author" for better readability.
pluralize ( string $word ) : string

보호된 메소드들

메소드 설명
spacify ( string $camelCased, string $glue = ' ' ) : string Splits a string at lowercase/uppcase transitions and insert the glue character in between.

메소드 상세

humanizeCamelCase() 공개 메소드

Convert a model class name like "BlogAuthor" or a field name like "blogAuthor" to a humanized version like "Blog author" for better readability.
public humanizeCamelCase ( string $camelCased, boolean $lowercase = false ) : string
$camelCased string The camel cased value
$lowercase boolean Return lowercase value
리턴 string The humanized value

pluralize() 공개 메소드

public pluralize ( string $word ) : string
$word string The word to pluralize
리턴 string The pluralized word

spacify() 보호된 메소드

Splits a string at lowercase/uppcase transitions and insert the glue character in between.
protected spacify ( string $camelCased, string $glue = ' ' ) : string
$camelCased string
$glue string
리턴 string