PHP 클래스 Phactory\Mongo\Inflector

파일 보기 프로젝트 열기: chriskite/phactory

공개 메소드들

메소드 설명
addException ( $singular, $plural ) * Add an exception to the rules for inflection.
pluralize ( $word ) * Pluralize a word, obeying any stored exceptions.
reset ( ) * Forget all stored exceptions.

비공개 메소드들

메소드 설명
__construct ( ) * Static class forbids instantiation.

메소드 상세

addException() 공개 정적인 메소드

* Add an exception to the rules for inflection.
public static addException ( $singular, $plural )
$singular the singular form of this word
$plural the plurbal form of this word

pluralize() 공개 정적인 메소드

* Pluralize a word, obeying any stored exceptions.
public static pluralize ( $word )
$word the word to pluralize

reset() 공개 정적인 메소드

* Forget all stored exceptions.
public static reset ( )